Conquer the challenge, be a macro master
git clone https://github.com/rust-redo/macro-master.git
Tip: for a better understanding of each macro, it's recommended to read comments and test cases first. For procedural macros, you can use
quote
andsyn
crates to simplify theTokenStream
process.
Running a challenge is simple, go to the challenge module and implement macro to make all tests pass. You can run cargo test [test_name]
for a specific macro's test cases.
All the challenges come from simplified implementations of these excellent projects below.