build-features

Crates.iobuild-features
lib.rsbuild-features
version0.1.7
sourcesrc
created_at2021-12-01 17:19:25.573414
updated_at2021-12-02 10:46:22.474893
descriptionA simple proc macro to create a vector that a list of enabled features in a root package
homepage
repositoryhttps://github.com/dumitory-dev/build-features
max_upload_size
id490347
size11,202
Dmitry (dumitory-dev)

documentation

README

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

Commit count: 16

cargo fmt