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 directory
  • cargo add X -> add a dependency to the current project
  • cargo build / cargo b -> debug build
  • cargo build -r -> release build
  • cargo doc / cargo d -> Generate and view API docs
  • cargo test / cargo t -> run tests
  • cargo test -- --nocapture -> Capture stdout from code (normally not shown during testing)
  • cargo clippy -> run standard lint checks
  • cargo clippy -- -D warnings -> Strict lint mode
  • cargo flamegraph / cargo samply -> CPU profiling
  • cargo audit -> Vulnerability scanning against an advisory database
  • cargo run -- <args> -> Run the current package with the specified args.

 


Previous page: XML-to-Dict
Next page: SQLite Notes