net-parser-rs 0.3.0

Basic network parser leveraging Rust and nom for safe and efficient packet parsing. Design influenced by pktparse-rs.
Documentation
Build #1522709 2024-11-12 00:23:05
# rustc version
rustc 1.84.0-nightly (143ce0920 2024-11-10)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/net-parser-rs-0.3.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/net-parser-rs-0.3.0/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" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241110-1.84.0-nightly-143ce0920\", \"--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] [stdout] a0b8bdd5aece4ea7081b0c27e7d74d233d168f2df04d923aadf1337f6b6157e0
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "a0b8bdd5aece4ea7081b0c27e7d74d233d168f2df04d923aadf1337f6b6157e0", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting net-parser-rs v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unexpected `cfg` condition value: `logging`
[INFO] [stderr]   --> src/flow/layer3/ipv4.rs:74:27
[INFO] [stderr]    |
[INFO] [stderr] 74 |                     #[cfg(feature = "logging")]
[INFO] [stderr]    |                           ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `logging` as a feature in `Cargo.toml`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `log-errors`
[INFO] [stderr]   --> src/global_header.rs:51:23
[INFO] [stderr]    |
[INFO] [stderr] 51 |                 #[cfg(feature = "log-errors")]
[INFO] [stderr]    |                       ^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `log-errors` as a feature in `Cargo.toml`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/file.rs:12:76
[INFO] [stderr]    |
[INFO] [stderr] 12 |     /// Parse a slice of bytes that start with libpcap file format header (https://wiki.wireshark.org/Development/LibpcapFileFormat)
[INFO] [stderr]    |                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]    = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 12 |     /// Parse a slice of bytes that start with libpcap file format header (<https://wiki.wireshark.org/Development/LibpcapFileFormat>)
[INFO] [stderr]    |                                                                            +                                                        +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/layer2/ethernet.rs:14:63
[INFO] [stderr]    |
[INFO] [stderr] 14 | /// List of valid ethernet types that aren't payload or vlan. https://en.wikipedia.org/wiki/EtherType
[INFO] [stderr]    |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 14 | /// List of valid ethernet types that aren't payload or vlan. <https://en.wikipedia.org/wiki/EtherType>
[INFO] [stderr]    |                                                               +                                       +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/layer3/mod.rs:23:25
[INFO] [stderr]    |
[INFO] [stderr] 23 | /// IP Protocol numbers https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 23 | /// IP Protocol numbers <https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers>
[INFO] [stderr]    |                         +                                                         +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/record.rs:18:17
[INFO] [stderr]    |
[INFO] [stderr] 18 |     /// header (https://wiki.wireshark.org/Development/LibpcapFileFormat). Endianness of the byte
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 18 |     /// header (<https://wiki.wireshark.org/Development/LibpcapFileFormat>). Endianness of the byte
[INFO] [stderr]    |                 +                                                        +
[INFO] [stderr] 
[INFO] [stderr] warning: `net-parser-rs` (lib doc) generated 6 warnings (run `cargo fix --lib -p net-parser-rs` to apply 4 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.47s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/net_parser_rs/index.html
[INFO] running `Command { std: "docker" "inspect" "a0b8bdd5aece4ea7081b0c27e7d74d233d168f2df04d923aadf1337f6b6157e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0b8bdd5aece4ea7081b0c27e7d74d233d168f2df04d923aadf1337f6b6157e0", kill_on_drop: false }`
[INFO] [stdout] a0b8bdd5aece4ea7081b0c27e7d74d233d168f2df04d923aadf1337f6b6157e0