alpm_mtree/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// Commandline argument handling. This is most likely not interesting for you.
4#[cfg(feature = "cli")]
5pub mod cli;
6/// Commandline functions, that're called by the `alpm-mtree` executable.
7#[cfg(feature = "cli")]
8pub mod commands;
9mod error;
10pub use error::Error;
11
12#[cfg(feature = "creation")]
13pub mod file;
14#[cfg(feature = "creation")]
15pub use file::{
16    create::{create_mtree_v1_from_input_dir, create_mtree_v2_from_input_dir},
17    error::Error as CreationError,
18};
19
20pub mod mtree;
21pub use mtree::{Mtree, v2::parse_mtree_v2};
22
23/// Low-level parser for MTREE files. You'll likely want to use [`parse_mtree_v2`] instead.
24pub mod parser;
25/// MTREE files use a special non-ascii encoding for their paths.
26mod path_decoder;
27
28mod utils;
29pub(crate) use utils::mtree_buffer_to_string;
30
31mod schema;
32pub use schema::MtreeSchema;