-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Hide remote actor functionality behind "remote" feature #60
Conversation
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 is great! Thank you for taking the time to do this 😍
I'm not sure that docs.rs will recognise enable a feature = "doc"
flag. I belive these annotations should instead be #[cfg_attr(docsrs, ...)]
instead based on the docs here:
https://docs.rs/about/builds.
However, it seems like we can just put:
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
And none of the types need to be annotated with:
#[cfg_attr(feature = "doc", doc(cfg(feature = "remote")))]
This cleans things up a lot, making the feature gating in the docs automatically detected!
Actually |
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.
All good, looks great! Thank you again for taking the time to work on this
I also quickly put a couple error types I forgot to mentioned before behind the remote feature flag.
Co-authored-by: Ari Seyhun <[email protected]>
Closes #58
Not sure if I made all unnecessary dependencies optional, maybe you'll have some suggestions on which other dependencies can be disabled.