177 releases

new 0.0.226 Jul 22, 2024
0.0.222 Jun 24, 2024
0.0.207 Mar 25, 2024
0.0.190 Dec 18, 2023
0.0.26 Nov 30, 2020

#54 in Graphics APIs

Download history 2165/week @ 2024-04-05 2008/week @ 2024-04-12 1817/week @ 2024-04-19 1456/week @ 2024-04-26 1468/week @ 2024-05-03 1581/week @ 2024-05-10 1822/week @ 2024-05-17 1654/week @ 2024-05-24 1554/week @ 2024-05-31 1649/week @ 2024-06-07 1856/week @ 2024-06-14 1726/week @ 2024-06-21 1571/week @ 2024-06-28 1875/week @ 2024-07-05 1799/week @ 2024-07-12 1403/week @ 2024-07-19

6,902 downloads per month
Used in 27 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

~7–18MB
~181K SLoC