[INFO] fetching crate libp2p-relay 0.5.0... [INFO] testing libp2p-relay-0.5.0 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate libp2p-relay 0.5.0 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate libp2p-relay 0.5.0 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libp2p-relay 0.5.0 [INFO] finished tweaking crates.io crate libp2p-relay 0.5.0 [INFO] tweaked toml for crates.io crate libp2p-relay 0.5.0 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate crates.io crate libp2p-relay 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1cb8f75284289903de33aa0695d638c013bf5c1a78dd105bd4831d1cf83ed2d2 [INFO] running `Command { std: "docker" "start" "-a" "1cb8f75284289903de33aa0695d638c013bf5c1a78dd105bd4831d1cf83ed2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cb8f75284289903de33aa0695d638c013bf5c1a78dd105bd4831d1cf83ed2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cb8f75284289903de33aa0695d638c013bf5c1a78dd105bd4831d1cf83ed2d2", kill_on_drop: false }` [INFO] [stdout] 1cb8f75284289903de33aa0695d638c013bf5c1a78dd105bd4831d1cf83ed2d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=forbid" "-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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 447061c1ef2b1da4d83a346dcd7df71c44229706f0b5ffb30c9a8caeb2f0987c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "447061c1ef2b1da4d83a346dcd7df71c44229706f0b5ffb30c9a8caeb2f0987c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling anyhow v1.0.45 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling fixedbitset v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling signature v1.4.0 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling ed25519 v1.2.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling which v4.2.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling pin-project v0.4.28 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling libp2p-core v0.30.0 [INFO] [stderr] Compiling libp2p-relay v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling libp2p-swarm v0.32.0 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 51s [INFO] running `Command { std: "docker" "inspect" "447061c1ef2b1da4d83a346dcd7df71c44229706f0b5ffb30c9a8caeb2f0987c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "447061c1ef2b1da4d83a346dcd7df71c44229706f0b5ffb30c9a8caeb2f0987c", kill_on_drop: false }` [INFO] [stdout] 447061c1ef2b1da4d83a346dcd7df71c44229706f0b5ffb30c9a8caeb2f0987c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=forbid" "-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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0e481dc965290b368014bee63952555da3901eb518678cd921753487ccc34cb3 [INFO] running `Command { std: "docker" "start" "-a" "0e481dc965290b368014bee63952555da3901eb518678cd921753487ccc34cb3", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling libp2p-core v0.30.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling libp2p-swarm v0.32.0 [INFO] [stderr] Compiling structopt v0.3.25 [INFO] [stderr] Compiling libp2p-relay v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> tests/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use libp2p::kad::record::store::MemoryStore; [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/relay.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | use libp2p::dns::DnsConfig; [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:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use libp2p::NetworkBehaviour; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p_identify` [INFO] [stdout] --> tests/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use libp2p_identify::{Identify, IdentifyConfig, IdentifyEvent, IdentifyInfo}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared crate or module `libp2p_identify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p_kad` [INFO] [stdout] --> tests/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use libp2p_kad::{GetClosestPeersOk, Kademlia, KademliaEvent, QueryResult}; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `libp2p_kad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p_ping` [INFO] [stdout] --> tests/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use libp2p_ping as ping; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no external crate `libp2p_ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p_plaintext` [INFO] [stdout] --> tests/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use libp2p_plaintext::PlainText2Config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared crate or module `libp2p_plaintext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `NetworkBehaviour` [INFO] [stdout] --> tests/lib.rs:1138:10 [INFO] [stdout] | [INFO] [stdout] 1138 | #[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:1139:3 [INFO] [stdout] | [INFO] [stdout] 1139 | #[behaviour( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `behaviour` in this scope [INFO] [stdout] --> tests/lib.rs:1150:7 [INFO] [stdout] | [INFO] [stdout] 1150 | #[behaviour(ignore)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `NetworkBehaviour` [INFO] [stdout] --> tests/lib.rs:1208:10 [INFO] [stdout] | [INFO] [stdout] 1208 | #[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:1209:3 [INFO] [stdout] | [INFO] [stdout] 1209 | #[behaviour(event_process = true)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] --> tests/lib.rs:1298:20 [INFO] [stdout] | [INFO] [stdout] 1298 | .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 type `MemoryStore` [INFO] [stdout] --> tests/lib.rs:1306:13 [INFO] [stdout] | [INFO] [stdout] 1306 | MemoryStore::new(local_peer_id.clone()), [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MemoryStore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] --> tests/lib.rs:1334:20 [INFO] [stdout] | [INFO] [stdout] 1334 | .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 `libp2p_yamux` [INFO] [stdout] --> tests/lib.rs:1358:20 [INFO] [stdout] | [INFO] [stdout] 1358 | .multiplex(libp2p_yamux::YamuxConfig::default()) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `libp2p_yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MemoryStore` in this scope [INFO] [stdout] --> tests/lib.rs:1147:19 [INFO] [stdout] | [INFO] [stdout] 1144 | struct CombinedBehaviour { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1147 | kad: Kademlia, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dial_opts::DialOpts` [INFO] [stdout] --> tests/lib.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | dial_opts::DialOpts, DialError, DummyBehaviour, NetworkBehaviour, NetworkBehaviourAction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/relay.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use libp2p::relay::{Relay, RelayConfig}; [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/relay.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use libp2p::swarm::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/relay.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | 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/relay.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | use libp2p::plaintext; [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/relay.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use libp2p::{core::upgrade, identity::ed25519, ping, Multiaddr}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/relay.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | 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/relay.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use libp2p::{core::upgrade, identity::ed25519, ping, Multiaddr}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/relay.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | use libp2p::{identity, NetworkBehaviour, PeerId, Swarm}; [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/relay.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | #[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/relay.rs:212:3 [INFO] [stdout] | [INFO] [stdout] 212 | #[behaviour(out_event = "Event")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsConfig` [INFO] [stdout] --> examples/relay.rs:90:30 [INFO] [stdout] | [INFO] [stdout] 90 | let transport = block_on(DnsConfig::system(TcpConfig::new()))?; [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/relay.rs:90:48 [INFO] [stdout] | [INFO] [stdout] 90 | let transport = block_on(DnsConfig::system(TcpConfig::new()))?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TcpConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `upgrade` [INFO] [stdout] --> examples/relay.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | .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/relay.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | .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 type `SwarmEvent` [INFO] [stdout] --> examples/relay.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | SwarmEvent::NewListenAddr { address, .. } => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/relay.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | fn print_listener_peer(addr: &libp2p::Multiaddr, mode: &Mode, local_peer_id: PeerId) -> () { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RelayConfig` in this scope [INFO] [stdout] --> examples/relay.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | let relay_config = RelayConfig { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 60 | use libp2p_relay::RelayConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ed25519` [INFO] [stdout] --> examples/relay.rs:179:31 [INFO] [stdout] | [INFO] [stdout] 179 | let secret_key = ed25519::SecretKey::from_bytes(&mut bytes) [INFO] [stdout] | ^^^^^^^^^ not found in `ed25519` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 60 | use libp2p_core::identity::ed25519::SecretKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Relay` in this scope [INFO] [stdout] --> examples/relay.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | relay: Relay, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 60 | use libp2p_relay::Relay; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CombinedBehaviour: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:1165:53 [INFO] [stdout] | [INFO] [stdout] 1165 | ) -> Poll::ProtocolsHandler>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `CombinedBehaviour` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `NetworkBehaviour` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-swarm-0.32.0/src/behaviour.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / pub trait NetworkBehaviour: Send + 'static { [INFO] [stdout] 61 | | /// Handler for all the protocols the network behaviour supports. [INFO] [stdout] 62 | | type ProtocolsHandler: IntoProtocolsHandler; [INFO] [stdout] 63 | | [INFO] [stdout] ... | [INFO] [stdout] 211 | | ) -> Poll>; [INFO] [stdout] 212 | | } [INFO] [stdout] | |_^ required by this bound in `NetworkBehaviour` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CombinedBehaviour: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:1162:9 [INFO] [stdout] | [INFO] [stdout] 1162 | &mut self, [INFO] [stdout] | ^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `CombinedBehaviour` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CombinedBehaviour: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:1272:70 [INFO] [stdout] | [INFO] [stdout] 1272 | fn build_swarm(reachability: Reachability, relay_mode: RelayMode) -> Swarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `CombinedBehaviour` [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.32.0/src/lib.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CombinedKeepAliveBehaviour: NetworkBehaviour` is not satisfied [INFO] [stdout] --> tests/lib.rs:1318:32 [INFO] [stdout] | [INFO] [stdout] 1318 | fn build_keep_alive_swarm() -> Swarm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NetworkBehaviour` is not implemented for `CombinedKeepAliveBehaviour` [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.32.0/src/lib.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | TBehaviour: NetworkBehaviour, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Swarm` [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: E0277, E0412, 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-relay` due to 21 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `upgrade` found for struct `RelayTransport` in the current scope [INFO] [stdout] --> examples/relay.rs:113:10 [INFO] [stdout] | [INFO] [stdout] 113 | .upgrade(upgrade::Version::V1) [INFO] [stdout] | ^^^^^^^ method not found in `RelayTransport<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.30.0/src/transport.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | fn upgrade(self, version: upgrade::Version) -> upgrade::Builder [INFO] [stdout] | ------- the method is available for `RelayTransport<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 60 | use libp2p_core::transport::Transport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::StreamExt` [INFO] [stdout] --> examples/relay.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | 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 21 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0e481dc965290b368014bee63952555da3901eb518678cd921753487ccc34cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e481dc965290b368014bee63952555da3901eb518678cd921753487ccc34cb3", kill_on_drop: false }` [INFO] [stdout] 0e481dc965290b368014bee63952555da3901eb518678cd921753487ccc34cb3