Generate syntax diagrams for `macro_rules!()` on docs.rs and doc.rust-lang.org

Latest Version

Version
0.0.7
Update
August 12, 2022
Size
90.43KiB
Developer
Category
Users
89
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
See more

macro_railroad Extension

Using the `macro_railroad`-library this extension generates syntax diagrams for all macros generated by `rustdoc`. The diagrams are shown beneath each macro-block.

**Note**: The only reason this extension requests access to `file:///*` is local documentation. No data is ever transferred.

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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "macro_railroad", "version": "0.0.7", "description": "Generate syntax diagrams for `macro_rules!()` on docs.rs and doc.rust-lang.org", "author": "Lukas Lueg ", "icons": { "48": "icons/icon48.png", "96": "icons/icon96.png" }, "content_scripts": [ { "matches": [ "*://*.docs.rs/*", "*://doc.rust-lang.org/*", "file:///*" ], "js": [ "content_scripts/macro_railroad_ext.js", "content_scripts/main.js" ] } ], "options_ui": { "page": "options/options.html" }, "web_accessible_resources": [ "wasm/macro_railroad_ext.wasm", "assets/fullscreen.svg", "assets/options.svg", "assets/macro_railroad_ext.css" ]}
Read more