Warning
This post was published 66 days ago. The information described in this article may have changed.
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