ekv/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_must_use)]
#![allow(async_fn_in_trait)]
#![allow(clippy::large_enum_variant)]
#![allow(clippy::new_without_default)]
#![allow(clippy::modulo_one)] // needed when ALIGN=1
// the `_test` feature makes public more stuff, causing bogus warnings.
#![cfg_attr(not(feature = "_test"), warn(missing_docs))]

// MUST go first.
mod fmt;
mod macros;

mod alloc;
pub mod config;
mod cursor;
mod errors;
pub mod flash;
mod types;

pub use cursor::Cursor;
pub use errors::*;
pub use record::{Config, Database, ReadTransaction, WriteTransaction};

#[cfg(feature = "_test")]
pub mod file;
#[cfg(feature = "_test")]
pub mod page;
#[cfg(feature = "_test")]
pub mod record;

#[cfg(not(feature = "_test"))]
mod file;
#[cfg(not(feature = "_test"))]
mod page;
#[cfg(not(feature = "_test"))]
mod record;