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

#998 in Data structures

Download history 152703/week @ 2026-04-11 155961/week @ 2026-04-18 142351/week @ 2026-04-25 169377/week @ 2026-05-02 207135/week @ 2026-05-09 235844/week @ 2026-05-16 220121/week @ 2026-05-23 272981/week @ 2026-05-30 250321/week @ 2026-06-06 215265/week @ 2026-06-13 204048/week @ 2026-06-20 210499/week @ 2026-06-27 198540/week @ 2026-07-04 212152/week @ 2026-07-11 223279/week @ 2026-07-18 218669/week @ 2026-07-25

879,465 downloads per month
Used in 3,169 crates (86 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

~205KB