-
-
Notifications
You must be signed in to change notification settings - Fork 44
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 feature selection via CLI arguments #512
Conversation
…thing yet. Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…y working now Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
6ee1a98
to
ad1e418
Compare
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
I believe this will also fix #226 |
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.
As usual: Only minor comments :)
Thanks for this PR!
// so we keep the same behavior here too. | ||
/// Activate all available features | ||
#[clap(long = "all-features")] | ||
pub all_features: bool, |
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.
These changes need to be reflected in the README and it should probably also mention (even though it can be inferred) that by default all default features are enabled (at least I assume that's the case)
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've copied the help messages from Cargo itself here.
I'll update the README before release, because otherwise I'll run into lots of merge conflicts. That text is not neatly split into lines, unlike code.
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Co-authored-by: Lars Francke <lars.francke@stackable.tech> Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
b4de265
to
4fc0e9d
Compare
Supports
--no-default-features
,--all-features
,--features=...
CLI arguments. They are fully compatible with Cargo itself, which is verified by the added tests.This allows selecting the feature configuration that matches the way you build your binaries, so that the dependency list in the SBOM can actually correspond to the binary.
Fixes #508