blueprint-context-derive 0.2.0-alpha.5

Procedural macros for deriving Context Extension traits from blueprint-sdk
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod ui;

#[cfg(test)]
mod tests {
    #[test]
    fn test_derive_context() {
        let t = trybuild::TestCases::new();
        t.pass("tests/ui/basic.rs");
        t.pass("tests/ui/unnamed_fields.rs");
        t.pass("tests/ui/generic_struct.rs");
        t.compile_fail("tests/ui/missing_config_attr.rs");
        t.compile_fail("tests/ui/not_a_struct.rs");
        t.compile_fail("tests/ui/unit_struct.rs");
    }
}