#build #compile #proc-macro #features #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

#95 in #features

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

~1–2MB
~40K SLoC