Open abdes opened 3 years ago
Similarly cannot detect #![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
https://github.com/mvdnes/spin-rs/blob/master/src/lib.rs#L1
Cannot detect #![cfg_attr(not(any(test, feature = "std")), no_std)]
Seeing this erroneously flag base64-0.13.0
due to #[cfg(any(feature = "std", test))]
In case I/someone wants to include a robust solution for this: I just stumbled upon https://crates.io/crates/cfg-expr, which cargo-nono
should be able to leverage.
A crate with
#![cfg_attr(not(any(test, doctest)), no_std)]
definitely does not need std for it to be used, although it uses std for some of its own tests.Is there any reason why this pattern is considered not valid by cargo-nono?