Content-Length: 268814 | pFad | http://github.com/eupn/macrotest/#start-of-content

80 GitHub - eupn/macrotest: Test harness for declarative and procedural macros expansion via `cargo-expand`
Skip to content
/ macrotest Public

Test harness for declarative and procedural macros expansion via `cargo-expand`

Notifications You must be signed in to change notification settings

eupn/macrotest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macrotest

Travis-CI Crates.io MSRV 1.56 docs.rs Crates.io Crates.io

Similar to trybuild, but allows you to test how declarative or procedural macros are expanded.

Minimal Supported Rust Version: 1.56


Documentation

Please refer to the documentation.

Example

Install cargo expand.

Add to your crate's Cargo.toml:

[dev-dependencies]
macrotest = "1"

Under your crate's tests/ directory, create tests.rs file containing the following code:

#[test]
pub fn pass() {
    macrotest::expand("tests/expand/*.rs");
}

Populate the 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.

About

Test harness for declarative and procedural macros expansion via `cargo-expand`

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/eupn/macrotest/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy