cbor_cli/lib.rs
1//! Command-line tool and library for encoding, decoding, and inspecting CBOR
2//! (RFC 8949) via serde.
3//!
4//! ## Library embedding API
5//!
6//! Three functions form the stable public API for embedding:
7//!
8//! - [`import::import_from_reader`] — encode JSON/YAML/TOML/CBOR streams to CBOR
9//! - [`export::export_from_reader`] — decode CBOR streams to JSON/YAML/TOML/CBOR
10//! - [`inspect::inspect_from_reader`] — render CBOR as Concise Diagnostic Notation
11//!
12//! The `config` and `files` modules are public only because the
13//! `cbor` binary shares this crate; they are implementation details and get no
14//! stability guarantees.
15pub mod config;
16pub mod export;
17pub mod files;
18pub mod import;
19pub mod inspect;