115 releases

0.0.149 Jan 16, 2023
0.0.145 Dec 26, 2022
0.0.141 Nov 28, 2022
0.0.122 Jul 25, 2022
0.0.26 Nov 30, 2020
Download history 1282/week @ 2022-11-29 1451/week @ 2022-12-06 1224/week @ 2022-12-13 1866/week @ 2022-12-20 1563/week @ 2022-12-27 1584/week @ 2023-01-03 1543/week @ 2023-01-10 1312/week @ 2023-01-17 1744/week @ 2023-01-24 1642/week @ 2023-01-31 1777/week @ 2023-02-07 2047/week @ 2023-02-14 3195/week @ 2023-02-21 1523/week @ 2023-02-28 1476/week @ 2023-03-07 1336/week @ 2023-03-14

7,827 downloads per month
Used in 24 crates (3 directly)

MIT/Apache

135KB
3K 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 tes for this functionality live in another crate: hir_def::macro_expansion_tests::mbe.

Dependencies

~2.6–8MB
~137K SLoC