Display syntax-diagrams for Rust-macros on docs.rs and doc.rust-lang.org Using the `macro_railroad`-library syntax diagrams are created for all macros documented on docs.rs and doc.rust-lang.org The diagrams are shown beneath each macro-block.
What is macro_railroad?
macro_railroad is a Firefox add-on that uses the macro_railroad library to create syntax diagrams for Rust macros on docs.rs and doc.rust-lang.org. The diagrams are displayed beneath each macro-block and can be expanded to fullscreen. This open-source extension welcomes contributions on GitHub.
macro_railroad-library this extension generates syntax diagrams for all macros documented on docs.rs. The diagrams are display beneath each macro-block.
Use the icons in the lower right corner to control options and expand the diagram to fullscreen.
This extension is open source, contributions are very welcome: https://github.com/lukaslueg/macro_railroad_ext
macro_railroad may not be safe to use and it requires some risky permissions. Exercise caution when installing this add-on. Review carefully before installing.
macro_railroad has earned a fairly good reputation and likely can be trusted.