sbf/lib.rs
1//! SBF is a probabilistic data structure that maps elements of a space to indexed disjoint subsets
2//! of that space.
3//!
4//! This is a reimplementation of the [C library](https://github.com/spatialbloomfilter/libSBF-cpp)
5//! by the original research group.
6
7#![deny(
8// Harden built-in lints
9missing_copy_implementations,
10missing_debug_implementations,
11missing_docs,
12unreachable_pub,
13
14// Harden clippy lints
15clippy::all,
16)]
17
18#[cfg(feature = "metrics")]
19pub use metrics::Metrics;
20pub use {
21 data_structure::SBF,
22 error::Error,
23 types::{HashFunction, Salt},
24};
25
26pub mod data_structure;
27pub mod error;
28#[cfg(feature = "metrics")]
29pub mod metrics;
30pub mod types;
31
32#[cfg(test)]
33mod tests;