Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Target specific benches
For 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