Install Rust using rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shAdd required components (for minimal profile):
rustup component add clippy
rustup component add rustfmtcargo install cargo-watch
cargo install cargo-tarpaulin # Linux x86_64 only
cargo install cargo-auditcargo buildcargo runExecute cargo commands on every file change:
cargo watch -x checkRun check, test, and run on file changes:
cargo watch -x check -x test -x runcargo testcargo tarpaulin --ignore-testsNote: tarpaulin only supports x86_64 CPU architectures running Linux.
cargo clippyFail on any warning:
cargo clippy -- -D warningscargo fmtCheck formatting (CI):
cargo fmt -- --checkScan for known vulnerabilities:
cargo audit