158 releases

new 0.0.207 Mar 25, 2024
0.0.203 Feb 26, 2024
0.0.190 Dec 18, 2023
0.0.187 Nov 27, 2023
0.0.26 Nov 30, 2020

#56 in Graphics APIs

Download history 2096/week @ 2023-12-04 2077/week @ 2023-12-11 1824/week @ 2023-12-18 748/week @ 2023-12-25 1495/week @ 2024-01-01 2288/week @ 2024-01-08 2119/week @ 2024-01-15 1745/week @ 2024-01-22 1630/week @ 2024-01-29 1833/week @ 2024-02-05 1426/week @ 2024-02-12 1691/week @ 2024-02-19 3835/week @ 2024-02-26 1874/week @ 2024-03-04 1850/week @ 2024-03-11 1938/week @ 2024-03-18

9,625 downloads per month
Used in 26 crates (3 directly)

MIT/Apache

150KB
3.5K SLoC

mbe (short for Macro By Example) crate contains code for handling macro_rules macros. It uses TokenTree (from tt package) as the interface, although it contains some code to bridge SyntaxNodes and TokenTrees as well!

The tests for this functionality live in another crate: hir_def::macro_expansion_tests::mbe.

Dependencies

~6–16MB
~168K SLoC