[INFO] fetching crate libp2p-autonat 0.3.0... [INFO] testing libp2p-autonat-0.3.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate libp2p-autonat 0.3.0 into /workspace/builds/worker-15/source [INFO] validating manifest of crates.io crate libp2p-autonat 0.3.0 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-autonat 0.3.0 [INFO] finished tweaking crates.io crate libp2p-autonat 0.3.0 [INFO] tweaked toml for crates.io crate libp2p-autonat 0.3.0 written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate crates.io crate libp2p-autonat 0.3.0 already has a lockfile, it will not be regenerated [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-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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] 14dea68b70ab9653050d34adb2ba64d56f0c5ae677e24fe1a8be50576f535980 [INFO] running `Command { std: "docker" "start" "-a" "14dea68b70ab9653050d34adb2ba64d56f0c5ae677e24fe1a8be50576f535980", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14dea68b70ab9653050d34adb2ba64d56f0c5ae677e24fe1a8be50576f535980", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14dea68b70ab9653050d34adb2ba64d56f0c5ae677e24fe1a8be50576f535980", kill_on_drop: false }` [INFO] [stdout] 14dea68b70ab9653050d34adb2ba64d56f0c5ae677e24fe1a8be50576f535980 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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] a9c4bb9ffaed24a0089364460b18c663efa8f1f2a7f37fdb1c126200924de17f [INFO] running `Command { std: "docker" "start" "-a" "a9c4bb9ffaed24a0089364460b18c663efa8f1f2a7f37fdb1c126200924de17f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [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 zeroize_derive v1.3.2 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling multihash-derive v0.8.0 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling libp2p-core v0.32.0 [INFO] [stderr] Compiling libp2p-autonat v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling multihash v0.16.2 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling multistream-select v0.11.0 [INFO] [stderr] Compiling multiaddr v0.14.0 [INFO] [stderr] Compiling libp2p-swarm v0.35.0 [INFO] [stderr] Compiling libp2p-request-response v0.17.0 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.51s [INFO] running `Command { std: "docker" "inspect" "a9c4bb9ffaed24a0089364460b18c663efa8f1f2a7f37fdb1c126200924de17f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9c4bb9ffaed24a0089364460b18c663efa8f1f2a7f37fdb1c126200924de17f", kill_on_drop: false }` [INFO] [stdout] a9c4bb9ffaed24a0089364460b18c663efa8f1f2a7f37fdb1c126200924de17f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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] 93d3782c60409909f8863e61bc8809320b6cd99fb043c36550fcc3ddd132c820 [INFO] running `Command { std: "docker" "start" "-a" "93d3782c60409909f8863e61bc8809320b6cd99fb043c36550fcc3ddd132c820", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling async-task v4.2.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling ctor v0.1.22 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling blocking v1.2.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling async-global-executor v2.0.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling async-std v1.11.0 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling multihash v0.16.2 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling multistream-select v0.11.0 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling multiaddr v0.14.0 [INFO] [stderr] Compiling libp2p-core v0.32.0 [INFO] [stderr] Compiling libp2p-swarm v0.35.0 [INFO] [stderr] Compiling libp2p-request-response v0.17.0 [INFO] [stderr] Compiling libp2p-autonat v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> tests/test_client.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use libp2p::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> tests/test_client.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use libp2p::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use libp2p::identify::{Identify, IdentifyConfig, IdentifyEvent}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use libp2p::multiaddr::Protocol; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use libp2p::swarm::{Swarm, SwarmEvent}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/client.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use libp2p::autonat; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/client.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use libp2p::{identity, Multiaddr, NetworkBehaviour, PeerId}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `NetworkBehaviour` [INFO] [stdout] --> examples/client.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | #[derive(NetworkBehaviour)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | SwarmEvent::NewListenAddr { address, .. } => break address, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | SwarmEvent::Behaviour(event) => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AddressScore` [INFO] [stdout] --> tests/test_client.rs:135:63 [INFO] [stdout] | [INFO] [stdout] 135 | client.add_external_address(unreachable_addr.clone(), AddressScore::Infinite); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AddressScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | SwarmEvent::NewListenAddr { .. } => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | SwarmEvent::ConnectionEstablished { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | SwarmEvent::Behaviour(Event::OutboundProbe(OutboundProbeEvent::Response { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | SwarmEvent::IncomingConnection { .. } [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:212:19 [INFO] [stdout] | [INFO] [stdout] 212 | | SwarmEvent::NewListenAddr { .. } [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:213:19 [INFO] [stdout] | [INFO] [stdout] 213 | | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:220:17 [INFO] [stdout] | [INFO] [stdout] 220 | SwarmEvent::Behaviour(Event::OutboundProbe(OutboundProbeEvent::Response { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:277:21 [INFO] [stdout] | [INFO] [stdout] 277 | SwarmEvent::NewListenAddr { .. } => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AddressScore` [INFO] [stdout] --> tests/test_client.rs:283:67 [INFO] [stdout] | [INFO] [stdout] 283 | client.add_external_address(unreachable_addr.clone(), AddressScore::Infinite); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AddressScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:366:17 [INFO] [stdout] | [INFO] [stdout] 366 | SwarmEvent::NewListenAddr { .. } => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:432:20 [INFO] [stdout] | [INFO] [stdout] 432 | if let SwarmEvent::ConnectionEstablished { peer_id, .. } = [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_client.rs:488:17 [INFO] [stdout] | [INFO] [stdout] 488 | SwarmEvent::NewListenAddr { .. } => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Swarm` in this scope [INFO] [stdout] --> tests/test_client.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | async fn init_swarm(config: Config) -> Swarm { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keypair` [INFO] [stdout] --> tests/test_client.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | let keypair = Keypair::generate_ed25519(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ed25519::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::rsa::Keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Swarm` [INFO] [stdout] --> tests/test_client.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | Swarm::new(transport, behaviour, local_id) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Swarm` in this scope [INFO] [stdout] --> tests/test_client.rs:78:33 [INFO] [stdout] | [INFO] [stdout] 78 | async fn next_event(swarm: &mut Swarm) -> Event { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `behaviour` in this scope [INFO] [stdout] --> examples/client.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | #[behaviour(out_event = "Event")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let transport = libp2p::development_transport(local_key.clone()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> examples/client.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | .with(Protocol::Ip4(Ipv4Addr::UNSPECIFIED)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/server.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use libp2p::identify::{Identify, IdentifyConfig, IdentifyEvent}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/server.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use libp2p::multiaddr::Protocol; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/server.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use libp2p::swarm::{Swarm, SwarmEvent}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/server.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use libp2p::autonat; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/server.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use libp2p::{identity, Multiaddr, NetworkBehaviour, PeerId}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `NetworkBehaviour` [INFO] [stdout] --> examples/server.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(NetworkBehaviour)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> examples/client.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | .with(Protocol::Tcp(opt.listen_port.unwrap_or(0))), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/client.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | SwarmEvent::NewListenAddr { address, .. } => println!("Listening on {:?}", address), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/client.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | SwarmEvent::Behaviour(event) => println!("{:?}", event), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identify` [INFO] [stdout] --> examples/client.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | identify: Identify::new(IdentifyConfig::new( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IdentifyConfig` [INFO] [stdout] --> examples/client.rs:101:37 [INFO] [stdout] | [INFO] [stdout] 101 | identify: Identify::new(IdentifyConfig::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `IdentifyConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_client.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 49 | let mut server = init_swarm(Config { [INFO] [stdout] | ---------- consider giving `server` a type [INFO] [stdout] ... [INFO] [stdout] 55 | let peer_id = *server.local_peer_id(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Swarm` [INFO] [stdout] --> examples/client.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let mut swarm = Swarm::new(transport, behaviour, local_peer_id); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 32 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identify` in this scope [INFO] [stdout] --> examples/client.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | identify: Identify, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::Event::Identify`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 94 | identify: crate::Event, [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/client.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | Identify(IdentifyEvent), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/client.rs:125:11 [INFO] [stdout] | [INFO] [stdout] 125 | impl From for Event { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/client.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | fn from(v: IdentifyEvent) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `behaviour` in this scope [INFO] [stdout] --> examples/server.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | #[behaviour(out_event = "Event")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> tests/test_server.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use libp2p::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> tests/test_server.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use libp2p::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/server.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let transport = libp2p::development_transport(local_key.clone()).await?; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> examples/server.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | .with(Protocol::Ip4(Ipv4Addr::UNSPECIFIED)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> examples/server.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | .with(Protocol::Tcp(opt.listen_port.unwrap_or(0))), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/server.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | SwarmEvent::NewListenAddr { address, .. } => println!("Listening on {:?}", address), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/server.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | SwarmEvent::Behaviour(event) => println!("{:?}", event), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identify` [INFO] [stdout] --> examples/server.rs:86:23 [INFO] [stdout] | [INFO] [stdout] 86 | identify: Identify::new(IdentifyConfig::new( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Identify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IdentifyConfig` [INFO] [stdout] --> examples/server.rs:86:37 [INFO] [stdout] | [INFO] [stdout] 86 | identify: Identify::new(IdentifyConfig::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `IdentifyConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Swarm` [INFO] [stdout] --> examples/server.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let mut swarm = Swarm::new(transport, behaviour, local_peer_id); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 29 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identify` in this scope [INFO] [stdout] --> examples/server.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | identify: Identify, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `crate::Event::Identify`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 79 | identify: crate::Event, [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/server.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | Identify(IdentifyEvent), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/server.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 104 | impl From for Event { [INFO] [stdout] | - ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IdentifyEvent` in this scope [INFO] [stdout] --> examples/server.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | fn from(v: IdentifyEvent) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | SwarmEvent::NewListenAddr { address, .. } => break address, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | SwarmEvent::NewListenAddr { address, .. } => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AddressScore` [INFO] [stdout] --> tests/test_server.rs:101:53 [INFO] [stdout] | [INFO] [stdout] 101 | client.add_external_address(dummy_addr, AddressScore::Infinite); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AddressScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | SwarmEvent::Behaviour(event) => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/test_server.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | Protocol::Tcp(port) => Some(port), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | SwarmEvent::ConnectionEstablished { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/test_server.rs:161:29 [INFO] [stdout] | [INFO] [stdout] 161 | ... Protocol::Ip4(ip4_addr) => break ip4_addr, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | SwarmEvent::IncomingConnection { .. } [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:168:19 [INFO] [stdout] | [INFO] [stdout] 168 | | SwarmEvent::NewListenAddr { .. } [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/test_server.rs:174:19 [INFO] [stdout] | [INFO] [stdout] 174 | .with(Protocol::Ip4(observed_client_ip)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/test_server.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 175 | .with(Protocol::Tcp(client_port)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/test_server.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | .with(Protocol::P2p(client_id.into())); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | SwarmEvent::ConnectionEstablished { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | SwarmEvent::Dialing(peer) => assert_eq!(peer, client_id), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:210:52 [INFO] [stdout] | [INFO] [stdout] 210 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | SwarmEvent::OutgoingConnectionError { peer_id, error } => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:255:17 [INFO] [stdout] | [INFO] [stdout] 255 | SwarmEvent::Dialing(peer) => assert_eq!(peer, client_id), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:256:52 [INFO] [stdout] | [INFO] [stdout] 256 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/client.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 49 | #[structopt(long)] [INFO] [stdout] | - this method call resolves to `T` [INFO] [stdout] 50 | server_address: Multiaddr, [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type parameter `U` declared on the associated function `map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | SwarmEvent::ConnectionEstablished { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | SwarmEvent::Dialing(peer) => assert_eq!(peer, client_id), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:423:17 [INFO] [stdout] | [INFO] [stdout] 423 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> tests/test_server.rs:423:52 [INFO] [stdout] | [INFO] [stdout] 423 | SwarmEvent::NewListenAddr { .. } | SwarmEvent::ExpiredListenAddr { .. } => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Swarm` in this scope [INFO] [stdout] --> tests/test_server.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | async fn init_swarm(config: Config) -> Swarm { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Keypair` [INFO] [stdout] --> tests/test_server.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | let keypair = Keypair::generate_ed25519(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ed25519::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::rsa::Keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Swarm` [INFO] [stdout] --> tests/test_server.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Swarm::new(transport, behaviour, local_id) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Swarm` in this scope [INFO] [stdout] --> tests/test_server.rs:45:50 [INFO] [stdout] | [INFO] [stdout] 45 | async fn init_server(config: Option) -> (Swarm, PeerId, Multiaddr) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Swarm` in this scope [INFO] [stdout] --> tests/test_server.rs:116:33 [INFO] [stdout] | [INFO] [stdout] 116 | async fn next_event(swarm: &mut Swarm) -> Event { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_swarm::Swarm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_client.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 350 | let mut client = init_swarm(Config { [INFO] [stdout] | ---------- consider giving `client` a type [INFO] [stdout] ... [INFO] [stdout] 361 | client [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_client.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 411 | let mut client = init_swarm(Config { [INFO] [stdout] | ---------- consider giving `client` a type [INFO] [stdout] ... [INFO] [stdout] 424 | client [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_server.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 50 | let mut server = init_swarm(config).await; [INFO] [stdout] | ---------- consider giving `server` a type [INFO] [stdout] 51 | let peer_id = *server.local_peer_id(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/test_client.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 465 | let mut client = init_swarm(Config { [INFO] [stdout] | ---------- consider giving `client` a type [INFO] [stdout] ... [INFO] [stdout] 478 | client.behaviour_mut().add_server(id, Some(addr)); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::prelude` [INFO] [stdout] --> examples/client.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use futures::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::prelude` [INFO] [stdout] --> examples/server.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use futures::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> tests/test_client.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | use futures::{channel::oneshot, Future, FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stderr] error: could not compile `libp2p-autonat` due to 21 previous errors; 1 warning emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 25 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _)` [INFO] [stdout] --> tests/test_server.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 139 | let (client_id, client_addr) = spawn_client(true, false, server_id, server_addr, rx).await; [INFO] [stdout] | ------------------------ consider giving this pattern the explicit type `(_, _)`, with the type parameters specified [INFO] [stdout] 140 | let client_port = client_addr [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libp2p-autonat` due to 20 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `libp2p-autonat` due to 26 previous errors; 1 warning emitted [INFO] [stdout] error[E0282]: type annotations needed for `(_, _, _)` [INFO] [stdout] --> tests/test_server.rs:249:19 [INFO] [stdout] | [INFO] [stdout] 237 | let (mut server, server_id, server_addr) = init_server(None).await; [INFO] [stdout] | ------------------------------------ consider giving this pattern the explicit type `(_, _, _)`, with the type parameters specified [INFO] [stdout] ... [INFO] [stdout] 249 | match server.select_next_some().await { [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _, _)` [INFO] [stdout] --> tests/test_server.rs:292:50 [INFO] [stdout] | [INFO] [stdout] 283 | let (mut server, server_id, server_addr) = init_server(Some(Config { [INFO] [stdout] | ------------------------------------ consider giving this pattern the explicit type `(_, _, _)`, with the type parameters specified [INFO] [stdout] ... [INFO] [stdout] 292 | spawn_client(true, false, server_id, server_addr.clone(), rx).await; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _, _)` [INFO] [stdout] --> tests/test_server.rs:339:67 [INFO] [stdout] | [INFO] [stdout] 331 | let (mut server, server_id, server_addr) = init_server(Some(Config { [INFO] [stdout] | ------------------------------------ consider giving this pattern the explicit type `(_, _, _)`, with the type parameters specified [INFO] [stdout] ... [INFO] [stdout] 339 | let (client_id, _) = spawn_client(true, false, server_id, server_addr.clone(), rx).await; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _, _)` [INFO] [stdout] --> tests/test_server.rs:390:66 [INFO] [stdout] | [INFO] [stdout] 382 | let (mut server, server_id, server_addr) = init_server(Some(Config { [INFO] [stdout] | ------------------------------------ consider giving this pattern the explicit type `(_, _, _)`, with the type parameters specified [INFO] [stdout] ... [INFO] [stdout] 390 | let (client_id, _) = spawn_client(true, true, server_id, server_addr.clone(), rx).await; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> tests/test_server.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | use futures::{channel::oneshot, Future, FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 38 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libp2p-autonat` due to 39 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "93d3782c60409909f8863e61bc8809320b6cd99fb043c36550fcc3ddd132c820", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93d3782c60409909f8863e61bc8809320b6cd99fb043c36550fcc3ddd132c820", kill_on_drop: false }` [INFO] [stdout] 93d3782c60409909f8863e61bc8809320b6cd99fb043c36550fcc3ddd132c820