Workspace setup

Installing Rust
The recommended method for installing Rust is via rustup. This helps install and manage the entire toolchain.

If you use a package manager you may wish to check if rustup is available as a package to avoid having to maintain it separately. For example, rustup is available as a community package in pacman and in the official NixPkgs Nix repository.

Language Servers
Language servers provide code completion, detect errors prior to compilation, and do many other useful things. Most code editors support integration of language servers.

If you are using a package manager you may wish to check if these are available there. For example, rust-analyzer is now available in the official pacman repos.

Here are some popular language servers for Rust:

On the fly checking using both RLS and rust-analyzer
Currently, rust-analyzer (RA) doesn't support on the fly checking, but it's possible to install both RLS and RA, using the former for live checking/diagnostics and the latter for everything else.

Since both provide autocomplete, remember to disable racer for RLS in order to prevent any conflicts.

Note that this is a temporary solution and not recommended, although there is no harm in trying it if you need both RA and live diagnostics.