20 stable releases

Uses new Rust 2024

2.6.1 Jan 9, 2026
2.6.0 Jan 5, 2026
2.4.7 Dec 30, 2025
1.3.0 Dec 13, 2025
0.1.3 Dec 4, 2025

#2384 in Text processing

Download history 89/week @ 2025-12-06 485/week @ 2025-12-13 325/week @ 2025-12-20 678/week @ 2025-12-27 1249/week @ 2026-01-03 946/week @ 2026-01-10 774/week @ 2026-01-17 661/week @ 2026-01-24 544/week @ 2026-01-31

3,041 downloads per month
Used in 4 crates (via tracey)

MIT/Apache and maybe GPL-3.0

445KB
8K SLoC

miette-arborium

Syntax highlighting for miette diagnostics using arborium.

Features

  • Automatic language detection from file extensions
  • Tree-sitter based highlighting (same engine as the main arborium crate)
  • All arborium themes available
  • Zero configuration needed

Quick Start

fn main() {
    // Install the highlighter globally (call once at startup)
    miette_arborium::install_global().ok();

    // Now all miette errors will have syntax highlighting!
}

With Custom Theme

fn main() {
    let theme = arborium_theme::builtin::github_light().clone();
    miette_arborium::install_global_with_theme(theme).ok();
}

Example Output

Error diagnostics will show syntax-highlighted code snippets:

  × cannot find derive macro `Facet` in this scope
   ╭─[src/lib.rs:3:10]
 1use facet::Facet;
 23#[derive(Facet)]
   ·          ──┬──
   ·            ╰── cannot find derive macro `Facet` in this scope
 4struct FooBar {
   ╰────

Part of the arborium project. See arborium.dev for more information.

Dependencies

~6–120MB
~3.5M SLoC