# ferrilab/bitvec

A crate for managing memory bit by bit

Repository: https://github.com/ferrilab/bitvec
Canonical: https://ross.abutalabs.com/products/bitvec
Homepage: https://myrrlyn.net/crates/bitvec
Language: Rust
License: MIT
License Family: permissive
Topics: rust, bitset, bitvector
Last push: 2024-08-09T07:35:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2988, "days_push": 754, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1444, forks 134 (observed 2026-08-28T04:04:44.959392+00:00)

## What it is
A Rust crate that provides bit-addressed memory management, specializing slices, arrays, and vectors to store one bit per bool, similar to C++'s std::bitset and std::vector<bool>. It also supports dividing memory into arbitrary-width integer regions like Erlang binaries, with safe concurrent aliasing semantics.

## Use cases
- store booleans compactly one bit per bool in Rust
- implement bitfields for wire protocols and binary formats
- parse and build bit-level data streams like Erlang binaries
- manipulate individual bits without manual shift and mask code
- use bitsets and bitvectors with Rust ownership and borrowing
- work with bit-addressed memory in embedded Rust projects

## When to choose
- you need safe, idiomatic Rust bit-level memory access with precise layout control
- you want C++ std::bitset or vector<bool> equivalents in Rust
- you need bitfield packing for transport protocols or binary serialization
- you require concurrent-safe bit slice aliasing

## When to avoid
- you only need simple integer bitmask math on a handful of flags
- you are not working in Rust
- you need a bit-level binary parser DSL rather than a memory model (consider deku)

## Facets
- artifact type: library
- maturity: stable
- function: serialization, file-system
- domain: developer-tools, embedded-systems
- platform: rust, cross-platform, embedded
- tags: bit-manipulation, bitfield, bitset, bitvector, memory-layout, no-std, algorithms

## Member repositories
- ferrilab/bitvec (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:44.959392+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:17.608513+00:00, confidence not recorded.
  - readme: https://github.com/ferrilab/bitvec (fetched 2026-08-28T04:04:44.959392+00:00, sha 95fd2e9ae93d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
