Skip to content

rust-redo/macro-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.