<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb" -->

---
title: My gift to the rustdoc team | daily.dev
description: 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...
canonical: https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: My gift to the rustdoc team | daily.dev
og:description: 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...
og:url: https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb
og:image: https://api.daily.dev/og/posts/7z6vzgbhB.png
og:image:alt: My gift to the rustdoc team
og:image:width: 1200
og:image:height: 630
og:locale: 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
- [Arborium is AI slopware and should not be trusted](https://daily.dev/posts/arborium-is-ai-slopware-and-should-not-be-trusted-rg3btglld) · Lobsters · 1 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
- [Topiary: Formatting Forests](https://daily.dev/posts/topiary-formatting-forests-a2qg3hip8) · Planet Haskell · 0 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)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"My gift to the rustdoc team","url":"https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb"},"datePublished":"2025-12-14T01:18:39.606Z","dateModified":"2025-12-14T03:15:22.786Z","description":"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...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d44bf082cc62c538c03bab9030d76e11?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d44bf082cc62c538c03bab9030d76e11?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"fasterthanli.me","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"fasterthanli.me","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/40b647c10d1e4fad9c55e724746067e4","url":"https://daily.dev/sources/fasterthanli"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":43},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"rust,webassembly","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"fasterthanli.me","item":"https://daily.dev/sources/fasterthanli"},{"@type":"ListItem","position":3,"name":"My gift to the rustdoc team"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/my-gift-to-the-rustdoc-team-7z6vzgbhb","comment":[{"@type":"Comment","text":"Interesting read. Didn’t know there is so much going on for some “simple” code highlighting.\nGood job!","datePublished":"2025-12-23T22:35:38.421Z","url":"https://daily.dev/posts/7z6vzgbhB#c-Gv4VvlU0Z","author":{"@type":"Person","name":"Alexander Schulz","url":"https://daily.dev/aschulz","image":"https://media.daily.dev/image/upload/s--QyqhQraa--/f_auto/v1739916402/avatars/avatar_ZSilQjs5aEuu2oZF7mSsN"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}}]}
```

