bitsandbytes 0.3.0

An owned, bit-aware binary codec: fast bit/byte field types and the unified #[bin] macro.
Documentation

Build #3837994 2026-07-12 23:00:54

# rustc version rustc 1.99.0-nightly (be8e82435 2026-07-11)

# docs.rs version docsrs 0.0.0 (964c90a45859fd8f9076e3cbe58470a5a4f4d4f7 2026-07-01 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "86926a077e97b2099b0867c312b018b7944d7a13a8637ffc76b97f803cfd3519" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260711-1.99.0-nightly-be8e82435\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: ais, alignment, arbitrary_width, archive, bin_message, bitbuf, bitbuf_bounded, bitfield_bytes, bufsource, bytes_frame, can_signals, checked, conditional, cstring, ctx, ctx_length, dns, endianness, enums, flags, framed, heartbeat, ipv4, mock_datagram, mock_stream, padding, peek, register, reserved, sockets, standalone, streaming, tcp, telemetry, tlv, tokio_framed, tokio_udp, try_str, unix_stream, validate, varint, versioned, versioned_cells, wav, wire_map, wire_map_dynamic [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting bitsandbytes v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `Any::downcast_mut` [INFO] [stderr] --> src/bitstream.rs:805:65 [INFO] [stderr] | [INFO] [stderr] 805 | /// via [`Sink::scratch`] and recovered by [`downcast_mut`](Any::downcast_mut). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `Any` has no associated item named `downcast_mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `Any::downcast_mut` [INFO] [stderr] --> src/bitstream.rs:1064:26 [INFO] [stderr] | [INFO] [stderr] 1064 | /// [`downcast_mut`](Any::downcast_mut). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `Any` has no associated item named `downcast_mut` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `WidthError::ValueTooLarge` [INFO] [stderr] --> src/bitstream.rs:1376:61 [INFO] [stderr] | [INFO] [stderr] 1376 | /// The prefix for a collection of `len` elements, or [`WidthError::ValueTooLarge`] when [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `WidthError` in scope [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `Varint` [INFO] [stderr] --> src/codecs.rs:39:50 [INFO] [stderr] | [INFO] [stderr] 39 | /// Generic over the field's integer width via [`Varint`]: the declared field type pins [INFO] [stderr] | ^^^^^^ no item named `Varint` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `WireLen` [INFO] [stderr] --> src/guide/directives.rs:96:81 [INFO] [stderr] | [INFO] [stderr] 96 | //! `rdlength`), or when you want to *forge* a disagreeing length — reach for [`WireLen`], [INFO] [stderr] | ^^^^^^^ no item named `WireLen` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `core::any::Any::downcast_mut` [INFO] [stderr] --> src/guide/directives.rs:293:51 [INFO] [stderr] | [INFO] [stderr] 293 | //! reach it via `w.scratch()` + [`downcast_mut`](core::any::Any::downcast_mut). The sink is the [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Any` has no associated item named `downcast_mut` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `WireLen` links to private item `self` [INFO] [stderr] --> src/wirelen.rs:22:56 [INFO] [stderr] | [INFO] [stderr] 22 | /// [`Set`](Self::Set) override. See the [module docs](self). [INFO] [stderr] | ^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] = note: `#[warn(rustdoc::private_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/net.rs:65:35 [INFO] [stderr] | [INFO] [stderr] 65 | /// [`ErrorKind::BufferFull`](crate::ErrorKind::BufferFull), rather than consuming memory [INFO] [stderr] | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 65 - /// [`ErrorKind::BufferFull`](crate::ErrorKind::BufferFull), rather than consuming memory [INFO] [stderr] 65 + /// [`ErrorKind::BufferFull`], rather than consuming memory [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `write` is both a function and a macro [INFO] [stderr] --> src/codecs.rs:228:75 [INFO] [stderr] | [INFO] [stderr] 228 | /// Writes the string's UTF-8 bytes followed by the terminator (via [`write`], so an [INFO] [stderr] | ^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 228 | /// Writes the string's UTF-8 bytes followed by the terminator (via [`write()`], so an [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the macro, add an exclamation mark [INFO] [stderr] | [INFO] [stderr] 228 | /// Writes the string's UTF-8 bytes followed by the terminator (via [`write!`], so an [INFO] [stderr] | + [INFO] [stderr] [INFO] [stderr] warning: `write` is both a function and a macro [INFO] [stderr] --> src/codecs.rs:232:14 [INFO] [stderr] | [INFO] [stderr] 232 | /// As [`write`]. [INFO] [stderr] | ^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 232 | /// As [`write()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the macro, add an exclamation mark [INFO] [stderr] | [INFO] [stderr] 232 | /// As [`write!`]. [INFO] [stderr] | + [INFO] [stderr] [INFO] [stderr] warning: `bitsandbytes` (lib doc) generated 12 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/bnb/index.html [INFO] running `Command { std: "docker" "inspect" "86926a077e97b2099b0867c312b018b7944d7a13a8637ffc76b97f803cfd3519", kill_on_drop: false }`