5 ms·
This is huge for embedded rust where cargo Features are used heavily. One of those trial and error things that can be frustrating when learning a new library wi
by davidhyde 3y ago
This is huge for embedded rust where cargo Features are used heavily. One of those trial and error things that can be frustrating when learning a new library with missing notes about features.
- epage 3y agoThey should enable the nightly-only "auto cfg" feature to also help out e,g, https://docs.rs/clap/latest/clap/macro.command.html https://docs.rs/clap/latest/clap/macro.command.html To enable - Add a `cfg`: https://github.com/clap-rs/clap/blob/master/Cargo.toml#L48 https://github.com/clap-rs/clap/blob/master/Cargo.toml#L48 - Enable the nightly feature when the `cfg` is present: https://github.com/clap-rs/clap/blob/master/src/lib.rs#L79 https://github.com/clap-rs/clap/blob/master/src/lib.rs#L79