#cfg #macro #blocks #cfg-if #if-statement

no-std cifg

A macro for defining #[cfg] if/else blocks; alternate to cfg-if

4 stable releases

1.0.3 Jul 17, 2024
1.0.0 Jul 15, 2024

#773 in Rust patterns

MIT/Apache

8KB
81 lines

cifg

cifg on crates.io cifg on docs.rs cifg licenses Apache-2.0 license MIT license MSRV

A macro for defining #[cfg] if/else blocks; alternate to cfg-if.

License

This project is licensed under either of

at your option.

Contribution

Any contribution intentionally submitted for inclusion in cifg by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–350KB