-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use consts for addrs #660
Conversation
And expose actor IDs so we don't need to call `.id().unwrap()` to retrieve them.
3c7e602
to
af836ea
Compare
(happy to punt this if we don't want to do it now, it was just annoying me a bit) |
macro_rules! define_singletons { | ||
($($name:ident = $id:literal,)*) => { | ||
$( | ||
paste! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't have any affect at runtime, it just allows us to concatenate identifiers at compile time.
Rust thinks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from the unused import thing. I would also be just as happy with a version that didn't use the macro.
@mriise found the issue and is pushing a fix |
we also had a workaround for serde, which was fixed in rust-lang/rust#89738. that is now gone |
* feat: use consts for addrs And expose actor IDs so we don't need to call `.id().unwrap()` to retrieve them. Co-authored-by: mriise <me@mriise.net>
* feat: use consts for addrs And expose actor IDs so we don't need to call `.id().unwrap()` to retrieve them. Co-authored-by: mriise <me@mriise.net>
* feat: use consts for addrs And expose actor IDs so we don't need to call `.id().unwrap()` to retrieve them. * remove old TODO and extern crate refs Co-authored-by: mriise <me@mriise.net>
And expose actor IDs so we don't need to call
.id().unwrap()
to retrieve them.