31 releases

Uses old Rust 2015

0.11.1 Mar 19, 2020
0.11.0 Jan 16, 2019
0.10.0 Jun 20, 2018
0.4.2 Mar 31, 2018

#1991 in Data structures

Download history 184564/week @ 2026-07-01 216717/week @ 2026-07-08 210908/week @ 2026-07-15 230131/week @ 2026-07-22 225070/week @ 2026-07-29 216436/week @ 2026-08-05 223009/week @ 2026-08-12 252153/week @ 2026-08-19 263943/week @ 2026-08-26 274539/week @ 2026-09-02 288696/week @ 2026-09-09 279354/week @ 2026-09-16 263069/week @ 2026-09-23 252540/week @ 2026-09-30 96488/week @ 2026-10-07

654,931 downloads per month
Used in 3,258 crates (85 directly)

MIT/Apache

165KB
3.5K SLoC

bv-rs: bit-vectors and bit-slices for Rust

Build Status Crates.io License: MIT License: Apache 2.0

The main type exported by the library, BitVec, is a packed, growable bit-vector. Its API mirrors that of Vec where reasonable. The library also defines slice operations that return BitSlice or BitSliceMut, akin to Rust’s array slices but for bit-vectors. A common API to bit-vectors and bit-slices is provided by the Bits, BitsMut, and BitsPush traits, which also allow treating as bit-vectors all primitive unsigned integer types (uN), and vectors and slices thereof, as well as unpacked vectors and slices of bool.

Usage

It’s on crates.io, so you can add

[dependencies]
bv = "0.11.1"

to your Cargo.toml and

extern crate bv;

to your crate root.

This crate supports Rust version 1.31 and newer.

Dependencies

~200KB