torrust-tracker-clock 3.0.0

A library to a clock for the torrust tracker.
Documentation

Build #1722909 2025-02-08 09:16:36

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.86.0-nightly (a9e7b3048 2025-02-07)

# docs.rs version docsrs 0.6.0 (29a0e81b 2025-01-22)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/torrust-tracker-clock-3.0.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/torrust-tracker-clock-3.0.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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250207-1.86.0-nightly-a9e7b3048\", \"--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] 8ff5de5fd20fc55c4794513ee14ec9007dcfea8b9b1392facfcac5fafee56f8f [INFO] running `Command { std: "docker" "start" "-a" "8ff5de5fd20fc55c4794513ee14ec9007dcfea8b9b1392facfcac5fafee56f8f", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Checking torrust-tracker-primitives v3.0.0 [INFO] [stderr] error[E0599]: no function or associated item named `read_from` found for struct `aquatic_udp_protocol::InfoHash` in the current scope [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/torrust-tracker-primitives-3.0.0/src/info_hash.rs:24:52 [INFO] [stderr] | [INFO] [stderr] 24 | let data = aquatic_udp_protocol::InfoHash::read_from(bytes).expect("it should have the exact amount of bytes"); [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `InfoHash` [INFO] [stderr] | [INFO] [stderr] note: there are multiple different versions of crate `zerocopy` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.7.35/src/lib.rs:1824:1 [INFO] [stderr] | [INFO] [stderr] 1824 | pub unsafe trait FromBytes: FromZeroes { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the trait that is needed [INFO] [stderr] ... [INFO] [stderr] 2417 | / fn read_from(bytes: &[u8]) -> Option<Self> [INFO] [stderr] 2418 | | where [INFO] [stderr] 2419 | | Self: Sized, [INFO] [stderr] | |____________________- the associated function is available for `aquatic_udp_protocol::InfoHash` here [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/torrust-tracker-primitives-3.0.0/src/info_hash.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use zerocopy::FromBytes; [INFO] [stderr] | ------------------- `FromBytes` imported here doesn't correspond to the right version of crate `zerocopy` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.17/src/lib.rs:3440:1 [INFO] [stderr] | [INFO] [stderr] 3440 | pub unsafe trait FromBytes: FromZeros { [INFO] [stderr] | ------------------------------------- this is the trait that was imported [INFO] [stderr] help: there is an associated function `read_from_prefix` with a similar name [INFO] [stderr] | [INFO] [stderr] 24 | let data = aquatic_udp_protocol::InfoHash::read_from_prefix(bytes).expect("it should have the exact amount of bytes"); [INFO] [stderr] | ~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read_from` found for struct `aquatic_udp_protocol::PeerId` in the current scope [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/torrust-tracker-primitives-3.0.0/src/peer.rs:293:28 [INFO] [stderr] | [INFO] [stderr] 293 | let data = PeerId::read_from(&bytes).expect("it should have the correct amount of bytes"); [INFO] [stderr] | ^^^^^^^^^ function or associated item not found in `PeerId` [INFO] [stderr] | [INFO] [stderr] note: there are multiple different versions of crate `zerocopy` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.7.35/src/lib.rs:1824:1 [INFO] [stderr] | [INFO] [stderr] 1824 | pub unsafe trait FromBytes: FromZeroes { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the trait that is needed [INFO] [stderr] ... [INFO] [stderr] 2417 | / fn read_from(bytes: &[u8]) -> Option<Self> [INFO] [stderr] 2418 | | where [INFO] [stderr] 2419 | | Self: Sized, [INFO] [stderr] | |____________________- the associated function is available for `aquatic_udp_protocol::PeerId` here [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/torrust-tracker-primitives-3.0.0/src/peer.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use zerocopy::FromBytes as _; [INFO] [stderr] | ------------------- `FromBytes` imported here doesn't correspond to the right version of crate `zerocopy` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/zerocopy-0.8.17/src/lib.rs:3440:1 [INFO] [stderr] | [INFO] [stderr] 3440 | pub unsafe trait FromBytes: FromZeros { [INFO] [stderr] | ------------------------------------- this is the trait that was imported [INFO] [stderr] help: there is an associated function `read_from_prefix` with a similar name [INFO] [stderr] | [INFO] [stderr] 293 | let data = PeerId::read_from_prefix(&bytes).expect("it should have the correct amount of bytes"); [INFO] [stderr] | ~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] error: could not compile `torrust-tracker-primitives` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8ff5de5fd20fc55c4794513ee14ec9007dcfea8b9b1392facfcac5fafee56f8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ff5de5fd20fc55c4794513ee14ec9007dcfea8b9b1392facfcac5fafee56f8f", kill_on_drop: false }` [INFO] [stdout] 8ff5de5fd20fc55c4794513ee14ec9007dcfea8b9b1392facfcac5fafee56f8f