tree-to-archive 0.0.0

Create an archive from an fs tree macro or YAML
Documentation

tree-to-archive

Create an archive from an fs tree macro or YAML.

Usage Example

use tree_to_archive::{
    tree::{dir, file, FileSystemTree},
    tar::BuildTar,
};

let tree: FileSystemTree<&str, &str> = dir! {
    "README.md" => file!("# My Project"),
    "src" => dir! {
        "main.rs" => file!("fn main() {}"),
    },
};

let archive_data: Vec<u8> = tree.build_tar().unwrap();

Documentation

See docs.rs.

License

MIT © Hoàng Văn Khải.