JetBrains Fleet 1.42 Help

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.

Enabling rust-analyzer

To enable rust-analyzer, you need to add configuration options to settings.json.

  1. In the Files view, right-click the workspace root folder, then select New Folder. Name it .fleet.

  2. Right-click the .fleet directory, then select New File ⌘ N. Name the file settings.json.

  3. 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.

    fl_rust_analyzer_cargo_features_advanced
Last modified: 11 February 2024