//! Embedded dictionary - available with the `embedded` feature.
//!
//! The bytes of `tags.dmap` at workspace root are baked into the compiled
//! binary via `include_bytes!`. Consumers call `embedded()` to obtain an
//! already-validated [`DmapDict`] without touching the filesystem.
//!
//! The build fails if `tags.dmap` is missing - run `dmap-compile` first.
use crateDmapDict;
// rkyv requires the archive body to be 4-byte aligned. `include_bytes!` only
// guarantees 1-byte alignment, so we wrap the data in an aligned newtype.
static ALIGNED_DMAP: & = &AlignedAs ;
/// Raw bytes of the embedded dictionary, guaranteed 4-byte aligned.
pub const TAGS_DMAP: & = &ALIGNED_DMAP.bytes;
/// Returns a validated [`DmapDict`] backed by the embedded bytes. Panics if
/// the bytes are somehow malformed (they can't be, in practice - the build
/// would have produced them from the same schema).