networking 0.1.9

secure RSA + AES network implementations in a peer to peer enabled manner
Documentation
Build #1963443 2025-04-07 00:43:34

# rustc version rustc 1.88.0-nightly (5e17a2a91 2025-04-05)

# docs.rs version docsrs 0.6.0 (ee9a3fe6 2025-03-28)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/networking-0.1.9/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/networking-0.1.9/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250405-1.88.0-nightly-5e17a2a91\", \"--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] f5ee2e71225a04657332182ad58b948229d6034963acf16909680ec33b7d6466 [INFO] running `Command { std: "docker" "start" "-a" "f5ee2e71225a04657332182ad58b948229d6034963acf16909680ec33b7d6466", kill_on_drop: false }` [INFO] [stderr] warning: fields `streams` and `priv_key` are never read [INFO] [stderr] --> src/sllp.rs:389:5 [INFO] [stderr] | [INFO] [stderr] 388 | pub struct OwnedIncoming { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 389 | streams: Streams, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 390 | priv_key: RSAPrivateKey, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OwnedIncoming` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `priv_key` is never read [INFO] [stderr] --> src/sllp.rs:427:5 [INFO] [stderr] | [INFO] [stderr] 426 | pub struct SllpIncoming<'a> { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 427 | priv_key: &'a RSAPrivateKey, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SllpIncoming` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/protocol.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | FromPrimitive, [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PacketType` [INFO] [stderr] ... [INFO] [stderr] 19 | pub enum PacketType { [INFO] [stderr] | ---------- `PacketType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/protocol.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | ToPrimitive, [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PacketType` [INFO] [stderr] ... [INFO] [stderr] 19 | pub enum PacketType { [INFO] [stderr] | ---------- `PacketType` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `networking` (lib) generated 4 warnings [INFO] [stderr] Scraping networking v0.1.9 (/opt/rustwide/workdir) [INFO] [stderr] Documenting networking v0.1.9 (/opt/rustwide/workdir) [INFO] [stderr] warning: unclosed HTML tag `IncomingMsg` [INFO] [stderr] --> src/sllp.rs:368:72 [INFO] [stderr] | [INFO] [stderr] 368 | /// a type alias, more or less for Arc<Mutex<HashMap<SocketAddr, Sender<IncomingMsg>>>> [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::invalid_html_tags)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `networking` (lib doc) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.70s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/networking/index.html [INFO] running `Command { std: "docker" "inspect" "f5ee2e71225a04657332182ad58b948229d6034963acf16909680ec33b7d6466", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5ee2e71225a04657332182ad58b948229d6034963acf16909680ec33b7d6466", kill_on_drop: false }` [INFO] [stdout] f5ee2e71225a04657332182ad58b948229d6034963acf16909680ec33b7d6466