-
Notifications
You must be signed in to change notification settings - Fork 221
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
Add derive flag #687
Add derive flag #687
Conversation
src/lib.rs
Outdated
@@ -39,7 +39,7 @@ | |||
//! } | |||
//! ``` | |||
//! | |||
//! Or alternatively, if you enable the `specs-derive` feature, you can use a | |||
//! Or alternatively, if you enable the `specs-derive` or `derive` feature, you can use a |
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.
I think it's alright just mentioning the "derive"
feature without mentioning specs-derive
.
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.
OK, I've updated the references through the documentation and tutorials if it's better to just list the one.
I've done a rebase too, since there was a conflict on changelog, but I believe with a diff this small the added difficulty to review is basically none.
* There are currently two distinct *-derive features and it is uncomfortable to hunt for them. * They exist mostly due to technical reasons, as they bring two different crates. The price of the other if one is already present is relatively low (the cost is by depending on syntax and quote and they share them). * This is in the convention of having the `derive` feature flag as serde and other packages have. * The original two are still preserved, so users still can enable only one of them. Closes #684.
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.
Cool thanks!
bors r+ |
Build succeeded |
Thank you :-) |
uncomfortable to hunt for them.
different crates. The price of the other if one is already present is
relatively low (the cost is by depending on syntax and quote and they
share them).
derive
feature flag as serdeand other packages have.
one of them.
Closes #684.
Checklist
Should I update the examples to use this feature, or leave them be with the current
specs-derive
?I'm not sure this completely applies. I've updated the note in docs about features, but otherwise left the
specs-derive
as the main suggestion how to use it by users and expect this will be more like for people who go more by guess than by documentation. But if you prefer, I can update all the examples, etc, to use this new feature flag instead.API changes