binread 2.2.0

A Rust crate for helping read structs from binary data using ✨macro magic✨
Documentation

Build #3323699 2026-05-19 09:17:04

# rustc version rustc 1.97.0-nightly (9eb3be26b 2026-05-18)

# docs.rs version docsrs 0.0.0 (e50152ed411bb913753b1dfd203f22cb8711f097 2026-05-17 )

# 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" "23bdb610ea2331fda92635f65a20d7f9bef031c47ecde5353657c3a02c248712" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260518-1.97.0-nightly-9eb3be26b\", \"--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: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting binread v2.2.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:28:49 [INFO] [stderr] | [INFO] [stderr] 28 | //! At the core of `binread` is the [`BinRead`](BinRead) trait. It defines how to read [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] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 28 - //! At the core of `binread` is the [`BinRead`](BinRead) trait. It defines how to read [INFO] [stderr] 28 + //! At the core of `binread` is the [`BinRead`] trait. It defines how to read [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:42:91 [INFO] [stderr] | [INFO] [stderr] 42 | //! So, as a balance between ergonomics and configurability you have the [`BinReaderExt`](BinReaderExt) [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] 42 - //! So, as a balance between ergonomics and configurability you have the [`BinReaderExt`](BinReaderExt) [INFO] [stderr] 42 + //! So, as a balance between ergonomics and configurability you have the [`BinReaderExt`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:60:27 [INFO] [stderr] | [INFO] [stderr] 60 | //! implement [`BinRead`](BinRead) for your own types. This allows you to replace repetitive [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] 60 - //! implement [`BinRead`](BinRead) for your own types. This allows you to replace repetitive [INFO] [stderr] 60 + //! implement [`BinRead`] for your own types. This allows you to replace repetitive [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:96:52 [INFO] [stderr] | [INFO] [stderr] 96 | //! For a list of attributes see the [`attribute`](attribute) module [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] 96 - //! For a list of attributes see the [`attribute`](attribute) module [INFO] [stderr] 96 + //! For a list of attributes see the [`attribute`] module [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/attribute.rs:40:61 [INFO] [stderr] | [INFO] [stderr] 40 | //! | [`try`](#try) | field | Reads data into an [`Option`](core::option::Option), but stores `None` if parsing fails instead of ret... [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] 40 - //! | [`try`](#try) | field | Reads data into an [`Option`](core::option::Option), but stores `None` if parsing fails instead of returning an error. [INFO] [stderr] 40 + //! | [`try`](#try) | field | Reads data into an [`Option`], but stores `None` if parsing fails instead of returning an error. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/attribute.rs:326:24 [INFO] [stderr] | [INFO] [stderr] 326 | //! to its [`Default`](core::default::Default) instead of reading data from the [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] 326 - //! to its [`Default`](core::default::Default) instead of reading data from the [INFO] [stderr] 326 + //! to its [`Default`] instead of reading data from the [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/file_ptr.rs:132:34 [INFO] [stderr] | [INFO] [stderr] 132 | /// that reads a [`FilePtr`](FilePtr) then immediately dereferences it into an owned value [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] 132 - /// that reads a [`FilePtr`](FilePtr) then immediately dereferences it into an owned value [INFO] [stderr] 132 + /// that reads a [`FilePtr`] then immediately dereferences it into an owned value [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/file_ptr.rs:155:85 [INFO] [stderr] | [INFO] [stderr] 155 | /// Used to allow any convert any type castable to i64 into a [`SeekFrom::Current`](io::SeekFrom::Current) [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] 155 - /// Used to allow any convert any type castable to i64 into a [`SeekFrom::Current`](io::SeekFrom::Current) [INFO] [stderr] 155 + /// Used to allow any convert any type castable to i64 into a [`SeekFrom::Current`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/io/mod.rs:1:38 [INFO] [stderr] | [INFO] [stderr] 1 | //! A swappable version of [std::io](std::io) that works in `no_std + alloc` environments. [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] 1 - //! A swappable version of [std::io](std::io) that works in `no_std + alloc` environments. [INFO] [stderr] 1 + //! A swappable version of [std::io] that works in `no_std + alloc` environments. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:181:93 [INFO] [stderr] | [INFO] [stderr] 181 | /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`](io::Read) and [`io::Seek`](io::Seek) [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] 181 - /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`](io::Read) and [`io::Seek`](io::Seek) [INFO] [stderr] 181 + /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`] and [`io::Seek`](io::Seek) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:181:120 [INFO] [stderr] | [INFO] [stderr] 181 | /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`](io::Read) and [`io::Seek`](io::Seek) [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] 181 - /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`](io::Read) and [`io::Seek`](io::Seek) [INFO] [stderr] 181 + /// A `BinRead` trait allows reading a structure from anything that implements [`io::Read`](io::Read) and [`io::Seek`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:236:41 [INFO] [stderr] | [INFO] [stderr] 236 | /// An extension trait for [`io::Read`](io::Read) to provide methods for reading a value directly [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] 236 - /// An extension trait for [`io::Read`](io::Read) to provide methods for reading a value directly [INFO] [stderr] 236 + /// An extension trait for [`io::Read`] to provide methods for reading a value directly [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/file_ptr.rs:175:84 [INFO] [stderr] | [INFO] [stderr] 175 | /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`](BinRead::after_parse) [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] 175 - /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`](BinRead::after_parse) [INFO] [stderr] 175 + /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/file_ptr.rs:190:84 [INFO] [stderr] | [INFO] [stderr] 190 | /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`](BinRead::after_parse) [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] 190 - /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`](BinRead::after_parse) [INFO] [stderr] 190 + /// Will panic if the FilePtr has not been read yet using [`BinRead::after_parse`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `binread` (lib doc) generated 14 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.90s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/binread/index.html [INFO] running `Command { std: "docker" "inspect" "23bdb610ea2331fda92635f65a20d7f9bef031c47ecde5353657c3a02c248712", kill_on_drop: false }`