//! Canonical encoding and decoding of mnem objects.
//!
//! Two codecs are exposed:
//!
//! - [`dagcbor`] - the canonical storage format. Byte-exact deterministic
//! per SPEC ยง3. Every content hash in mnem is computed over DAG-CBOR
//! output.
//! - [`dagjson`] - a debug / inspection format. Never hashed, never written
//! to the object store as canonical content. Useful for
//! `mnem cat-file --json` and error messages.
//!
//! The most common operation is [`dagcbor::hash_to_cid`] which encodes a
//! value to canonical CBOR and computes its content-addressed [CID].
//!
//! [CID]: crate::id::Cid
pub use ;
pub use ;
pub use ;