Date created: Monday, June 9, 2025 12:18:15 PM. Last modified: Wednesday, May 27, 2026 11:28:55 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 clippy-> run standard lint checkscargo clippy -- -Dwarnings -> 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