Language Servers
Axon documentation
Rust
Rust language-server support in Axon.
Rust
rust-analyzer
Rust language intelligence for Cargo projects, crate symbols, diagnostics, proc macro context, and code navigation.
Delivery
bundled or system rust-analyzer
Activation
.rs files and Cargo.toml workspaces
Capabilities
Reads Cargo metadata to understand crates, features, modules, tests, and examples.
Provides completions, hover, diagnostics, definitions, references, rename, and code actions.
Works with project toolchains, targets, proc macros, and build scripts when the Rust setup is complete.
Setup
Install the Rust toolchain needed by the project.
Open the folder that owns Cargo.toml.
Check Cargo metadata errors when completions are missing crate symbols.
Troubleshooting
Missing crate symbols usually mean Cargo metadata failed.
Proc macro diagnostics depend on the project toolchain and targets.
Release packaging must include an executable rust-analyzer for the target platform.