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_file_to_file_symlink_compiles() {
    tree_type! {
        TestRoot {
            #[default("main content")]
            main("main.txt"),
            #[symlink(main)]
            backup("backup.txt")
        }
    }

    // Just verify it compiles
    let _root = TestRoot::new("/tmp/test").unwrap();
}

#[test]
fn test_symlink_with_custom_filename() {
    tree_type! {
        TestRoot {
            config/ {
                #[default("main config")]
                main("config.toml"),
                #[symlink(main)]
                default("default.toml")
            }
        }
    }

    // Just verify it compiles
    let _root = TestRoot::new("/tmp/test").unwrap();
}