[INFO] updating cached repository https://github.com/daogangtang/learn-libp2p [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 5af80970091694cf447984cdcdcedf270a9d0702 [INFO] checking daogangtang/learn-libp2p against try#1a608893c03d7722effeb0058e82770bd36b4b3c for pr-66504-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daogangtang/learn-libp2p on toolchain 1a608893c03d7722effeb0058e82770bd36b4b3c [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "read-manifest" "--manifest-path" "Cargo.toml"` [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-2/source/Cargo.toml [INFO] crate git repo https://github.com/daogangtang/learn-libp2p already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [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] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [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] Downloading crates ... [INFO] [stderr] Downloaded multistream-select v0.6.1 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 91eb7047e7b7a3e0afbdf3430a631826df522cf873d369feded53742f139d6b1 [INFO] running `"docker" "start" "-a" "91eb7047e7b7a3e0afbdf3430a631826df522cf873d369feded53742f139d6b1"` [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] Checking zeroize v1.1.0 [INFO] [stderr] Compiling subtle v2.2.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking nohash-hasher v0.1.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking parity-send-wrapper v0.1.0 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking tokio v0.2.4 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Compiling snow v0.6.2 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking wasm-timer v0.1.3 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking cuckoofilter v0.3.2 [INFO] [stderr] Checking curve25519-dalek v2.0.0 [INFO] [stderr] Checking blake2 v0.8.1 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking twofish v0.2.0 [INFO] [stderr] Compiling curve25519-dalek v1.2.3 [INFO] [stderr] Compiling asn1_der_derive v0.1.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.55 [INFO] [stderr] Checking parking_lot_core v0.5.0 [INFO] [stderr] Checking sha2 v0.8.0 [INFO] [stderr] Checking sha-1 v0.8.1 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking rw-stream-sink v0.1.2 [INFO] [stderr] Checking flate2 v1.0.13 [INFO] [stderr] Checking tokio-stdin-stdout v0.1.5 [INFO] [stderr] Checking aes-ctr v0.3.0 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Checking ed25519-dalek v1.0.0-pre.3 [INFO] [stderr] Checking tokio-reactor v0.1.11 [INFO] [stderr] Checking parking_lot v0.8.0 [INFO] [stderr] Checking libsecp256k1 v0.3.2 [INFO] [stderr] Checking uint v0.8.2 [INFO] [stderr] Checking asn1_der v0.6.3 [INFO] [stderr] Checking unsigned-varint v0.2.3 [INFO] [stderr] Checking yamux v0.2.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.55 [INFO] [stderr] Checking soketto v0.2.3 [INFO] [stderr] Checking tokio-udp v0.1.5 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking parity-multihash v0.2.0 [INFO] [stderr] Checking multistream-select v0.6.1 [INFO] [stderr] Checking webpki v0.21.0 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking futures-util v0.3.1 [INFO] [stderr] Checking x25519-dalek v0.5.2 [INFO] [stderr] Checking webpki-roots v0.18.0 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking rustls v0.16.0 [INFO] [stderr] Checking parity-multiaddr v0.6.0 [INFO] [stderr] Checking tokio-dns-unofficial v0.4.0 [INFO] [stderr] Compiling libp2p-core-derive v0.13.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.55 [INFO] [stderr] Checking futures-executor v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.10.2 [INFO] [stderr] Checking libp2p-core v0.13.1 [INFO] [stderr] Checking wasm-bindgen v0.2.55 [INFO] [stderr] Checking futures v0.3.1 [INFO] [stderr] Checking js-sys v0.3.32 [INFO] [stderr] Checking libp2p-swarm v0.3.0 [INFO] [stderr] Checking libp2p-dns v0.13.0 [INFO] [stderr] Checking libp2p-websocket v0.13.0 [INFO] [stderr] Checking libp2p-yamux v0.13.0 [INFO] [stderr] Checking libp2p-noise v0.11.0 [INFO] [stderr] Checking libp2p-uds v0.13.0 [INFO] [stderr] Checking libp2p-plaintext v0.13.0 [INFO] [stderr] Checking libp2p-deflate v0.5.0 [INFO] [stderr] Checking libp2p-secio v0.13.0 [INFO] [stderr] Checking libp2p-mplex v0.13.0 [INFO] [stderr] Checking libp2p-tcp v0.13.0 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking libp2p-wasm-ext v0.6.0 [INFO] [stderr] Checking libp2p-identify v0.13.1 [INFO] [stderr] Checking libp2p-mdns v0.13.1 [INFO] [stderr] Checking libp2p-kad v0.13.1 [INFO] [stderr] Checking libp2p-ping v0.13.1 [INFO] [stderr] Checking libp2p-floodsub v0.13.0 [INFO] [stderr] Checking libp2p v0.13.1 [INFO] [stderr] Checking learn-libp2p v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio` [INFO] [stderr] --> src/ping_listen2.rs:19:28 [INFO] [stderr] | [INFO] [stderr] 19 | let local_key = secio::SecioKeyPair::ed25519_generated().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stderr] --> src/ping_listen2.rs:34:39 [INFO] [stderr] | [INFO] [stderr] 34 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stderr] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stderr] --> src/ping_listen2.rs:36:64 [INFO] [stderr] | [INFO] [stderr] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stderr] --> src/ping_client.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::net::TcpListener; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stderr] --> src/ping_client.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Future`, `Stream` [INFO] [stderr] --> src/ping_client.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | use futures::{Future, Stream}; [INFO] [stderr] | ^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `InboundUpgrade` [INFO] [stderr] --> src/ping_client.rs:8:29 [INFO] [stderr] | [INFO] [stderr] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:62:17 [INFO] [stderr] | [INFO] [stderr] 62 | Async::Ready(Some(x)) => { [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:65:17 [INFO] [stderr] | [INFO] [stderr] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/ping_client.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0") [INFO] [stderr] | ^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:65:38 [INFO] [stderr] | [INFO] [stderr] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | Ok(Async::NotReady) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stderr] --> src/ping_listen2.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^ not found in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `CommonTransport` is private [INFO] [stderr] --> src/ping_listen2.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour` [INFO] [stderr] --> src/ping_listen2.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0107, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0107`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio` [INFO] [stderr] --> src/ping_listen2.rs:19:28 [INFO] [stderr] | [INFO] [stderr] 19 | let local_key = secio::SecioKeyPair::ed25519_generated().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `PingListen` in `ping` [INFO] [stderr] --> src/ping_listen2.rs:34:39 [INFO] [stderr] | [INFO] [stderr] 34 | let behaviour = libp2p::ping::PingListen::new(); [INFO] [stderr] | ^^^^^^^^^^ could not find `PingListen` in `ping` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stderr] --> src/ping_listen2.rs:36:64 [INFO] [stderr] | [INFO] [stderr] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:62:17 [INFO] [stderr] | [INFO] [stderr] 62 | Async::Ready(Some(x)) => { [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:65:17 [INFO] [stderr] | [INFO] [stderr] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:65:38 [INFO] [stderr] | [INFO] [stderr] 65 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_listen2.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | Ok(Async::NotReady) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stderr] --> src/ping_listen2.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^ not found in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `CommonTransport` is private [INFO] [stderr] --> src/ping_listen2.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | let transport = libp2p::CommonTransport::new() [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour` [INFO] [stderr] --> src/ping_listen2.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 12 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | .with_upgrade(secio::SecioConfig::new(local_key)) [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/ping_listen2.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | .with_upgrade(secio::SecioConfig::new(local_key)) [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:29:58 [INFO] [stderr] | [INFO] [stderr] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 6 | use crate::libp2p::futures::Future; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/ping_listen2.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/ping_listen2.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:29:58 [INFO] [stderr] | [INFO] [stderr] 29 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 6 | use crate::libp2p::futures::Future; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/ping_listen2.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stderr] --> src/ping_listen2.rs:58:16 [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected closure that takes 1 argument [INFO] [stderr] | [INFO] [stderr] help: consider changing the closure to take and ignore the expected argument [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stderr] --> src/ping_listen2.rs:58:16 [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected closure that takes 1 argument [INFO] [stderr] | [INFO] [stderr] help: consider changing the closure to take and ignore the expected argument [INFO] [stderr] | [INFO] [stderr] 58 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:61:25 [INFO] [stderr] | [INFO] [stderr] 61 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stderr] | ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` [INFO] [stderr] | [INFO] [stderr] = note: swarm is a function, perhaps you wish to call it [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio` [INFO] [stderr] --> src/ping_client3.rs:21:28 [INFO] [stderr] | [INFO] [stderr] 21 | let local_key = secio::SecioKeyPair::ed25519_generated().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope [INFO] [stderr] --> src/ping_listen2.rs:61:25 [INFO] [stderr] | [INFO] [stderr] 61 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stderr] | ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` [INFO] [stderr] | [INFO] [stderr] = note: swarm is a function, perhaps you wish to call it [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::prelude` [INFO] [stderr] --> src/ping_listen2.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use futures::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Transport` [INFO] [stderr] --> src/ping_listen2.rs:8:23 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stderr] --> src/ping_client3.rs:39:39 [INFO] [stderr] | [INFO] [stderr] 39 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stderr] --> src/ping_client3.rs:41:64 [INFO] [stderr] | [INFO] [stderr] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:69:17 [INFO] [stderr] | [INFO] [stderr] 69 | Async::Ready(Some(x)) => { [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::prelude` [INFO] [stderr] --> src/ping_listen2.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use futures::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Transport` [INFO] [stderr] --> src/ping_listen2.rs:8:23 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:72:38 [INFO] [stderr] | [INFO] [stderr] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | Ok(Async::NotReady) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stderr] --> src/ping_client3.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | tokio::run(task); [INFO] [stderr] | ^^^ not found in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `CommonTransport` is private [INFO] [stderr] --> src/ping_client3.rs:26:29 [INFO] [stderr] | [INFO] [stderr] 26 | let transport = libp2p::CommonTransport::new() [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stderr] --> src/ping_client3.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | mplex, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 12 | yamux, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stderr] --> src/ping_listen.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::net::TcpListener; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stderr] --> src/ping_listen.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Future`, `Stream` [INFO] [stderr] --> src/ping_listen.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | use futures::{Future, Stream}; [INFO] [stderr] | ^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `OutboundUpgrade` [INFO] [stderr] --> src/ping_listen.rs:8:45 [INFO] [stderr] | [INFO] [stderr] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/ping_listen.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0") [INFO] [stderr] | ^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0107, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0107`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope [INFO] [stderr] --> src/ping_client3.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | .with_upgrade(secio::SecioConfig::new(local_key)) [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/ping_client3.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` in the current scope [INFO] [stderr] --> src/ping_client3.rs:34:53 [INFO] [stderr] | [INFO] [stderr] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^ method not found in `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `&libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] `&mut libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `&mut libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 6 | use crate::libp2p::futures::Future; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener` [INFO] [stderr] --> src/ping_listen.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use tokio::net::TcpListener; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpStream` [INFO] [stderr] --> src/ping_listen.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/ping_client3.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Future`, `Stream` [INFO] [stderr] --> src/ping_listen.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | use futures::{Future, Stream}; [INFO] [stderr] | ^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `OutboundUpgrade` [INFO] [stderr] --> src/ping_listen.rs:8:45 [INFO] [stderr] | [INFO] [stderr] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/ping_listen.rs:22:20 [INFO] [stderr] | [INFO] [stderr] 22 | Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0") [INFO] [stderr] | ^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stderr] --> src/ping_client3.rs:66:16 [INFO] [stderr] | [INFO] [stderr] 66 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected closure that takes 1 argument [INFO] [stderr] | [INFO] [stderr] help: consider changing the closure to take and ignore the expected argument [INFO] [stderr] | [INFO] [stderr] 66 | let task = futures::future::poll_fn(move |_| { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope [INFO] [stderr] --> src/ping_client3.rs:68:25 [INFO] [stderr] | [INFO] [stderr] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stderr] | ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` [INFO] [stderr] | [INFO] [stderr] = note: swarm is a function, perhaps you wish to call it [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::prelude` [INFO] [stderr] --> src/ping_client3.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use futures::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Transport` [INFO] [stderr] --> src/ping_client3.rs:8:23 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0107, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0107`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio` [INFO] [stderr] --> src/chat.rs:70:28 [INFO] [stderr] | [INFO] [stderr] 70 | let local_key = secio::SecioKeyPair::ed25519_generated().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `swarm` in `core` [INFO] [stderr] --> src/chat.rs:97:112 [INFO] [stderr] | [INFO] [stderr] 97 | fn on_floodsub(&mut self, message: as libp2p::core::swarm::NetworkBehaviour>::OutEvent) [INFO] [stderr] | ^^^^^ could not find `swarm` in `core` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stderr] --> src/chat.rs:112:64 [INFO] [stderr] | [INFO] [stderr] 112 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:141:17 [INFO] [stderr] | [INFO] [stderr] 141 | Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:142:17 [INFO] [stderr] | [INFO] [stderr] 142 | Async::Ready(None) => panic!("Stdin closed"), [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:143:17 [INFO] [stderr] | [INFO] [stderr] 143 | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:149:17 [INFO] [stderr] | [INFO] [stderr] 149 | Async::Ready(Some(_)) => { [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:152:17 [INFO] [stderr] | [INFO] [stderr] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:152:38 [INFO] [stderr] | [INFO] [stderr] 152 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/chat.rs:156:12 [INFO] [stderr] | [INFO] [stderr] 156 | Ok(Async::NotReady) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stderr] --> src/chat.rs:138:12 [INFO] [stderr] | [INFO] [stderr] 138 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^ not found in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `CommonTransport` is private [INFO] [stderr] --> src/chat.rs:75:29 [INFO] [stderr] | [INFO] [stderr] 75 | let transport = libp2p::CommonTransport::new() [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio` [INFO] [stderr] --> src/ping_client3.rs:21:28 [INFO] [stderr] | [INFO] [stderr] 21 | let local_key = secio::SecioKeyPair::ed25519_generated().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping` [INFO] [stderr] --> src/ping_client3.rs:39:39 [INFO] [stderr] | [INFO] [stderr] 39 | let behaviour = libp2p::ping::PeriodicPing::new(); [INFO] [stderr] | ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core` [INFO] [stderr] --> src/ping_client3.rs:41:64 [INFO] [stderr] | [INFO] [stderr] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^ could not find `topology` in `core` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:69:17 [INFO] [stderr] | [INFO] [stderr] 69 | Async::Ready(Some(x)) => { [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:72:38 [INFO] [stderr] | [INFO] [stderr] 72 | Async::Ready(None) | Async::NotReady => break, [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async` [INFO] [stderr] --> src/ping_client3.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | Ok(Async::NotReady) [INFO] [stderr] | ^^^^^ use of undeclared type or module `Async` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio` [INFO] [stderr] --> src/ping_client3.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | tokio::run(task); [INFO] [stderr] | ^^^ not found in `tokio` [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `CommonTransport` is private [INFO] [stderr] --> src/ping_client3.rs:26:29 [INFO] [stderr] | [INFO] [stderr] 26 | let transport = libp2p::CommonTransport::new() [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`, `mplex`, `yamux` [INFO] [stderr] --> src/ping_client3.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 11 | mplex, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 12 | yamux, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 13 | tokio_codec::{FramedRead, LinesCodec} [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope [INFO] [stderr] --> src/ping_client3.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | .with_upgrade(secio::SecioConfig::new(local_key)) [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope [INFO] [stderr] --> src/chat.rs:76:10 [INFO] [stderr] | [INFO] [stderr] 76 | .with_upgrade(secio::SecioConfig::new(local_key)) [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied [INFO] [stderr] --> src/ping_client3.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/chat.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope [INFO] [stderr] --> src/chat.rs:80:58 [INFO] [stderr] | [INFO] [stderr] 80 | upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt` [INFO] [stderr] `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 57 | use crate::libp2p::futures::Future; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/chat.rs:112:9 [INFO] [stderr] | [INFO] [stderr] 112 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` in the current scope [INFO] [stderr] --> src/ping_client3.rs:34:53 [INFO] [stderr] | [INFO] [stderr] 34 | upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error()) [INFO] [stderr] | ^^^^^^^ method not found in `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `&libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] `&mut libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `&mut libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt` [INFO] [stderr] `libp2p::futures::future::Either, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 6 | use crate::libp2p::futures::Future; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied [INFO] [stderr] --> src/ping_client3.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stderr] --> src/chat.rs:138:16 [INFO] [stderr] | [INFO] [stderr] 138 | tokio::run(futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected closure that takes 1 argument [INFO] [stderr] | [INFO] [stderr] help: consider changing the closure to take and ignore the expected argument [INFO] [stderr] | [INFO] [stderr] 138 | tokio::run(futures::future::poll_fn(move |_| { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::tokio_codec::FramedRead` in the current scope [INFO] [stderr] --> src/chat.rs:140:32 [INFO] [stderr] | [INFO] [stderr] 140 | match framed_stdin.poll().expect("Error while polling stdin") { [INFO] [stderr] | ^^^^ method not found in `libp2p::tokio_codec::FramedRead` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 57 | use crate::libp2p::futures::Stream; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `floodsub` on type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` [INFO] [stderr] --> src/chat.rs:141:51 [INFO] [stderr] | [INFO] [stderr] 141 | Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()), [INFO] [stderr] | ^^^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stderr] --> src/ping_client3.rs:66:16 [INFO] [stderr] | [INFO] [stderr] 66 | let task = futures::future::poll_fn(move || -> Result<_, ()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments [INFO] [stderr] | | [INFO] [stderr] | expected closure that takes 1 argument [INFO] [stderr] | [INFO] [stderr] help: consider changing the closure to take and ignore the expected argument [INFO] [stderr] | [INFO] [stderr] 66 | let task = futures::future::poll_fn(move |_| { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope [INFO] [stderr] --> src/ping_client3.rs:68:25 [INFO] [stderr] | [INFO] [stderr] 68 | match swarm.poll().expect("Error while polling swarm") { [INFO] [stderr] | ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` [INFO] [stderr] | [INFO] [stderr] = note: swarm is a function, perhaps you wish to call it [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::prelude` [INFO] [stderr] --> src/chat.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | use futures::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::prelude` [INFO] [stderr] --> src/ping_client3.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use futures::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Transport` [INFO] [stderr] --> src/ping_client3.rs:8:23 [INFO] [stderr] | [INFO] [stderr] 8 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Transport` [INFO] [stderr] --> src/chat.rs:59:23 [INFO] [stderr] | [INFO] [stderr] 59 | NetworkBehaviour, Transport, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: aborting due to 19 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603, E0609. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `learn-libp2p`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "91eb7047e7b7a3e0afbdf3430a631826df522cf873d369feded53742f139d6b1"` [INFO] running `"docker" "rm" "-f" "91eb7047e7b7a3e0afbdf3430a631826df522cf873d369feded53742f139d6b1"` [INFO] [stdout] 91eb7047e7b7a3e0afbdf3430a631826df522cf873d369feded53742f139d6b1