Skip to main content

mmdb_writer/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod data_section;
4mod error;
5#[cfg(feature = "load")]
6mod load;
7mod metadata;
8mod net;
9mod options;
10mod pool;
11mod record_size;
12mod reserved;
13#[cfg(feature = "serde")]
14mod ser;
15mod tree;
16mod value;
17mod writer;
18
19pub use crate::error::Error;
20pub use crate::net::IpVersion;
21pub use crate::options::{Ipv4Aliasing, MergeStrategy, MetadataPointers, ReservedNetworks};
22pub use crate::record_size::RecordSize;
23pub use crate::value::Value;
24pub use crate::writer::{Writer, WriterBuilder};
25
26/// The [`ipnet`] crate, re-exported for constructing the network types the insert methods
27/// accept.
28pub use ipnet;
29
30/// A convenient result type alias for fallible operations in this crate.
31pub type Result<T, E = Error> = std::result::Result<T, E>;