Using rust-analyzer
rust-analyzer is an open-source implementation of a language server for the Rust programming language. It is designed to work with multiple code editors that support the Language Server Protocol (LSP), offering an enhanced Rust development experience.
rust-analyzer and Rust Language Server (RLS) both serve as language servers for Rust, but rust-analyzer is known for faster performance and more extensive feature coverage. While RLS was the initial official language server for Rust, rust-analyzer is becoming the new standard and often preferred by developers. Since 2022, the Rust Language Server (RLS) is being deprecated in favor of rust-analyzer.
For more information about rust-analyzer, refer to rust-analyzer at rust-analyzer.github.io.
To enable rust-analyzer, you need to add configuration options to settings.json.
In the Files view, right-click the workspace root folder, then select New Folder. Name it .fleet.
Right-click the .fleet directory, then select New File Ctrl0N. Name the file settings.json.
tip
The settings that you specify in this file will be applied to the entire project, unless you have more specific settings defined in .fleet/settings.json in the subdirectories.
In braces
{}
, type rust-analyzer configuration options. For more information about configuration options, refer to Configuration at rust-analyzer.github.io.JetBrains Fleet supports autocompletion of rust-analyzer configuration options.
Thanks for your feedback!