Rust Test Behaviour

Updated Jul 27, 2026

Rust-enabled projects use cargo nextest run when cargo-nextest is available. If cargo-nextest is not installed, the generated test target falls back to cargo test. Rust documentation tests still run through cargo test --doc.

If cargo is missing from the local environment, generated Rust test targets fail early with a clear error instead of falling through to an unusable cargo invocation.