packbits 0.1.1

Tiny, zero-boilerplate bit packing for your own structs: convert to/from fixed-size byte arrays and integer containers with one attribute.
Documentation

Build #4007061 2026-08-01 02:46:48

# rustc version rustc 1.99.0-nightly (d0babd8b6 2026-07-15)

# docs.rs version docsrs 0.0.0 (f1b150f0cd76f7cabcd39e1f4790ba771b28b5c4 2026-07-19 )

# 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" "8fea3afddc452c501d0585d24b9c9a4fabca4362cd7c4aff52234320f8f38675" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2026-07-16" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260715-1.99.0-nightly-d0babd8b6\", \"--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", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: bit_order, packet [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 packbits v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/pack/diagram.rs:201:45 [INFO] [stderr] | [INFO] [stderr] 201 | if best.as_ref().map(|&(_, s, e)| (e + 1 - s)).unwrap_or(0) < len { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 201 - if best.as_ref().map(|&(_, s, e)| (e + 1 - s)).unwrap_or(0) < len { [INFO] [stderr] 201 + if best.as_ref().map(|&(_, s, e)| e + 1 - s).unwrap_or(0) < len { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `packbits` (lib doc) generated 1 warning (run `cargo fix --lib -p packbits` to apply 1 suggestion) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] [stderr] Generated /opt/rustwide/target/doc/packbits/index.html [INFO] running `Command { std: "docker" "inspect" "8fea3afddc452c501d0585d24b9c9a4fabca4362cd7c4aff52234320f8f38675", kill_on_drop: false }`