Similar to trybuild, but allows you to test how declarative or procedural macros are expanded.
Minimal Supported Rust Version: 1.34.0
Please refer to the documentation.
Install nightly rust and
Add to your crate's Cargo.toml:
 = "1"
Under your crate's
tests/ directory, create
tests.rs file containing the following code:
tests/expand/ directory with rust source files. Each source file is a macro expansion test case.
See test-project and test-procmacro-project for the reference.