Rust

Languageby Tori @gettoriApache-2.0Bundled
Runs your project’s code

Rust loads code from the project it opens, such as its dependencies or its own configuration. Tori asks before starting it in each project and remembers your answer for that project.

Verified against
rust-analyzer 1.98.1Measured Oct 9, 2026
Platforms
macOS, Linux, Windows
Install
Shows how to install itInstall it with rustup component add rust-analyzer.
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
rust
Source file
lsp/rust.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to LSP.
  3. Rust is already there: it ships inside Tori. When the catalog has a newer version, Add a language lists it with Update.

Adding writes one file and runs nothing. Tori then shows how to install the tool itself.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file rust.toml
~/.config/tori/packs/lsp/

The file

rust.tomlRead only
1# rust-analyzer, resolved from the user's login PATH (rustup component, brew,2# or a manual install). Not bundled: it is a large binary that rustup already3# manages, and a stale bundled copy would fight the toolchain the project4# actually builds with.5#6# This is the config that proves the registry is real: adding a language is a7# file like this one, not a branch in lsp.rs. See LSP-SERVERS.md.89schema_version = 110id = "rust"11label = "Rust"12description = "Rust, through rust-analyzer"13license = "Apache-2.0"14contributor = { name = "Tori", github = "gettori" }15verified_against = "rust-analyzer 1.98.1"16verified_on = "2026-10-09"1718# `Cargo.toml` walks to the crate, not the workspace root; rust-analyzer19# discovers the enclosing workspace itself from there.20root_markers = ["Cargo.toml", ".git"]2122# rust-analyzer indexes a cold cargo project for tens of seconds, and requests23# made during that window queue rather than fail. A 3s timeout (the library24# default) would reject nearly every first request on a real project.25request_timeout_ms = 900002627# Indexing runs the project's build scripts and proc macros.28runs_project_code = true2930[languages]31rs = "rust"3233[launch]34kind = "path"35program = "rust-analyzer"36args = []3738[install]39kind = "hint"40text = "Install it with `rustup component add rust-analyzer`."41# Updates the whole toolchain: rustup has no update for one component.42update = "rustup update"43uninstall = "rustup component remove rust-analyzer"