Skip to main content

cratos_swiss/
lib.rs

1// Swiss Table core: no deep nesting, but keep the doc-lint allowance consistent
2// with the rest of the workspace (cratos_db sets the same).
3#![allow(clippy::doc_lazy_continuation)]
4
5mod arena;
6mod config;
7mod error;
8mod iter;
9mod key;
10mod mphf_key;
11mod ptr_hash_index;
12mod rust_hash_map;
13mod table;
14mod value;
15pub(crate) use arena::SlabArena;
16pub use config::SwissConfig;
17pub use error::{Result, SwissError};
18pub use iter::Iter;
19pub use key::Key;
20pub use mphf_key::MphfKey;
21pub use ptr_hash_index::{
22    PtrHashIndex, PtrHashIndexBuildProfile, PtrHashIndexBuilder, PtrHashIndexConfig,
23    PtrHashIndexSharding,
24};
25pub use rust_hash_map::{RustHashIter, RustHashMap, RustKey};
26pub use table::SwissTable;
27pub use value::{Value, ValueStore, ValueTag};
28
29const _: () = {
30    #[allow(dead_code)]
31    fn assert_send_sync<T: Send + Sync>() {}
32    #[allow(dead_code)]
33    fn _assertions() {
34        assert_send_sync::<SwissTable>();
35    }
36};