cfg-iif

A macro for defining #[cfg] if-else functions.

The macro provided by this crate. Unlike cfg_if, cfg_iif can be used as a function, and can be used in a function.

Example

Example 1: #[cfg()]

Example 2: a short hand for a firendly cargo fmt

Changelogs

This crate's changelog here.

License

This project is licensed under either of

at your option.