This chapter covers:
- Introducing core Rust language tools:
- RLS (Rust language server)
-
rust-analyzer
- Rustfmt
- Clippy
-
sccache
- RLS (Rust language server)
- Integrating Rust tools with VS Code
- Using stable versus nightly toolchains
- Exploring additional non-core tools you may find useful
Rust has a number of tools available to improve productivity and reduce the amount of busywork one must engage in to produce high quality software. Rust’s compiler, rustc, is built upon LLVM, so Rust inherits the features provided by LLVM, such as LLVM’s debugger, LLDB. In addition to the tools you expect to find from other languages, Rust includes a number of its own Rust-specific tools, which are discussed in this chapter.
The core tools discussed in this chapter are RLS, rust-analyzer, rustfmt, Clippy, and sccache. These are tools you’ll likely use every time you work with Rust. Additionally, I have included instructions for a few other tools, which you may find yourself using occasionally: cargo-update, cargo-expand, cargo-fuzz, cargo-watch, and cargo-tree.