Tools

Tools you can build on

Rust ships with a batteries-included toolchain. Format, lint, document, test, and ship — with the same commands on every platform.

Build tool

Cargo

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.

Get Cargo with rustup

# Create a new project
cargo new hello-rust

# Build the project
cargo build

# Run the test suite
cargo test

The toolchain

First-class tools, included

Install the toolchain once and these tools are ready to use in any project.

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 fmt

Clippy

A 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 clippy

rustdoc

Documentation is built into the language. Write /// comments and rustdoc generates searchable HTML — the same docs you read on docs.rs.

Run cargo doc

rustup

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 rustup

Editors & IDEs

Editor support, powered by rust-analyzer

The language server brings completions, go-to-definition, inline errors, and refactors to the editor you already use.

rust-analyzer

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-analyzer

VS Code

Install the rust-analyzer extension for a lightweight, well-supported setup with debugging, testing, and inline diagnostics out of the box.

Get set up

JetBrains, Vim & Emacs

RustRover and the IntelliJ Rust plugin cover JetBrains users, while rust-analyzer integrations bring the same intelligence to Vim, Neovim, and Emacs.

Find your editor

Get the toolchain

Install Rust with rustup and every tool on this page arrives with it — on Windows, macOS, and Linux.

Install Rust

Get help!

Stuck? The community has you covered

Ask on the users forum, chat with the community, or search the documentation. Thousands of Rustaceans are happy to help.