tree-type-proc-macro 0.1.0

Procedural macros for tree-type crate
Documentation
use tree_type_proc_macro::tree_type;

// Test 1: Basic file
tree_type! {
    Root1 {
        config
    }
}

// Test 2: Basic directory
tree_type! {
    Root2 {
        src/ {
            lib
        }
    }
}

// Test 3: Custom filename
tree_type! {
    Root3 {
        config(".config")
    }
}

// Test 4: Custom type
tree_type! {
    Root4 {
        config as ConfigFile
    }
}

// Test 5: Nested (3 levels)
tree_type! {
    Root5 {
        a/ {
            b/ {
                c
            }
        }
    }
}

// Test 6: Multiple children
tree_type! {
    Root6 {
        config,
        readme,
        src/ {
            lib,
            main
        }
    }
}

// Test 7: Complex combination
tree_type! {
    Root7 {
        config(".config"),
        readme("README.md") as ReadmeFile,
        src/ {
            lib,
            main
        },
        ssh/(".ssh") {
            id_rsa
        }
    }
}

#[test]
fn test_parser_compiles() {
    // If this test compiles, the parser successfully parsed all syntax variations
    // Verify at least one struct was generated
    let _ = Root1::new("/tmp");
}