原书出处
Write Powerful Rust Macros
06 Testing a builder macro 工作区、生成库与宏入口
The macro definition is very similar to the one we had before, except that it is now in a separate package. We have defined a derive macro called Builder that accepts a normal TokenStream as a parameter and returns another. Because our builder-code is only using the proc_macro2, we are forced into a “translation” when we pass this data to builder-code.
And when we get back results, we
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Write Powerful Rust Macros/_epub-src/OEBPS/Text/chapter-6.xhtml#p33
EPUB SHA-256:68c7ed23324b44144895c3bb55f55731454da237867b66ec66ca6404f5b93661