[INFO] fetching crate libp2p-dcutr 0.2.0... [INFO] testing libp2p-dcutr-0.2.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate libp2p-dcutr 0.2.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate libp2p-dcutr 0.2.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-dcutr 0.2.0 [INFO] finished tweaking crates.io crate libp2p-dcutr 0.2.0 [INFO] tweaked toml for crates.io crate libp2p-dcutr 0.2.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate libp2p-dcutr 0.2.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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] 7fb7eafd82baa0a18edfb9b0b6ff0ffa9e8bb6e67442691e77bb43565df01ba8 [INFO] running `Command { std: "docker" "start" "-a" "7fb7eafd82baa0a18edfb9b0b6ff0ffa9e8bb6e67442691e77bb43565df01ba8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fb7eafd82baa0a18edfb9b0b6ff0ffa9e8bb6e67442691e77bb43565df01ba8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fb7eafd82baa0a18edfb9b0b6ff0ffa9e8bb6e67442691e77bb43565df01ba8", kill_on_drop: false }` [INFO] [stdout] 7fb7eafd82baa0a18edfb9b0b6ff0ffa9e8bb6e67442691e77bb43565df01ba8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] 51e1e8fbd3d23cc9183fc5aa069a49fd6716f9cdb755ff99bba338758c556335 [INFO] running `Command { std: "docker" "start" "-a" "51e1e8fbd3d23cc9183fc5aa069a49fd6716f9cdb755ff99bba338758c556335", 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 subtle v2.4.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling const-oid v0.7.1 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling base16ct v0.1.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling der v0.5.1 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling heck v0.3.3 [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 quote v1.0.17 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling ff v0.11.0 [INFO] [stderr] Compiling signature v1.4.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ed25519 v1.4.1 [INFO] [stderr] Compiling group v0.11.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [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 elliptic-curve v0.11.12 [INFO] [stderr] Compiling rfc6979 v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling ecdsa v0.13.4 [INFO] [stderr] Compiling multihash-derive v0.8.0 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling p256 v0.10.1 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling multihash v0.16.2 [INFO] [stderr] Compiling multistream-select v0.11.0 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling libp2p-core v0.32.0 [INFO] [stderr] Compiling libp2p-dcutr v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling multiaddr v0.14.0 [INFO] [stderr] Compiling libp2p-swarm v0.35.0 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "51e1e8fbd3d23cc9183fc5aa069a49fd6716f9cdb755ff99bba338758c556335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51e1e8fbd3d23cc9183fc5aa069a49fd6716f9cdb755ff99bba338758c556335", kill_on_drop: false }` [INFO] [stdout] 51e1e8fbd3d23cc9183fc5aa069a49fd6716f9cdb755ff99bba338758c556335 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] e4ef73564dfdbd8600446071cecab2c8e9606a019ede3bdad3942c2b1c5b4e82 [INFO] running `Command { std: "docker" "start" "-a" "e4ef73564dfdbd8600446071cecab2c8e9606a019ede3bdad3942c2b1c5b4e82", kill_on_drop: false }` [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling multistream-select v0.11.0 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling libp2p-core v0.32.0 [INFO] [stderr] Compiling libp2p-swarm v0.35.0 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling libp2p-dcutr v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use libp2p::core::multiaddr::{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:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use libp2p::core::transport::OrTransport; [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:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use libp2p::core::upgrade; [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] --> tests/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use libp2p::core::multiaddr::{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] --> tests/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use libp2p::core::muxing::StreamMuxerBox; [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] --> tests/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use libp2p::core::transport::upgrade::Version; [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] --> tests/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use libp2p::core::transport::{Boxed, MemoryTransport, OrTransport, Transport}; [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] --> tests/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use libp2p::core::PublicKey; [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] --> tests/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use libp2p::core::{identity, PeerId}; [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] --> tests/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use libp2p::plaintext::PlainText2Config; [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] --> tests/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use libp2p::relay::v2::client; [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] --> tests/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use libp2p::relay::v2::relay; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> tests/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use libp2p::dcutr; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> tests/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use libp2p::NetworkBehaviour; [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:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use libp2p::dns::DnsConfig; [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] --> tests/lib.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | #[derive(NetworkBehaviour)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `behaviour` in this scope [INFO] [stdout] --> tests/lib.rs:154:3 [INFO] [stdout] | [INFO] [stdout] 154 | #[behaviour(out_event = "ClientEvent", event_process = false)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> tests/lib.rs:45:46 [INFO] [stdout] | [INFO] [stdout] 45 | let relay_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [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/lib.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | .with(Protocol::P2p(relay_peer_id.into())) [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/lib.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | .with(Protocol::P2pCircuit) [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/lib.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | .with(Protocol::P2p(dst_peer_id.into())); [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/lib.rs:60:44 [INFO] [stdout] | [INFO] [stdout] 60 | let dst_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [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/lib.rs:75:44 [INFO] [stdout] | [INFO] [stdout] 75 | let src_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [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/lib.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | &dst_addr.with(Protocol::P2p(dst_peer_id.into())), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `relay` [INFO] [stdout] --> tests/lib.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | fn build_relay() -> Swarm { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `relay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/client.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use libp2p::identify::{Identify, IdentifyConfig, IdentifyEvent, IdentifyInfo}; [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:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use libp2p::dcutr; [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:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use libp2p::ping::{Ping, PingConfig, PingEvent}; [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:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use libp2p::relay::v2::client::{self, Client}; [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:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use libp2p::swarm::{SwarmBuilder, SwarmEvent}; [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::tcp::TcpConfig; [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:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use libp2p::noise; [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:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use libp2p::Transport; [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:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use libp2p::{identity, 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:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | #[derive(NetworkBehaviour)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `behaviour` in this scope [INFO] [stdout] --> examples/client.rs:106:7 [INFO] [stdout] | [INFO] [stdout] 106 | #[behaviour(out_event = "Event", event_process = false)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> examples/client.rs:90:37 [INFO] [stdout] | [INFO] [stdout] 90 | let (relay_transport, client) = Client::new_transport_and_behaviour(local_peer_id); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsConfig` [INFO] [stdout] --> examples/client.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | block_on(DnsConfig::system(TcpConfig::new().port_reuse(true))).unwrap(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `DnsConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpConfig` [INFO] [stdout] --> examples/client.rs:98:36 [INFO] [stdout] | [INFO] [stdout] 98 | block_on(DnsConfig::system(TcpConfig::new().port_reuse(true))).unwrap(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TcpConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `relay` [INFO] [stdout] --> tests/lib.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | relay::Relay::new( [INFO] [stdout] | ^^^^^ use of undeclared crate or module `relay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `relay` [INFO] [stdout] --> tests/lib.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | relay::Config { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `relay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `upgrade` [INFO] [stdout] --> examples/client.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | .upgrade(upgrade::Version::V1) [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `upgrade` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] --> examples/client.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | .multiplex(libp2p_yamux::YamuxConfig::default()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let (relay_transport, behaviour) = client::Client::new_transport_and_behaviour(local_peer_id); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> examples/client.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | Relay(client::Event), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Version` [INFO] [stdout] --> tests/lib.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | .upgrade(Version::V1) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] --> tests/lib.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | .multiplex(libp2p_yamux::YamuxConfig::default()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | relay: client::Client, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | Relay(client::Event), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:166:11 [INFO] [stdout] | [INFO] [stdout] 166 | impl From for ClientEvent { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | fn from(event: client::Event) -> Self { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:201:54 [INFO] [stdout] | [INFO] [stdout] 201 | SwarmEvent::Behaviour(ClientEvent::Relay(client::Event::ReservationReqAccepted { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> tests/lib.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | client::Event::OutboundCircuitEstablished { .. }, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Multiaddr` [INFO] [stdout] --> tests/lib.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let relay_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Multiaddr` [INFO] [stdout] --> tests/lib.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | let dst_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Multiaddr` [INFO] [stdout] --> tests/lib.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | let src_addr = Multiaddr::empty().with(Protocol::Memory(rand::random::())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity` [INFO] [stdout] --> tests/lib.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | 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] 21 | use libp2p_core::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ecdsa::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] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MemoryTransport` [INFO] [stdout] --> tests/lib.rs:101:37 [INFO] [stdout] | [INFO] [stdout] 101 | let transport = build_transport(MemoryTransport::default().boxed(), local_public_key); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::MemoryTransport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity` [INFO] [stdout] --> tests/lib.rs:117:31 [INFO] [stdout] | [INFO] [stdout] 117 | 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] 21 | use libp2p_core::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ecdsa::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] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrTransport` [INFO] [stdout] --> tests/lib.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | OrTransport::new(relay_transport, MemoryTransport::default()).boxed(), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::OrTransport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MemoryTransport` [INFO] [stdout] --> tests/lib.rs:123:43 [INFO] [stdout] | [INFO] [stdout] 123 | OrTransport::new(relay_transport, MemoryTransport::default()).boxed(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::MemoryTransport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Boxed` in this scope [INFO] [stdout] --> tests/lib.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | transport: Boxed, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::Boxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PublicKey` in this scope [INFO] [stdout] --> tests/lib.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | local_public_key: PublicKey, [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::PublicKey; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ecdsa::PublicKey; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::ed25519::PublicKey; [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::identity::rsa::PublicKey; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Boxed` in this scope [INFO] [stdout] --> tests/lib.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | ) -> Boxed<(PeerId, StreamMuxerBox)> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::Boxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerId` in this scope [INFO] [stdout] --> tests/lib.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | ) -> Boxed<(PeerId, StreamMuxerBox)> [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::PeerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StreamMuxerBox` in this scope [INFO] [stdout] --> tests/lib.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | ) -> Boxed<(PeerId, StreamMuxerBox)> [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::muxing::StreamMuxerBox; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PlainText2Config` in this scope [INFO] [stdout] --> tests/lib.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | .authenticate(PlainText2Config { local_public_key }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Multiaddr` in this scope [INFO] [stdout] --> tests/lib.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | client_addr: Multiaddr, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerId` in this scope [INFO] [stdout] --> tests/lib.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | relay_peer_id: PeerId, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::PeerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Multiaddr` in this scope [INFO] [stdout] --> tests/lib.rs:218:77 [INFO] [stdout] | [INFO] [stdout] 218 | async fn wait_for_connection_established(client: &mut Swarm, addr: &Multiaddr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Multiaddr` in this scope [INFO] [stdout] --> tests/lib.rs:237:74 [INFO] [stdout] | [INFO] [stdout] 237 | async fn wait_for_new_listen_addr(client: &mut Swarm, new_addr: &Multiaddr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> examples/client.rs:134:15 [INFO] [stdout] | [INFO] [stdout] 134 | impl From for Event { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `client` [INFO] [stdout] --> examples/client.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | fn from(e: client::Event) -> Self { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ping` [INFO] [stdout] --> examples/client.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | ping: Ping::new(PingConfig::new()), [INFO] [stdout] | ^^^^ use of undeclared type `Ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PingConfig` [INFO] [stdout] --> examples/client.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | ping: Ping::new(PingConfig::new()), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `PingConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Identify` [INFO] [stdout] --> examples/client.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | 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:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | 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 `Protocol` [INFO] [stdout] --> examples/client.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | .with(Protocol::Tcp(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:175:25 [INFO] [stdout] | [INFO] [stdout] 175 | 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 `Protocol` [INFO] [stdout] --> examples/client.rs:195:60 [INFO] [stdout] | [INFO] [stdout] 195 | .listen_on(opts.relay_address.clone().with(Protocol::P2pCircuit)) [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:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | 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] --> examples/client.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | SwarmEvent::Dialing { .. } => {} [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:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | 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] --> examples/client.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | SwarmEvent::Behaviour(Event::Ping(_)) => {} [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:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | SwarmEvent::Behaviour(Event::Relay(_)) => {} [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:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | SwarmEvent::Behaviour(Event::Identify(IdentifyEvent::Sent { .. })) => {} [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IdentifyEvent` [INFO] [stdout] --> examples/client.rs:209:55 [INFO] [stdout] | [INFO] [stdout] 209 | SwarmEvent::Behaviour(Event::Identify(IdentifyEvent::Sent { .. })) => {} [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IdentifyEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/client.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | SwarmEvent::Behaviour(Event::Identify(IdentifyEvent::Received { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IdentifyEvent` [INFO] [stdout] --> examples/client.rs:210:55 [INFO] [stdout] | [INFO] [stdout] 210 | SwarmEvent::Behaviour(Event::Identify(IdentifyEvent::Received { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `IdentifyEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> examples/client.rs:227:27 [INFO] [stdout] | [INFO] [stdout] 227 | .with(Protocol::P2pCircuit) [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/client.rs:228:27 [INFO] [stdout] | [INFO] [stdout] 228 | .with(Protocol::P2p(opts.remote_peer_id.unwrap().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] --> examples/client.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | 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 `SwarmEvent` [INFO] [stdout] --> examples/client.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | SwarmEvent::Behaviour(Event::Relay(event)) => { [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:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | SwarmEvent::Behaviour(Event::Dcutr(event)) => { [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:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | SwarmEvent::Behaviour(Event::Identify(event)) => { [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:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | SwarmEvent::Behaviour(Event::Ping(_)) => {} [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:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | 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] --> examples/client.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | SwarmEvent::OutgoingConnectionError { peer_id, error } => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Multiaddr` in this scope [INFO] [stdout] --> examples/client.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | relay_address: Multiaddr, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrTransport` [INFO] [stdout] --> examples/client.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let transport = OrTransport::new( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::transport::OrTransport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> examples/client.rs:108:23 [INFO] [stdout] | [INFO] [stdout] 108 | relay_client: Client, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ping` in this scope [INFO] [stdout] --> examples/client.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | ping: Ping, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Identify` in this scope [INFO] [stdout] --> examples/client.rs:110:19 [INFO] [stdout] | [INFO] [stdout] 110 | identify: Identify, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PingEvent` in this scope [INFO] [stdout] --> examples/client.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | Ping(PingEvent), [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:117:18 [INFO] [stdout] | [INFO] [stdout] 117 | Identify(IdentifyEvent), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PingEvent` in this scope [INFO] [stdout] --> examples/client.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | 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 `PingEvent` in this scope [INFO] [stdout] --> examples/client.rs:123:20 [INFO] [stdout] | [INFO] [stdout] 123 | fn from(e: PingEvent) -> Self { [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:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | 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:129:20 [INFO] [stdout] | [INFO] [stdout] 129 | fn from(e: IdentifyEvent) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmBuilder` [INFO] [stdout] --> examples/client.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let mut swarm = SwarmBuilder::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] 21 | use libp2p_swarm::SwarmBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Multiaddr` [INFO] [stdout] --> examples/client.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | Multiaddr::empty() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IdentifyInfo` in this scope [INFO] [stdout] --> examples/client.rs:211:27 [INFO] [stdout] | [INFO] [stdout] 211 | info: IdentifyInfo { observed_addr, .. }, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Client: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | fn build_client() -> Swarm { [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `Client` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Swarm` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.35.0/src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Client: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | client: &mut Swarm, [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `Client` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Swarm` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.35.0/src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Client: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:218:55 [INFO] [stdout] | [INFO] [stdout] 218 | async fn wait_for_connection_established(client: &mut Swarm, addr: &Multiaddr) { [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `Client` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Swarm` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.35.0/src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Client: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:237:48 [INFO] [stdout] | [INFO] [stdout] 237 | async fn wait_for_new_listen_addr(client: &mut Swarm, new_addr: &Multiaddr) { [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `Client` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Swarm` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.35.0/src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Client: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:244:44 [INFO] [stdout] | [INFO] [stdout] 244 | async fn wait_for_dcutr_event(client: &mut Swarm) -> dcutr::behaviour::Event { [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `Client` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Swarm` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.35.0/src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 55 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libp2p-dcutr` due to 56 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/client.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 55 | /// The listening address [INFO] [stdout] | ------------------------- this method call resolves to `T` [INFO] [stdout] 56 | #[structopt(long)] [INFO] [stdout] 57 | relay_address: Multiaddr, [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type parameter `U` declared on the associated function `map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::StreamExt` [INFO] [stdout] --> examples/client.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use futures::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 63 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, 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-dcutr` due to 64 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "e4ef73564dfdbd8600446071cecab2c8e9606a019ede3bdad3942c2b1c5b4e82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4ef73564dfdbd8600446071cecab2c8e9606a019ede3bdad3942c2b1c5b4e82", kill_on_drop: false }` [INFO] [stdout] e4ef73564dfdbd8600446071cecab2c8e9606a019ede3bdad3942c2b1c5b4e82