[INFO] cloning repository https://github.com/daogangtang/learn-libp2p [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/daogangtang/learn-libp2p" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5af80970091694cf447984cdcdcedf270a9d0702 [INFO] checking daogangtang/learn-libp2p against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daogangtang/learn-libp2p on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/daogangtang/learn-libp2p [INFO] removed path dependency libp2p from git repo https://github.com/daogangtang/learn-libp2p [INFO] finished tweaking git repo https://github.com/daogangtang/learn-libp2p [INFO] tweaked toml for git repo https://github.com/daogangtang/learn-libp2p written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/daogangtang/learn-libp2p already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e016ffeb346c8606f08d8a900b400c4feb3d10e9b428c926285b18a71ad9ec46 [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" "e016ffeb346c8606f08d8a900b400c4feb3d10e9b428c926285b18a71ad9ec46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e016ffeb346c8606f08d8a900b400c4feb3d10e9b428c926285b18a71ad9ec46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e016ffeb346c8606f08d8a900b400c4feb3d10e9b428c926285b18a71ad9ec46", kill_on_drop: false }` [INFO] [stdout] e016ffeb346c8606f08d8a900b400c4feb3d10e9b428c926285b18a71ad9ec46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b36b946fbb9e20f3f1f2f36f10e98b366939681f46913529d365c5857673b655 [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" "b36b946fbb9e20f3f1f2f36f10e98b366939681f46913529d365c5857673b655", kill_on_drop: false }` [INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling multimap v0.8.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking signature v1.2.2 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking data-encoding v2.3.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking fastrand v1.4.0 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.69 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking hex_fmt v0.3.0 [INFO] [stderr] Checking lru_time_cache v0.11.3 [INFO] [stderr] Checking parity-send-wrapper v0.1.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking humantime v2.0.1 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling ring v0.16.19 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking ed25519 v1.0.3 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking quicksink v0.1.2 [INFO] [stderr] Checking async-mutex v1.4.0 [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 anyhow v1.0.37 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling atomic v0.5.0 [INFO] [stderr] Compiling tokio v1.0.1 [INFO] [stderr] Checking futures-lite v1.11.3 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking uint v0.8.5 [INFO] [stderr] Checking async-channel v1.5.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking lru v0.6.3 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling snow v0.7.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking nb-connect v1.0.2 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking if-addrs v0.6.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking async-executor v1.4.0 [INFO] [stderr] Checking blocking v1.0.2 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking block-cipher v0.8.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Compiling prost-build v0.6.1 [INFO] [stderr] Checking async-io v1.3.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking aes-soft v0.5.0 [INFO] [stderr] Checking stream-cipher v0.7.1 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking poly1305 v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking blake2 v0.9.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking salsa20 v0.7.2 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking async-global-executor v1.4.3 [INFO] [stderr] Checking if-watch v0.1.7 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking aes v0.5.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking async-std v1.8.0 [INFO] [stderr] Checking aes-gcm v0.7.0 [INFO] [stderr] Checking env_logger v0.8.2 [INFO] [stderr] Checking tokio-stdin-stdout v0.1.5 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking cuckoofilter v0.5.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking webpki-roots v0.21.0 [INFO] [stderr] Checking rustls v0.19.0 [INFO] [stderr] Checking async-tls v0.11.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.69 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.69 [INFO] [stderr] Compiling prost-derive v0.6.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling zeroize_derive v1.0.1 [INFO] [stderr] Compiling multihash-derive v0.7.1 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling asn1_der_derive v0.1.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.69 [INFO] [stderr] Compiling minicbor-derive v0.6.0 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling libp2p-core-derive v0.21.0 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking asn1_der v0.6.3 [INFO] [stderr] Checking curve25519-dalek v3.0.0 [INFO] [stderr] Checking chacha20 v0.5.0 [INFO] [stderr] Checking chacha20poly1305 v0.6.0 [INFO] [stderr] Checking js-sys v0.3.46 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking x25519-dalek v1.1.0 [INFO] [stderr] Compiling prost v0.6.1 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking minicbor v0.7.0 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Compiling prost-types v0.6.1 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.19 [INFO] [stderr] Compiling libp2p-core v0.26.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.26.0 [INFO] [stderr] Compiling libp2p-kad v0.27.0 [INFO] [stderr] Compiling libp2p-noise v0.28.0 [INFO] [stderr] Compiling libp2p-floodsub v0.26.0 [INFO] [stderr] Compiling libp2p-plaintext v0.26.0 [INFO] [stderr] Compiling libp2p-identify v0.26.0 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking futures_codec v0.4.1 [INFO] [stderr] Checking rw-stream-sink v0.2.1 [INFO] [stderr] Checking wasm-timer v0.2.5 [INFO] [stderr] Checking soketto v0.4.2 [INFO] [stderr] Checking yamux v0.8.0 [INFO] [stderr] Checking libp2p-pnet v0.20.0 [INFO] [stderr] Checking unsigned-varint v0.5.1 [INFO] [stderr] Checking multihash v0.13.2 [INFO] [stderr] Checking multistream-select v0.9.1 [INFO] [stderr] Checking parity-multiaddr v0.10.0 [INFO] [stderr] Checking libp2p-swarm v0.26.0 [INFO] [stderr] Checking libp2p-websocket v0.27.0 [INFO] [stderr] Checking libp2p-yamux v0.29.0 [INFO] [stderr] Checking libp2p-uds v0.26.0 [INFO] [stderr] Checking libp2p-mplex v0.26.0 [INFO] [stderr] Checking libp2p-tcp v0.26.0 [INFO] [stderr] Checking libp2p-dns v0.26.0 [INFO] [stderr] Checking libp2p-wasm-ext v0.26.0 [INFO] [stderr] Checking libp2p-deflate v0.26.0 [INFO] [stderr] Checking libp2p-request-response v0.8.0 [INFO] [stderr] Checking libp2p-mdns v0.27.0 [INFO] [stderr] Checking libp2p-ping v0.26.0 [INFO] [stderr] Checking libp2p v0.33.0 [INFO] [stderr] Checking learn-libp2p v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_listen2.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 11 | mplex, [INFO] [stdout] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_listen3.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] ... [INFO] [stdout] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/chat.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 62 | mplex, [INFO] [stdout] 63 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/ping_client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stdout] --> src/ping_client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_client3.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] ... [INFO] [stdout] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_listen2.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stdout] --> src/ping_listen2.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stdout] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `runtime` in `tokio` [INFO] [stdout] --> src/ping_client.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let mut runtime = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `runtime` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream` [INFO] [stdout] --> src/ping_client.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InboundUpgrade` [INFO] [stdout] --> src/ping_client.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/chat.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stdout] --> src/ping_client.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0") [INFO] [stdout] | ^^ unexpected type argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `TopicBuilder` in `floodsub` [INFO] [stdout] --> src/chat.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | let floodsub_topic = libp2p::floodsub::TopicBuilder::new("chat").build(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `TopicBuilder` in `floodsub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:89:44 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:89:74 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | impl MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:95:60 [INFO] [stdout] | [INFO] [stdout] 95 | impl MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:98:65 [INFO] [stdout] | [INFO] [stdout] 98 | where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `swarm` in `core` [INFO] [stdout] --> src/chat.rs:97:112 [INFO] [stdout] | [INFO] [stdout] 97 | ...floodsub::Floodsub as libp2p::core::swarm::NetworkBehaviour>::OutEvent) [INFO] [stdout] | ^^^^^ could not find `swarm` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_listen2.rs:36:64 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/chat.rs:112:64 [INFO] [stdout] | [INFO] [stdout] 112 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_listen2.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NetworkBehaviour` [INFO] [stdout] --> src/ping_listen2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_listen3.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()), [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | Async::Ready(None) => panic!("Stdin closed"), [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | Async::Ready(Some(_)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Config` in `yamux` [INFO] [stdout] --> src/ping_listen3.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let upgrade = libp2p::yamux::Config::default() [INFO] [stdout] | ^^^^^^ could not find `Config` in `yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:152:38 [INFO] [stdout] | [INFO] [stdout] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_listen2.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 11 | mplex, [INFO] [stdout] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/ping_listen2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- ------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/chat.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 57 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stdout] --> src/ping_listen3.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stdout] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/ping_listen.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_client3.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stdout] --> src/ping_listen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_listen3.rs:43:64 [INFO] [stdout] | [INFO] [stdout] 43 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Config` in `yamux` [INFO] [stdout] --> src/ping_client3.rs:31:42 [INFO] [stdout] | [INFO] [stdout] 31 | let upgrade = libp2p::yamux::Config::default() [INFO] [stdout] | ^^^^^^ could not find `Config` in `yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stdout] --> src/ping_client3.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_listen3.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stdout] --> src/ping_listen3.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | yamux, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_client3.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] ... [INFO] [stdout] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_client3.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_client3.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | tokio::run(task); [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stdout] --> src/ping_client3.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | yamux, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/ping_listen3.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^ ---------- ------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learn-libp2p` [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/ping_client3.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^ ---------- ------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 19 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `runtime` in `tokio` [INFO] [stdout] --> src/ping_listen.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let mut runtime = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `runtime` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream` [INFO] [stdout] --> src/ping_listen.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgrade` [INFO] [stdout] --> src/ping_listen.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stdout] --> src/ping_listen.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0") [INFO] [stdout] | ^^ unexpected type argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/ping_client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stdout] --> src/ping_client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_listen2.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_client3.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_client2.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 11 | mplex, [INFO] [stdout] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Config` in `yamux` [INFO] [stdout] --> src/ping_client3.rs:31:42 [INFO] [stdout] | [INFO] [stdout] 31 | let upgrade = libp2p::yamux::Config::default() [INFO] [stdout] | ^^^^^^ could not find `Config` in `yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stdout] --> src/ping_listen2.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stdout] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stdout] --> src/ping_client3.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_listen2.rs:36:64 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen2.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_listen2.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_client3.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client3.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NetworkBehaviour` [INFO] [stdout] --> src/ping_listen2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_client3.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | tokio::run(task); [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stdout] --> src/ping_client3.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | yamux, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `runtime` in `tokio` [INFO] [stdout] --> src/ping_client.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let mut runtime = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `runtime` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/ping_listen2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- ------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream` [INFO] [stdout] --> src/ping_client.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InboundUpgrade` [INFO] [stdout] --> src/ping_client.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/ping_client3.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^ ---------- ------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stdout] --> src/ping_client.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0") [INFO] [stdout] | ^^ unexpected type argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_client2.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stdout] --> src/ping_client2.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_client2.rs:36:64 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:67:38 [INFO] [stdout] | [INFO] [stdout] 67 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_client2.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | tokio::run(task); [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NetworkBehaviour` [INFO] [stdout] --> src/ping_client2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/ping_client2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- ------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_listen3.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] ... [INFO] [stdout] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stdout] --> src/ping_listen.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stdout] --> src/ping_listen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/chat.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 62 | mplex, [INFO] [stdout] 63 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `runtime` in `tokio` [INFO] [stdout] --> src/ping_listen.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | let mut runtime = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `runtime` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream` [INFO] [stdout] --> src/ping_listen.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgrade` [INFO] [stdout] --> src/ping_listen.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stdout] --> src/ping_listen.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0") [INFO] [stdout] | ^^ unexpected type argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_listen3.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Config` in `yamux` [INFO] [stdout] --> src/ping_listen3.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let upgrade = libp2p::yamux::Config::default() [INFO] [stdout] | ^^^^^^ could not find `Config` in `yamux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stdout] --> src/ping_listen3.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stdout] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/chat.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_listen3.rs:43:64 [INFO] [stdout] | [INFO] [stdout] 43 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_listen3.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_listen3.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stdout] --> src/ping_listen3.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | mplex, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | yamux, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `TopicBuilder` in `floodsub` [INFO] [stdout] --> src/chat.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | let floodsub_topic = libp2p::floodsub::TopicBuilder::new("chat").build(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `TopicBuilder` in `floodsub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:89:44 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:89:74 [INFO] [stdout] | [INFO] [stdout] 89 | struct MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `libp2p::secio`, `libp2p::tokio_codec` [INFO] [stdout] --> src/ping_client2.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | secio, [INFO] [stdout] | ^^^^^ no `secio` in the root [INFO] [stdout] 11 | mplex, [INFO] [stdout] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stdout] | ^^^^^^^^^^^ could not find `tokio_codec` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | impl MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:95:60 [INFO] [stdout] | [INFO] [stdout] 95 | impl MyBehaviour { [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:98:35 [INFO] [stdout] | [INFO] [stdout] 98 | where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `tokio_io` in `libp2p` [INFO] [stdout] --> src/chat.rs:98:65 [INFO] [stdout] | [INFO] [stdout] 98 | where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite [INFO] [stdout] | ^^^^^^^^ could not find `tokio_io` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `swarm` in `core` [INFO] [stdout] --> src/chat.rs:97:112 [INFO] [stdout] | [INFO] [stdout] 97 | ...floodsub::Floodsub as libp2p::core::swarm::NetworkBehaviour>::OutEvent) [INFO] [stdout] | ^^^^^ could not find `swarm` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/ping_listen3.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^ ---------- ------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/chat.rs:112:64 [INFO] [stdout] | [INFO] [stdout] 112 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()), [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | Async::Ready(None) => panic!("Stdin closed"), [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | Async::Ready(Some(_)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:152:38 [INFO] [stdout] | [INFO] [stdout] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/chat.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/chat.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 57 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `CommonTransport` in `libp2p` [INFO] [stdout] --> src/ping_client2.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `CommonTransport` in `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stdout] --> src/ping_client2.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stdout] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stdout] --> src/ping_client2.rs:36:64 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | Async::Ready(Some(x)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:67:38 [INFO] [stdout] | [INFO] [stdout] 67 | Async::Ready(None) | Async::NotReady => break, [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Async` [INFO] [stdout] --> src/ping_client2.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^ use of undeclared type `Async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stdout] --> src/ping_client2.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | tokio::run(task); [INFO] [stdout] | ^^^ not found in `tokio` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 6 | use crate::stream::futures_unordered::fmt::run; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NetworkBehaviour` [INFO] [stdout] --> src/ping_client2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/ping_client2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- ------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_client2.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_client2.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_client3.rs:34:67 [INFO] [stdout] | [INFO] [stdout] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_client3.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_listen3.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_client3.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 66 | let task = futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_client2.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_client2.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 61 | let task = futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_client3.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_listen3.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_client2.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_listen3.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_client3.rs:34:67 [INFO] [stdout] | [INFO] [stdout] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_client2.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_listen3.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_client3.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_client3.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgradeExt` [INFO] [stdout] --> src/ping_client3.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade::{self, OutboundUpgradeExt}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libp2p::InboundUpgradeExt` [INFO] [stdout] --> src/ping_client3.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libp2p::InboundUpgradeExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_listen3.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_listen3.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_listen2.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_listen2.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_client2.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_listen3.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_io_error` found for enum `UpgradeError<_>` in the current scope [INFO] [stdout] --> src/ping_listen2.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `UpgradeError<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/ping_listen2.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------- --------- ----------------------------------------------- ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgradeExt` [INFO] [stdout] --> src/ping_listen3.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade::{self, OutboundUpgradeExt}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libp2p::InboundUpgradeExt` [INFO] [stdout] --> src/ping_listen3.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libp2p::InboundUpgradeExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_client2.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 61 | let task = futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_client3.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 66 | let task = futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_client3.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_client2.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_listen2.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_client3.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgradeExt` [INFO] [stdout] --> src/ping_client3.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade::{self, OutboundUpgradeExt}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libp2p::InboundUpgradeExt` [INFO] [stdout] --> src/ping_client3.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libp2p::InboundUpgradeExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_client2.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_listen2.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_listen2.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_listen2.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 58 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/ping_listen3.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 65 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_listen2.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `ExpandedSwarm<_, _, _, _>` in the current scope [INFO] [stdout] --> src/ping_listen3.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stdout] | ^^^^ method not found in `ExpandedSwarm<_, _, _, _>` [INFO] [stdout] | [INFO] [stdout] = note: `swarm` is a function, perhaps you wish to call it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_listen2.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/ping_listen3.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | NetworkBehaviour, Transport, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutboundUpgradeExt` [INFO] [stdout] --> src/ping_listen3.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | core::upgrade::{self, OutboundUpgradeExt}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libp2p::InboundUpgradeExt` [INFO] [stdout] --> src/ping_listen3.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libp2p::InboundUpgradeExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0432, E0433, E0593, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b36b946fbb9e20f3f1f2f36f10e98b366939681f46913529d365c5857673b655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b36b946fbb9e20f3f1f2f36f10e98b366939681f46913529d365c5857673b655", kill_on_drop: false }` [INFO] [stdout] b36b946fbb9e20f3f1f2f36f10e98b366939681f46913529d365c5857673b655