jedisct1 / rust-bloom-filter

A fast Bloom filter implementation in Rust
BSD 2-Clause "Simplified" License
235 stars 51 forks source link

Support `no_std` #42

Open antonok-edm opened 1 year ago

antonok-edm commented 1 year ago

Surprisingly, it's extremely difficult to find usable no_std implementations of approximate-membership structures on https://crates.io.

I've added an on-by-default std feature; when disabled this crate will support no_std.

Note that this adds the libm dependency, which is the recommended approach for using methods like std::primitive::f64::{ceil, ln} in no_std contexts.