The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
Rust — LSP setup
- Builtin server:
rust—rust-analyzer - Extensions:
.rs - Install hint:
rustup component add rust-analyzer
Install
- macOS:
rustup component add rust-analyzer(orbrew install rust-analyzer) - Linux:
rustup component add rust-analyzer - Windows:
rustup component add rust-analyzer
The rustup component is the recommended path — it stays pinned to your toolchain.
rust-analyzer also needs the rust-src component to index the standard library
(rustup component add rust-src).
Confirm it resolves:
command -v rust-analyzer
Configure
Builtin — usually NO config needed (auto-resolved by extension). Configure only to set priority, init options, override extensions, or disable. Same JSON shape in every harness's project config (per-harness paths: the Configure step in SKILL.md):
{ "lsp": { "rust": { "priority": 100 } } }
For builtin ids in a PROJECT config, command is supplied automatically — only set priority/initialization/extensions/disabled (a project entry drops env). env, and a fully custom (non-builtin) server with its own command, must go in your harness's USER config (see the Configure step in SKILL.md).
Initialization options (only if commonly needed)
None commonly required. To switch the check command to clippy:
{ "lsp": { "rust": { "initialization": { "check": { "command": "clippy" } } } } }
Alternatives
None — rust-analyzer is the official and sole Rust language server.
Troubleshooting
PATH:
rust-analyzermust be on PATH; reopen shell after install. The rustup shim lives in~/.cargo/bin.Exits while loading rust-src: if rust-analyzer crashes during stdlib indexing, reinstall the source component:
rustup component remove rust-src && rustup component add rust-srcNo proc-macro / build script support: ensure the project builds with
cargo check; rust-analyzer reuses the same toolchain.
Verify
bun ../../scripts/verify-lsp.ts path/to/file.rs