Simple helper to register macro handler and process their input from build.rs Currentyl support only function-like macro.
Usefull when your macro should output file, but you want to avoid race conditions during incremental compiliation and other routines.
Uses syn to parse file and visit their macros.
Imagine you have some macro css that implement scoping css technic.
It process css syntax and return css_class. But you also need to agregate all css! calls and save them into style.css
In order to agregate all css, you should open all src files, find if css! was used and handle their input. You also should handle imports and renames.
Target of this crate is to deal with this problems.
In build.rs
macro-visit will find all occurences of css macro, even if it was renamed.
Currently it only looks for imports inside one file at time, and does not parallelize file processing.