Skip to main content

Rust

Useful Cargo Commands

  • list all installed packages and their versions
    cargo install --list
  • Update dependencies as recorded in the local lock file
    cargo update [options] spec
  • cargo-asm: A cargo subcommand that displays the assembly or llvm-ir generated for Rust source code
  • cargo-binutils: Cargo subcommands to invoke the LLVM tools shipped with the Rust toolchain
  • cargo-edit: A utility for managing cargo dependencies from the command line
    • cargo add is now integrated into cargo as of v1.62
    • cargo rm is now integrated into cargo as of v1.66
    • cargo upgrade
    • cargo set-version
  • cargo-expand: Subcommand to show result of macro expansion
  • cargo-outdated: A cargo subcommand for displaying when Rust dependencies are out of date
  • cargo-update: A cargo subcommand for checking and applying updates to installed executables

Useful Crates

  • tokio: async
  • serde: serialize and deserialize

Useful tools

VS Code extensions

  • rest-analyzer
  • CodeLLDB
  • Dependi/crates-io/cratesx