Skip to main content

Crate config_disassembler

Crate config_disassembler 

Source
Expand description

config-disassembler

Disassemble configuration files (XML, JSON, JSON5, YAML) into smaller files and reassemble the original on demand. The XML implementation is delegated to the xml_disassembler crate; JSON, JSON5, and YAML share a common value model so a file in one format can be split into files of another format and reassembled back into any supported format.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

cli
Top-level command-line dispatcher.
disassemble
Disassemble a JSON, JSON5, or YAML document into a directory of smaller files, optionally written in a different format than the input.
error
Error type used throughout the crate.
format
Format detection and serialization for JSON, JSON5, and YAML.
meta
Metadata sidecar describing a disassembled directory.
reassemble
Reassemble a directory of split files (produced by disassemble) back into a single configuration file.
xml_cmd
xml subcommand: thin wrapper around the xml_disassembler CLI.

Functions§

run
Entry point used by the binary. args[0] is the program name.