Rust LSP Configuration
The details below describe how to install and configure the Rust language server found here
NOTE: This installation process assumes Rust has been installed on the machine.
Installing the Language Server
To install the language server run the following command:
rustup component add rls-preview rust-analysis rust-src
With the software installed test the installation by running
rls.exe --help at the command line prompt, which should result in the following output:
--version or -V to print the version and commit info
--help or -h for this message
--cli starts the RLS in command line mode
No input starts the RLS as a language server
If that output is not produced refer to the the Rust language server page for more details
Edit the Rust document type and in the Language Server configuration
panel apply the following configuration settings:
Program Type: Executable
NOTE: The executable directory option can be omitted provided the executable folder is found in the system
PATH environment variable.
Using the Language Server
To test the configuration you will need to create a Rust project and a Zeus workspace as described below.
Create a new Rust project as follow:
cargo new hello_world --bin
More details about Rust projects can be found here
2: Create a new Zeus workspace in the
hello_world folder and optionally add the
hello_world\src files to that workspace.
3: Open the new Zeus workspace, open the
hello_world\src\main.rs file and fire off the auto-complete:
Released: 9th November 2018