mdict-rs 0.1.4

Library-first Rust parser for MDict .mdx and .mdd dictionaries
Documentation
//! Clean-room, library-first parser for MDict `.mdx` and `.mdd` dictionaries.
//!
//! The implementation is intentionally defensive:
//! - all binary parsing goes through checked readers
//! - compressed blocks are checksum-verified and size-limited
//! - unsupported features fail with structured errors instead of panicking
//! - parsing logic is shared between MDX and MDD wrappers

#![forbid(unsafe_code)]

mod core;

pub mod checksum;
pub mod compression;
pub mod crypto;
pub mod cursor;
pub mod encoding;
pub mod error;
pub mod header;
pub mod key_index;
pub mod limits;
pub mod mdd;
pub mod mdx;
pub mod record_index;
pub mod source;
pub mod types;

pub use error::{Error, Result};
pub use mdd::{
    MddEntryIter, MddFile, MddKeyIter, MddOrdinalKey, MddOrdinalKeyIter, MddResource,
    MddResourceSpan,
};
pub use mdx::{MdxEntryIter, MdxFile, MdxKeyIter, MdxOrdinalKey, MdxOrdinalKeyIter, MdxRecord};
pub use types::{ContainerKind, EncryptionMode, Header, KeyOrdinal, OpenOptions, Passcode};