Date created: Monday, June 9, 2025 12:18:15 PM. Last modified: Tuesday, July 14, 2026 9:39:33 AM
Rust Notes
Books
Documentation
Guides
Cargo Commands
cargo init-> create new package in current directorycargo add X-> add a dependency to the current projectcargo build / cargo b-> debug buildcargo build -r-> release buildcargo doc / cargo d-> Generate and view API docscargo test / cargo t-> run testscargo test -- --nocapture-> Capture stdout from code (normally not shown during testing)cargo test --all-features --verbosecargo clippy-> run standard lint checkscargo clippy --all-features -- -D warnings-> Strict lint modecargo flamegraph / cargo samply-> CPU profilingcargo audit-> Vulnerability scanning against an advisory databasecargo run -- <args>-> Run the current package with the specified args.
Previous page: XML-to-Dict
Next page: SQLite Notes