https://github.com/dumitory-dev/build-features
A simple proc macro to create a vector that contains a list of included features as a const
https://github.com/dumitory-dev/build-features
rust-crate rust-library
Last synced: 10 months ago
JSON representation
A simple proc macro to create a vector that contains a list of included features as a const
- Host: GitHub
- URL: https://github.com/dumitory-dev/build-features
- Owner: dumitory-dev
- License: mit
- Created: 2021-12-01T17:03:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-02T10:45:58.000Z (over 4 years ago)
- Last Synced: 2025-06-09T08:15:07.792Z (12 months ago)
- Topics: rust-crate, rust-library
- Language: Rust
- Homepage: https://crates.io/crates/build-features/0.1.1
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```rust
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](https://choosealicense.com/licenses/mit/)