Added
-
Overrides can now be restricted to certain platforms, using triples or
cfg()expressions. For example, to add retries, but only on macOS:[[profile.default.overrides]] platform = 'cfg(target_os = "macos")' retries = 3
For an override to match,
platformandfilter(if specified) must both be true for a given test. While cross-compiling code,platformis matched against the host platform for host tests, and against the target platform for target tests. -
Nextest now reads environment variables specified in the
[env]section from.cargo/config.tomlfiles. The full syntax is supported includingforceandrelative.Thanks to Waleed Khan for your first contribution!
-
Nextest now sets the
CARGO_PKG_RUST_VERSIONenvironment variable when it runs tests. Forcargo testthis was added in Rust 1.64, but nextest sets it across all versions of Rust.