AnId is a New Type that uses Uuid as the implementation, but I have the
feeling that will change thus the reason for AnId. So this partially accomplishes
what I want, except the uuid! macro for handling constant ID requires:
2) Because uuid! is "tricky" as it supports only string literals and
is able to output nice compile time error messages if the appropriate
feature is used. For now to implement anid! macro is beyond my
rust skills.
So this will need to change eventually, maybe AnId will be just an type alias for Uuid
or maybe fork and modify Uuid so it can become AnId, We'll see!
AnId
is a New Type that uses Uuid as the implementation, but I have the feeling that will change thus the reason forAnId
. So this partially accomplishes what I want, except theuuid!
macro for handling constant ID requires:1) Each module needs to add uuid as a dependency because "macro_reexport" is not going to be stabilized, see: https://github.com/rust-lang/rust/issues/29638.
2) Because
uuid!
is "tricky" as it supports only string literals and is able to output nice compile time error messages if the appropriate feature is used. For now to implementanid!
macro is beyond my rust skills.So this will need to change eventually, maybe AnId will be just an type alias for Uuid or maybe fork and modify Uuid so it can become AnId, We'll see!