Rust and Cargo 1 · Testing and code quality

Check formatting in CI

Fail if any file isn't formatted, without changing files.

cargo fmt --check

Official Rust and Cargo 1 documentation

More testing and code quality commands

All testing and code quality commands · Rust and Cargo 1 cheatsheet

Was this page helpful?