Skip to main content

alpm_mtree/
lib.rs

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