-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilation
Description
I need a better name :).
Basically the idea is many crates could depend on something else, but don't need to; therefore they should depend on it automatically iff its already a included in the build plan.
The biggest example I can think of is with std. Consider features like:
- the "std" feature for https://github.com/reem/rust-void
- the "no_std" features for https://github.com/rust-lang-nursery/bitflags
- the "no_std" feature for https://github.com/rust-lang-nursery/lazy-static.rs/pull/46/files
For comparison, Haskell's Cabal has some automatic flag resolution (flag == feature, basically) https://www.haskell.org/cabal/users-guide/developing-packages.html#resolution-of-conditions-and-flags which occupies a similar niche.
Metadata
Metadata
Assignees
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilation