-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
Problem
Use case: bindgen
requires feature clap
to be enabled when building binaries, however if we put that feature into default
feature set, then the entire ecosystem needs to pay the price for building clap
even if most of them use bindgen
as a build dependency and does not need clap
.
This unfortunate situation is caused by lack of mechanism to enable features when building binary.
Proposed Solution
Provides a mechanism to enable features when building binaries.
E.g. a new feature set called "default-binary" that enables specified features when building binaries.
Or we can enable all the required-features
of [[bin]]
.
Notes
No response
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`