tree-type-proc-macro 0.1.1

Procedural macros for tree-type crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use tree_type_proc_macro::tree_type;

tree_type! {
    TestRoot {
        config
    }
}

#[test]
fn test_basic_macro_compiles() {
    let root = TestRoot::new("/tmp/test");
    let config = root.config();
    assert_eq!(config.as_path(), std::path::Path::new("/tmp/test/config"));
}