Skip to content

Latest commit

 

History

History
executable file
·
34 lines (19 loc) · 898 Bytes

README.md

File metadata and controls

executable file
·
34 lines (19 loc) · 898 Bytes

macro-master

Conquer the challenge, be a macro master

Install

git clone https://github.com/rust-redo/macro-master.git

Challenges

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 and syn crates to simplify the TokenStream 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.

macro_rules

procedural macro

References

All the challenges come from simplified implementations of these excellent projects below.