| Crates.io | miette-arborium |
| lib.rs | miette-arborium |
| version | 2.6.1 |
| created_at | 2025-12-04 22:32:24.448257+00 |
| updated_at | 2026-01-09 15:40:43.265986+00 |
| description | Arborium-powered syntax highlighter for miette diagnostics |
| homepage | https://github.com/bearcove/arborium |
| repository | https://github.com/bearcove/arborium |
| max_upload_size | |
| id | 1967238 |
| size | 73,783 |
Syntax highlighting for miette diagnostics using arborium.
fn main() {
// Install the highlighter globally (call once at startup)
miette_arborium::install_global().ok();
// Now all miette errors will have syntax highlighting!
}
fn main() {
let theme = arborium_theme::builtin::github_light().clone();
miette_arborium::install_global_with_theme(theme).ok();
}
Error diagnostics will show syntax-highlighted code snippets:
× cannot find derive macro `Facet` in this scope
╭─[src/lib.rs:3:10]
1 │ use facet::Facet;
2 │
3 │ #[derive(Facet)]
· ──┬──
· ╰── cannot find derive macro `Facet` in this scope
4 │ struct FooBar {
╰────
Part of the arborium project. See arborium.dev for more information.