The Rust Language Server (RLS) provides useful functionalities to IDEs, editors and other tools for Rust development, including code completion, 'goto definition', symbol search and reformatting.
The Rust Language Server (RLS) provides a server that runs in the background, providing IDEs, editors, and other tools with information about Rust programs. It supports functionality such as 'goto definition', symbol search, reformatting, and code completion, and enables renaming and refactorings.
RLS can be easily installed using rustup (setup page here), by adding the rls
, rust-analysis
, and rust-src
toolchains:
rustup component add rls --toolchain nightly
rustup component add rust-analysis --toolchain nightly
rustup component add rust-src --toolchain nightly
RLS integration with Visual Studio Code is currently available with the Rust extension or the reference implementation.