# rust-lang/rust-mode

Emacs configuration for Rust

Repository: https://github.com/rust-lang/rust-mode
Canonical: https://ross.abutalabs.com/products/rust-mode
Language: Emacs Lisp
License: Apache-2.0
License Family: permissive
Last push: 2026-07-25T14:42:05+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 4234, "days_push": 39, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1267, forks 198 (observed 2026-08-28T04:04:11.309349+00:00)

## What it is
rust-mode is an Emacs major mode providing syntax highlighting, indentation, and integration with Cargo, clippy, and rustfmt for editing Rust code. It is lightweight and intentionally excludes features like auto-completion and LSP, which are left to companion packages.

## Use cases
- edit Rust files in Emacs with syntax highlighting
- get proper Rust indentation in Emacs
- run cargo and clippy from Emacs
- format Rust code with rustfmt inside Emacs
- insert dbg! macros quickly while debugging Rust

## When to choose
- you use Emacs and want a lightweight, official Rust editing mode
- you want basic Rust support without a heavy IDE-like setup
- you pair it with eglot or lsp-mode for LSP features

## When to avoid
- you want an all-in-one Rust IDE experience in Emacs (consider rustic)
- you use a different editor like VS Code or Neovim
- you need auto-completion and jump-to-definition out of the box

## Facets
- artifact type: plugin
- maturity: active
- function: editor, formatter
- domain: developer-tools, text-editors, programming-languages
- platform: editor-plugin
- tags: emacs-lisp, rust, syntax-highlighting, indentation, cargo, rustfmt, clippy, emacs

## Member repositories
- rust-lang/rust-mode (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:11.309349+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:43.922611+00:00, confidence not recorded.
  - readme: https://github.com/rust-lang/rust-mode (fetched 2026-08-28T04:04:11.309349+00:00, sha 8613e6bbbee5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
