Skip to main content

Crate mdict_rs

Crate mdict_rs 

Source
Expand description

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

Re-exports§

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

Modules§

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