[INFO] fetching crate libp2p-episub 0.1.13... [INFO] testing libp2p-episub-0.1.13 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate libp2p-episub 0.1.13 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate libp2p-episub 0.1.13 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libp2p-episub 0.1.13 [INFO] finished tweaking crates.io crate libp2p-episub 0.1.13 [INFO] tweaked toml for crates.io crate libp2p-episub 0.1.13 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e200c808b40feb733da37116a1d5d71e025efed9976f064b87671a9082f264b6 [INFO] running `Command { std: "docker" "start" "-a" "e200c808b40feb733da37116a1d5d71e025efed9976f064b87671a9082f264b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e200c808b40feb733da37116a1d5d71e025efed9976f064b87671a9082f264b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e200c808b40feb733da37116a1d5d71e025efed9976f064b87671a9082f264b6", kill_on_drop: false }` [INFO] [stdout] e200c808b40feb733da37116a1d5d71e025efed9976f064b87671a9082f264b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d4f3dc00e67f57d03bf3bdebdbdee29e92264097d9f99694ea69a953c5db68c [INFO] running `Command { std: "docker" "start" "-a" "4d4f3dc00e67f57d03bf3bdebdbdee29e92264097d9f99694ea69a953c5db68c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling const-oid v0.7.1 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling base16ct v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling der v0.5.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling ff v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling group v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling signature v1.4.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling ed25519 v1.4.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling crypto-bigint v0.3.2 [INFO] [stderr] Compiling sec1 v0.2.1 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling rfc6979 v0.1.0 [INFO] [stderr] Compiling elliptic-curve v0.11.12 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling ecdsa v0.13.4 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling p256 v0.10.1 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling multistream-select v0.11.0 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling libp2p-core v0.31.1 [INFO] [stderr] Compiling libp2p-episub v0.1.13 (/opt/rustwide/workdir) [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling libp2p-swarm v0.33.0 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 09s [INFO] running `Command { std: "docker" "inspect" "4d4f3dc00e67f57d03bf3bdebdbdee29e92264097d9f99694ea69a953c5db68c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d4f3dc00e67f57d03bf3bdebdbdee29e92264097d9f99694ea69a953c5db68c", kill_on_drop: false }` [INFO] [stdout] 4d4f3dc00e67f57d03bf3bdebdbdee29e92264097d9f99694ea69a953c5db68c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ddc82832784eaeda9f0a9e0967e332c6a9266cb9b92f5aa0575564a5d2f21d6b [INFO] running `Command { std: "docker" "start" "-a" "ddc82832784eaeda9f0a9e0967e332c6a9266cb9b92f5aa0575564a5d2f21d6b", kill_on_drop: false }` [INFO] [stderr] Compiling libp2p-episub v0.1.13 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.37s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/libp2p_episub-2ddbfa038559d385) [INFO] running `Command { std: "docker" "inspect" "ddc82832784eaeda9f0a9e0967e332c6a9266cb9b92f5aa0575564a5d2f21d6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddc82832784eaeda9f0a9e0967e332c6a9266cb9b92f5aa0575564a5d2f21d6b", kill_on_drop: false }` [INFO] [stdout] ddc82832784eaeda9f0a9e0967e332c6a9266cb9b92f5aa0575564a5d2f21d6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 80f31af0ed848c82b593e7b144b970fca1c84fffe4b65a6cd4fd5b649c1933ed [INFO] running `Command { std: "docker" "start" "-a" "80f31af0ed848c82b593e7b144b970fca1c84fffe4b65a6cd4fd5b649c1933ed", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/libp2p_episub-2ddbfa038559d385) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests libp2p-episub [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 18) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 18) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `while` [INFO] [stdout] --> src/lib.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 17 | swarm.dial(bootstrap).unwrap() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 18 | [INFO] [stdout] 19 | while let Some(event) = swarm.next().await { [INFO] [stdout] | ----- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> src/lib.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 5 | let transport = libp2p::development_transport(local_key.clone()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> src/lib.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 21 | SwarmEvent::Behaviour(EpisubEvent::Message(m, t)) => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent` [INFO] [stdout] --> src/lib.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 21 | SwarmEvent::Behaviour(EpisubEvent::Message(m, t)) => { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `EpisubEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> src/lib.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 24 | SwarmEvent::Behaviour(EpisubEvent::Subscribed(t)) => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent` [INFO] [stdout] --> src/lib.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 24 | SwarmEvent::Behaviour(EpisubEvent::Subscribed(t)) => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `EpisubEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> src/lib.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 25 | SwarmEvent::Behaviour(EpisubEvent::Unsubscribed(t)) => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent` [INFO] [stdout] --> src/lib.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 25 | SwarmEvent::Behaviour(EpisubEvent::Unsubscribed(t)) => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `EpisubEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> src/lib.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 26 | SwarmEvent::Behaviour(EpisubEvent::ActivePeerAdded(p)) => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent` [INFO] [stdout] --> src/lib.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 26 | SwarmEvent::Behaviour(EpisubEvent::ActivePeerAdded(p)) => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `EpisubEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> src/lib.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 27 | SwarmEvent::Behaviour(EpisubEvent::ActivePeerRemoved(p)) => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent` [INFO] [stdout] --> src/lib.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 27 | SwarmEvent::Behaviour(EpisubEvent::ActivePeerRemoved(p)) => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `EpisubEvent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity` [INFO] [stdout] --> src/lib.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 3 | let local_key = identity::Keypair::generate_ed25519(); [INFO] [stdout] | ^^^^^^^ not found in `identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_core::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_core::identity::ecdsa::Keypair; [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_core::identity::ed25519::Keypair; [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_core::identity::rsa::Keypair; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PeerId` [INFO] [stdout] --> src/lib.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 4 | let local_peer_id = PeerId::from(local_key.public()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_core::PeerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> src/lib.rs:24:25 [INFO] [stdout] | [INFO] [stdout] 8 | let mut swarm = libp2p::Swarm::new(transport, Episub::new(), local_peer_id); [INFO] [stdout] | ^^^^^ not found in `libp2p` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Episub` [INFO] [stdout] --> src/lib.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 8 | let mut swarm = libp2p::Swarm::new(transport, Episub::new(), local_peer_id); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use libp2p_episub::Episub; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `opts` in this scope [INFO] [stdout] --> src/lib.rs:32:33 [INFO] [stdout] | [INFO] [stdout] 16 | swarm.behaviour_mut().subscribe(opts.topic); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bootstrap` in this scope [INFO] [stdout] --> src/lib.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 17 | swarm.dial(bootstrap).unwrap() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:21:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | let transport = libp2p::development_transport(local_key.clone()).await?; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() { [INFO] [stdout] | ----------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | while let Some(event) = swarm.next().await { [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:21:71 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let local_key = identity::Keypair::generate_ed25519(); [INFO] [stdout] 4 | | let local_peer_id = PeerId::from(local_key.public()); [INFO] [stdout] 5 | | let transport = libp2p::development_transport(local_key.clone()).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } _doctest_main_src_lib_rs_18_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 18) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "80f31af0ed848c82b593e7b144b970fca1c84fffe4b65a6cd4fd5b649c1933ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80f31af0ed848c82b593e7b144b970fca1c84fffe4b65a6cd4fd5b649c1933ed", kill_on_drop: false }` [INFO] [stdout] 80f31af0ed848c82b593e7b144b970fca1c84fffe4b65a6cd4fd5b649c1933ed