rustfmt
An automatic code formatter that rewrites your source to a single, community-agreed style. End style debates and keep diffs focused on real changes.
Run cargo fmtTools
Rust ships with a batteries-included toolchain. Format, lint, document, test, and ship — with the same commands on every platform.
Build tool
Cargo is Rust's build system and package manager. It creates projects, resolves and downloads dependencies, compiles your code, runs tests, and publishes to the ecosystem — all through one consistent command.
Every Rust project is described by a Cargo.toml manifest, while Cargo.lock pins the exact versions you built against, so everyone on your team gets reproducible results.
# Create a new project
cargo new hello-rust
# Build the project
cargo build
# Run the test suite
cargo test
The toolchain
Install the toolchain once and these tools are ready to use in any project.
An automatic code formatter that rewrites your source to a single, community-agreed style. End style debates and keep diffs focused on real changes.
Run cargo fmtA collection of lints that catch common mistakes and suggest more idiomatic code. Clippy teaches as it warns, so your codebase gets better over time.
Run cargo clippyDocumentation is built into the language. Write /// comments and rustdoc generates searchable HTML — the same docs you read on docs.rs.
The toolchain installer and version manager. Keep stable, beta, and nightly side by side, switch per project, and add compilation targets cross-platform.
Install with rustupEditors & IDEs
The language server brings completions, go-to-definition, inline errors, and refactors to the editor you already use.
The official language server for Rust. It provides IDE-grade intelligence to any compatible editor and is the engine behind Rust support in VS Code.
Configure rust-analyzerInstall the rust-analyzer extension for a lightweight, well-supported setup with debugging, testing, and inline diagnostics out of the box.
Get set upRustRover and the IntelliJ Rust plugin cover JetBrains users, while rust-analyzer integrations bring the same intelligence to Vim, Neovim, and Emacs.
Find your editorInstall Rust with rustup and every tool on this page arrives with it — on Windows, macOS, and Linux.
Ask on the users forum, chat with the community, or search the documentation. Thousands of Rustaceans are happy to help.