matchy_format/lib.rs
1//! Matchy Database File Format
2//!
3//! This crate provides the binary format for matchy databases, combining:
4//! - IP trie (from matchy-ip-trie)
5//! - Pattern matching (from matchy-paraglob)
6//! - Data section (from matchy-data-format)
7//!
8//! The format orchestrates all three components into a unified .mxy file.
9
10// Public modules
11pub mod error;
12pub mod mmdb;
13pub mod offset_format;
14
15// Internal modules (types re-exported below)
16mod mmdb_builder;
17mod validation;
18
19// Re-exports
20pub use error::FormatError;
21pub use matchy_literal_hash;
22pub use mmdb_builder::{BuilderStats, DatabaseBuilder, EntryType};
23pub use offset_format::*;
24pub use validation::{
25 validate_data_mapping_consistency, EntryValidator, FormatStats, FormatValidationResult,
26};