#build #features #compile #get-features

macro no-std build-features

A simple proc macro to create a vector that a list of enabled features in a root package

1 unstable release

0.1.7 Dec 2, 2021
0.1.6 Dec 2, 2021

#1040 in Rust patterns

26 downloads per month

MIT/Apache

6KB

build-features

A simple proc macro to create a vector that a list of enabled features in a root package

Note: using this crate makes your build non-deterministic!

Usage

fn main() {
    build_features::get_enabled_features!();
    println!("{:?}", enabled_features); //enjoy!
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Dependencies

~0.9–1.6MB
~34K SLoC