bloom-bitset 11.1.0

Zero-dependency probabilistic data structures: 512-bit cache-line-blocked Bloom filter, 4-bit saturating Counting Bloom filter, and HyperLogLog cardinality estimator.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented0 out of 0 items with examples
  • Size
  • Source code size: 28.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 321.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 1s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates-dev/ctares
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vshengbro

bloom-bitset

Zero-Dependency Cache-Line-Blocked Bloom Filter, Counting Bloom & HyperLogLog

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Provides zero-dependency probabilistic data structures: 512-bit cache-line-aligned BlockedBloomFilter, 4-bit saturating CountingBloomFilter with deletion support, and 64-bit HyperLogLog cardinality estimation with distributed merge.

This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.

Installation & Quick Start

cargo add bloom-bitset
use bloom_bitset::*;

let mut bf: BlockedBloomFilter = BlockedBloomFilter::with_rate(10_000, 0.01);
bf.insert(b"session:abc");
assert!(bf.contains(b"session:abc"));

let mut hll: HyperLogLog = HyperLogLog::default();
hll.insert(b"visitor-1");
assert!(hll.estimate() >= 1.0);

License

This project is licensed under the MIT License. See the LICENSE file for details.