166 releases

new 0.0.215 May 13, 2024
0.0.213 Apr 29, 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 1758/week @ 2024-01-21 1670/week @ 2024-01-28 1792/week @ 2024-02-04 1433/week @ 2024-02-11 1745/week @ 2024-02-18 3764/week @ 2024-02-25 1831/week @ 2024-03-03 1856/week @ 2024-03-10 2183/week @ 2024-03-17 1907/week @ 2024-03-24 1995/week @ 2024-03-31 2099/week @ 2024-04-07 2109/week @ 2024-04-14 1637/week @ 2024-04-21 1455/week @ 2024-04-28 1372/week @ 2024-05-05

6,820 downloads per month
Used in 27 crates (3 directly)

MIT/Apache

155KB
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–18MB
~172K SLoC