tree-type 0.4.5

Rust macros for creating type-safe filesystem tree structures
Documentation
#![allow(deprecated)]

use tree_type::tree_type;

#[test]
fn test_symlink_navigation_methods_exist() {
    tree_type! {
        TestRoot {
            #[default("main content")]
            main("main.txt"),
            #[symlink(main)]
            backup("backup.txt")
        }
    }

    let root = TestRoot::new("/tmp/test").unwrap();

    // Verify navigation methods exist
    let main = root.main();
    let backup = root.backup();

    // Verify they have the right type
    let _: TestRootMain = main;
    let _: TestRootBackup = backup;
}