directree 0.1.0

Represent directory trees as modules and functions
Documentation
pub use directree_macros::*;

#[cfg(test)]
mod test {
    mod paths {
        use crate::directree;
        directree! {
            something: "something.toml",
            somewhere: "somewhere" {
                something_else: "somethingelse.toml",
                aaa: "asht" {
                    bbb: "neoi" {
                        empty: "nothing_here" {},
                        not_empty: "a_file.txt",
                        not_empty_2: "a_file.txt",
                    }
                }
            }
        }
    }

    #[test]
    fn directree_macro() {
        assert_eq!(
            paths::somewhere::aaa(),
            std::path::Path::new("somewhere/asht"),
        );

        assert_eq!(
            paths::somewhere::aaa::bbb::not_empty_2(),
            std::path::Path::new("somewhere/asht/neoi/a_file.txt"),
        );
    }
}