39 releases

0.10.6 Jul 2, 2024
0.10.4 Apr 30, 2024
0.10.3 Feb 15, 2024
0.10.2 Jul 25, 2023
0.0.15 Dec 29, 2014

#10 in Data structures

Download history 215206/week @ 2024-07-30 192903/week @ 2024-08-06 215608/week @ 2024-08-13 220892/week @ 2024-08-20 191767/week @ 2024-08-27 209279/week @ 2024-09-03 218916/week @ 2024-09-10 199656/week @ 2024-09-17 228703/week @ 2024-09-24 221204/week @ 2024-10-01 239596/week @ 2024-10-08 222259/week @ 2024-10-15 228323/week @ 2024-10-22 206003/week @ 2024-10-29 217855/week @ 2024-11-05 206261/week @ 2024-11-12

897,651 downloads per month
Used in 193 crates (67 directly)

MIT/Apache

315KB
7K SLoC

RoaringBitmap github-actions-badge release-badge docs-badge rust-version-badge

This is a Rust port of the Roaring bitmap data structure, initially defined as a Java library and described in Better bitmap performance with Roaring bitmaps.

Rust version policy

This crate only supports the current stable version of Rust, patch releases may use new features at any time.

Developing

This project uses Clippy, rustfmt, and denies warnings in CI builds. Available via rustup component add clippy rustfmt.

To ensure your changes will be accepted please check them with:

cargo fmt -- --check
cargo fmt --manifest-path benchmarks/Cargo.toml -- --check
cargo clippy --all-targets -- -D warnings

In addition, ensure all tests are passing with cargo test

Benchmarking

It is recommended to run the cargo bench command inside of the benchmarks directory. This directory contains a library that is dedicated to benchmarking the Roaring library by using a set of real-world datasets. It is also advised to run the benchmarks on a bare-metal machine, running them on the base branch and then on the contribution PR branch to better see the changes.

Those benchmarks are designed on top of the Criterion library, you can read more about it on the user guide.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Experimental features

The simd feature is in active development. It has not been tested. If you would like to build with simd note that std::simd is only available in Rust nightly.

Dependencies