proc_sys_parser 0.1.22

This crate provides routines for parsing linux /proc files into Rust structs. There are multiple other crates doing this, but these either do not choose to process the statistics in way to make them directly usable, or generalize the statistics and loose the detail.
Documentation
Build #1699336 2025-02-01 22:41:34
# rustc version
rustc 1.86.0-nightly (854f22563 2025-01-31)# docs.rs version
docsrs 0.6.0 (29a0e81b 2025-01-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/proc_sys_parser-0.1.22/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/proc_sys_parser-0.1.22/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250131-1.86.0-nightly-854f22563\", \"--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: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 26490fe03fda82c6e4f6332c9d5de736fc2b3d7779dcd4c6d58c07246cf91d46
[INFO] running `Command { std: "docker" "start" "-a" "26490fe03fda82c6e4f6332c9d5de736fc2b3d7779dcd4c6d58c07246cf91d46", kill_on_drop: false }`
[INFO] [stderr]     Scraping proc_sys_parser v0.1.22 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting proc_sys_parser v0.1.22 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `ProcMemInfo`
[INFO] [stderr]   --> src/fs_xfs_stat.rs:79:40
[INFO] [stderr]    |
[INFO] [stderr] 79 | /// The main function for building a [`ProcMemInfo`] struct with current data.
[INFO] [stderr]    |                                        ^^^^^^^^^^^ no item named `ProcMemInfo` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `ProcMemInfo`
[INFO] [stderr]   --> src/loadavg.rs:83:40
[INFO] [stderr]    |
[INFO] [stderr] 83 | /// The main function for building a [`ProcMemInfo`] struct with current data.
[INFO] [stderr]    |                                        ^^^^^^^^^^^ no item named `ProcMemInfo` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unportable markdown
[INFO] [stderr]    --> src/block.rs:244:9
[INFO] [stderr]     |
[INFO] [stderr] 244 |     /// >0: number of microseconds before classic polling.
[INFO] [stderr]     |         ^
[INFO] [stderr]     |
[INFO] [stderr]     = help: confusing block quote with no space after the `>` marker
[INFO] [stderr]     = note: `#[warn(rustdoc::unportable_markdown)]` on by default
[INFO] [stderr] help: if the quote is intended, add a space
[INFO] [stderr]     |
[INFO] [stderr] 244 |     /// > 0: number of microseconds before classic polling.
[INFO] [stderr]     |          +
[INFO] [stderr] help: if it should not be a quote, escape it
[INFO] [stderr]     |
[INFO] [stderr] 244 |     /// \>0: number of microseconds before classic polling.
[INFO] [stderr]     |         +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]  --> src/fs_xfs_stat.rs:9:2
[INFO] [stderr]   |
[INFO] [stderr] 9 | <https://web.archive.org/web/20220902080208/https://xfs.org/index.php/Runtime_Stats
[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] 9 | <<https://web.archive.org/web/20220902080208/https://xfs.org/index.php/Runtime_Stats>
[INFO] [stderr]   |  +                                                                                  +
[INFO] [stderr] 
[INFO] [stderr] warning: `proc_sys_parser` (lib doc) generated 4 warnings (run `cargo fix --lib -p proc_sys_parser` to apply 1 suggestion)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.81s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/proc_sys_parser/index.html
[INFO] running `Command { std: "docker" "inspect" "26490fe03fda82c6e4f6332c9d5de736fc2b3d7779dcd4c6d58c07246cf91d46", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "26490fe03fda82c6e4f6332c9d5de736fc2b3d7779dcd4c6d58c07246cf91d46", kill_on_drop: false }`
[INFO] [stdout] 26490fe03fda82c6e4f6332c9d5de736fc2b3d7779dcd4c6d58c07246cf91d46