---
title: "My gift to the rustdoc team"
url: https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb
source_url: https://fasterthanli.me/articles/my-gift-to-the-rust-docs-team
type: article
source: "fasterthanli.me"
published: 2025-12-14T01:18:39.606Z
updated: 2025-12-14T03:15:22.786Z
tags: ["rust", "webassembly"]
reading_time: 14
upvotes: 43
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# My gift to the rustdoc team

**[fasterthanli.me](https://daily.dev/sources/fasterthanli)** · 14 min read · 43 upvotes · 1 comments

## Summary

Arborium is a new open-source project that brings tree-sitter-based syntax highlighting to Rust documentation. It bundles 96 language grammars into Rust crates that compile to both native and WebAssembly targets. The project offers three integration approaches: a JavaScript/WASM script for immediate use on docs.rs, a rustdoc PR to add native highlighting support, and a post-processor that adds highlighting to existing HTML documentation with minimal size overhead. The solution addresses long-standing limitations in docs.rs by providing accurate, comprehensive syntax highlighting without requiring full documentation rebuilds.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://fasterthanli.me/articles/my-gift-to-the-rust-docs-team>

## Community discussion

Top comments from developers on daily.dev.

**@aschulz** · 5 upvotes

> Interesting read. Didn't know there is so much going on for some "simple" code highlighting.
> Good job!

## Similar posts on daily.dev

- [Syntax Highlighting Demo](https://daily.dev/posts/syntax-highlighting-demo-ikao8rcnd) · Hacker News · 0 upvotes · 0 comments
- [A Better R Programming Experience Thanks to Tree-sitter](https://daily.dev/posts/a-better-r-programming-experience-thanks-to-tree-sitter-fd9e27ify) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb)
