<div align="center">
# bloom-bitset
**Zero-Dependency Cache-Line-Blocked Bloom Filter, Counting Bloom & HyperLogLog**
[](https://crates.io/crates/bloom-bitset)
[](https://docs.rs/bloom-bitset)
[](https://www.rust-lang.org)
[](../LICENSE)
[Workspace Overview](../README.md) · [API Docs](https://docs.rs/bloom-bitset/latest/) · [Agent Engineering Rules](../AGENTS.md)
</div>
---
## 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`](../README.md) unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.
## Installation & Quick Start
```sh
cargo add bloom-bitset
```
```rust
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](../LICENSE) file for details.