| Crates.io | tree-to-archive |
| lib.rs | tree-to-archive |
| version | 0.0.0 |
| created_at | 2025-11-03 15:12:26.262025+00 |
| updated_at | 2025-11-03 15:12:26.262025+00 |
| description | Create an archive from an fs tree macro or YAML |
| homepage | |
| repository | https://github.com/KSXGitHub/tree-to-archive.git |
| max_upload_size | |
| id | 1914816 |
| size | 26,151 |
Create an archive from an fs tree macro or YAML.
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();
See docs.rs.