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

14m read timeFrom fasterthanli.me
Post cover image
Table of contents
BackgroundProblemsSolutionsarboriumAngle 1: just include this scriptAngle 2: it goes in the rustdoc holeAngle 3: only in the backendPost-mortemConclusionSome mistakes Rust doesn't catch
1 Comment

Sort: