Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

macro_railroad_ext

> 编程语言
Open source

Display syntax-diagrams for Rust-macros on docs.rs and doc.rust-lang.org

200 stars0 likes3 views
WebsiteGitHub

About

Display syntax-diagrams for Rust-macros on docs.rs and doc.rust-lang.org

A WebExtension compatible with Chrome, Firefox and Edge to display syntax-diagrams for Rust's macro_rules!() on docs.rs, doc.rust-lang.org and all other pages generated by rustdoc.

A pre-built version for Chrome is published here, for Firefox here, for Edge here.

macro_railroad_ext is also integrated into Rust Search Extension


The extension uses macro_railroad to generate diagrams. The diagrams are shown beneath each macro-block. Use the icons in the lower right corner to control options and expand the diagram to fullscreen.

To modify and build the extension locally:

  • Install the wasm-pack binary from crates.io.
  • The package in wasm_src can be executed via wasm-pack build -t no-modules to build destination wasm package, although the Makefile usually takes care of that.
  • make test executes the integration tests; Chrome is required.
  • make screenshots takes a couple of screenshots on common pages for visual inspection; Chrome is required.
  • make playground builds the extension from source and starts a blank-profile Chrome with the extension loaded; press ctrl+c to quit.
  • make packed.zip builds the extension's compressed archive, which can be loaded into a browser as a temporary extension.
  • Go to "about:debugging" (Firefox) or "chrome://extensions" (Chrome) and use "Load temporary Add-on"/"Load local extension" with manifest.json/packed.zip to load the extension.

Note: The only reason this extension requests access to file:///* is local documentation; no data is ever transferred. You may need to enable "Allow access to file URLs" in Chromium-based browsers to use the extension with local documentation.

Issues· 5 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言