FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

RawSocketLabs/bitsandbytes · GitHub

This repository was archived by the owner on Jul 4, 2026. It is now read-only.
/ bitsandbytes Public archive

Note

This repository has moved. Its crate(s) now live in the RawSocketLabs/rsl monorepo, developed in lockstep and published independently. This repo is archived (read-only); development continues there.

bitsandbytes

An owned, bit-aware binary codec for Rust — integer-backed bitfields, arbitrary-width integers (u1..u127), enums, and the unified #[bin] whole-message codec, with a no_std core. Published as bitsandbytes but imported in code as bnb:

[dependencies]
bnb = { package = "bitsandbytes", version = "0.1" }
use bnb::{bin, bitfield, BitEnum};

It collapses the capabilities of modular-bitfield/bitbybit/arbitrary-int/num_enum plus a declarative codec (modeled on binrw) into one crate. See:

  • bnb/README.md — the crate overview and quick start.
  • bnb/DESIGN.md — design rationale.
  • bnb/ROADMAP.md — status and capabilities.
  • the in-crate guide module (cargo doc --open) — runnable, doctested walkthroughs.

Layout

crate path published as imported as
runtime bnb/ bitsandbytes bnb
proc-macros bnb-macros/ bitsandbytes-macros bnb_macros (re-exported by bnb)

no_std: build with --no-default-features (always needs alloc); the default std feature adds the std::io ladder and encode(writer) conveniences.

Contributing & security

See CONTRIBUTING.md for how contributions work (and the local checks that mirror CI), and SECURITY.md to report a vulnerability.

License

Dual-licensed under either of MIT or Apache-2.0 at your option.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL