Skip to main content

config_disassembler/
lib.rs

1//! config-disassembler
2//!
3//! Disassemble configuration files (XML, JSON, JSON5, YAML) into smaller
4//! files and reassemble the original on demand. The XML implementation is
5//! delegated to the [`xml_disassembler`] crate; JSON, JSON5, and YAML share
6//! a common value model so a file in one format can be split into files of
7//! another format and reassembled back into any supported format.
8
9pub mod cli;
10pub mod disassemble;
11pub mod error;
12pub mod format;
13pub mod meta;
14pub mod reassemble;
15pub mod xml_cmd;
16
17pub use error::{Error, Result};
18
19/// Entry point used by the binary. `args[0]` is the program name.
20pub async fn run(args: Vec<String>) -> Result<()> {
21    cli::dispatch(args).await
22}