| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
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:
| 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.
See CONTRIBUTING.md for how contributions work (and the local checks that mirror CI), and SECURITY.md to report a vulnerability.
Dual-licensed under either of MIT or Apache-2.0 at your option.
| Back | FazBrowse Home | New Git URL |