Skip to main content

libmdbx/
lib.rs

1#![allow(clippy::type_complexity, clippy::unnecessary_cast)]
2#![doc = include_str!("../README.md")]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5pub use crate::{
6    codec::*,
7    cursor::{Cursor, IntoIter, Iter, IterDup},
8    database::{
9        Database, DatabaseKind, DatabaseOptions, Info, NoWriteMap, PageSize, Stat, WriteMap,
10    },
11    error::{Error, Result},
12    flags::*,
13    table::Table,
14    transaction::{RO, RW, Transaction, TransactionKind},
15};
16
17mod codec;
18mod cursor;
19mod database;
20mod error;
21mod flags;
22mod table;
23mod transaction;
24
25/// Fully typed ORM for use with libmdbx.
26#[cfg(feature = "orm")]
27#[cfg_attr(docsrs, doc(cfg(feature = "orm")))]
28pub mod orm;
29
30#[cfg(feature = "orm")]
31mod orm_uses {
32    #[doc(hidden)]
33    pub use arrayref;
34
35    #[doc(hidden)]
36    pub use impls;
37
38    #[cfg(feature = "cbor")]
39    #[doc(hidden)]
40    pub use ciborium;
41}
42
43#[cfg(feature = "orm")]
44pub use orm_uses::*;