Target specific benches
⚓ Rust 📅 2025-06-11 👤 surdeus 👁️ 14For dependencies you can use
[target.'cfg(unix)'.dependencies]
to specify target-specific dependencies. How can you do the same for benches?
Using [[target.'cfg(unix)'.bench]] instead of [[bench]] does not work and results in this warning:
warning: <dir>/benches/Cargo.toml: unused manifest key: target.cfg(unix).bench
1 post - 1 participant
🏷️ rust_feed