cfg-tt 0.4.0

A procedural macro that allows using #[cfg] anywhere and at token granularity.
Documentation
1
2
3
4
5
6
#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.pass("tests/pass/*.rs");
    t.compile_fail("tests/fail/*.rs");
}