Comprehensive developer toolkit for building, testing, and managing Rust projects in Visual Studio Code.
Overview
Rust Dev Toolkit streamlines everyday Rust workflows by unifying Cargo commands, Crates.io package management, macro expansion, toolchain inspection, and a searchable language cheat sheet into a cohesive interface.
Features
Cargo Task Explorer
A dedicated Sidebar view in the Activity Bar for running essential Cargo commands with one click:
Run cargo expand on active source files to inspect generated code from derive macros and procedural macros in a side-by-side virtual editor with syntax highlighting.
Toolchain Status Indicator
Displays the active rustc compiler version and target in the status bar with quick access to common workflows.
Commands
Command
Title
rust-toolkit.openCheatSheet
Rust: Open Interactive Cheat Sheet
rust-toolkit.searchCrates
Rust: Search & Add Crates.io Dependency
rust-toolkit.clippyFix
Rust: Run Clippy Fix (--allow-dirty)
rust-toolkit.formatCode
Rust: Format Code (cargo fmt)
rust-toolkit.expandMacro
Rust: Expand Macro (cargo expand)
rust-toolkit.runCargoCommand
Rust: Run Cargo Command...
rust-toolkit.refreshCargoView
Refresh Cargo Tasks
Extension Settings
Setting
Default
Description
rustToolkit.showStatusBar
true
Show the active Rust toolchain indicator in the status bar.
rustToolkit.defaultBuildProfile
debug
Default build profile (debug or release) used for tasks.
rustToolkit.clippyArgs
--all-targets --all-features
Additional arguments passed to cargo clippy.
Requirements
Rust toolchain (rustc and cargo installed via rustup.rs).
(Optional)cargo-expand (cargo install cargo-expand) for macro expansion features.