binary-layout 3.1.1

The binary-layout library allows type-safe, inplace, zero-copy access to structured binary data. You define a custom data layout and give it a slice of binary data, and it will allow you to read and write the fields defined in the layout from the binary data without having to copy any of the data. It's similar to transmuting to/from a `#[repr(packed)]` struct, but much safer.
Documentation
Build #599384 2022-07-25 05:51:49

# rustc version rustc 1.64.0-nightly (7fe022f5a 2022-07-24)

# docs.rs version docsrs 0.6.0 (f9ffabd 2022-07-24)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/binary-layout-3.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/binary-layout-3.1.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20220724-1.64.0-nightly-7fe022f5a\", \"--static-root-path\", \"/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 51bdc583d88665914c4eeac0f7c6087d062c9b08ccce26c6e8514bb5481d8008 [INFO] running `Command { std: "docker" "start" "-a" "51bdc583d88665914c4eeac0f7c6087d062c9b08ccce26c6e8514bb5481d8008", kill_on_drop: false }` [INFO] [stderr] Documenting binary-layout v3.1.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `define_layout` [INFO] [stderr] --> src/fields/primitive/view.rs:53:10 [INFO] [stderr] | [INFO] [stderr] 53 | /// [define_layout!] macro for you. [INFO] [stderr] | ^^^^^^^^^^^^^^ no item named `define_layout` in scope [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] = note: `macro_rules` named `define_layout` exists in this crate, but it is not in scope at this link's location [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `define_layout` [INFO] [stderr] --> src/macro_define_layout.rs:21:26 [INFO] [stderr] | [INFO] [stderr] 21 | /// This is because the [define_layout!] macro creates a [View class with several accessors](#struct-view) for each field that contain th... [INFO] [stderr] | ^^^^^^^^^^^^^^ no item named `define_layout` in scope [INFO] [stderr] | [INFO] [stderr] = note: `macro_rules` named `define_layout` exists in this crate, but it is not in scope at this link's location [INFO] [stderr] [INFO] [stderr] warning: `binary-layout` (lib doc) generated 2 warnings [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.75s [INFO] running `Command { std: "docker" "inspect" "51bdc583d88665914c4eeac0f7c6087d062c9b08ccce26c6e8514bb5481d8008", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51bdc583d88665914c4eeac0f7c6087d062c9b08ccce26c6e8514bb5481d8008", kill_on_drop: false }` [INFO] [stdout] 51bdc583d88665914c4eeac0f7c6087d062c9b08ccce26c6e8514bb5481d8008