winksaville / exper_inter_process_channel

Experiment with inter-process channels
MIT License
0 stars 0 forks source link

AnId needs better implementation #9

Open winksaville opened 1 year ago

winksaville commented 1 year ago

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:

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 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!