Target specific benches

⚓ Rust    📅 2025-06-11    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 66 days ago. The information described in this article may have changed.

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

Read full topic

🏷️ rust_feed