[INFO] cloning repository https://github.com/wrchipman/rust-p2p-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wrchipman/rust-p2p-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwrchipman%2Frust-p2p-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwrchipman%2Frust-p2p-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32003d5de6b9dfb528f2cc3b390e21dd00fd980c [INFO] testing wrchipman/rust-p2p-example against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwrchipman%2Frust-p2p-example" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wrchipman/rust-p2p-example on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wrchipman/rust-p2p-example [INFO] finished tweaking git repo https://github.com/wrchipman/rust-p2p-example [INFO] tweaked toml for git repo https://github.com/wrchipman/rust-p2p-example written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/wrchipman/rust-p2p-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 03cc230b19630d2fd313f72ceb0f075d33aeb7e8b6639e12d3d26884b77351d6 [INFO] running `Command { std: "docker" "start" "-a" "03cc230b19630d2fd313f72ceb0f075d33aeb7e8b6639e12d3d26884b77351d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "03cc230b19630d2fd313f72ceb0f075d33aeb7e8b6639e12d3d26884b77351d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03cc230b19630d2fd313f72ceb0f075d33aeb7e8b6639e12d3d26884b77351d6", kill_on_drop: false }` [INFO] [stdout] 03cc230b19630d2fd313f72ceb0f075d33aeb7e8b6639e12d3d26884b77351d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 434bff1f95094e050e33c807c31eefc6f4df47977091c2f724c92c203234d782 [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" "434bff1f95094e050e33c807c31eefc6f4df47977091c2f724c92c203234d782", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling signature v1.5.0 [INFO] [stderr] Compiling asn1_der v0.7.5 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling tokio v0.3.7 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling ed25519 v1.3.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling which v4.2.2 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling if-addrs v0.6.7 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling quicksink v0.1.2 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling prost-build v0.8.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling snow v0.8.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling salsa20 v0.8.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.5.0 [INFO] [stderr] Compiling cuckoofilter v0.5.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling prost-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling minicbor-derive v0.6.4 [INFO] [stderr] Compiling tokio-macros v0.3.2 [INFO] [stderr] Compiling libp2p-swarm-derive v0.24.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling js-sys v0.3.55 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling x25519-dalek v1.2.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tokio v1.15.0 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling if-watch v0.2.2 [INFO] [stderr] Compiling prost v0.8.0 [INFO] [stderr] Compiling minicbor v0.8.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling prost-types v0.8.0 [INFO] [stderr] Compiling multihash-derive v0.7.2 [INFO] [stderr] Compiling futures-rustls v0.21.1 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.28 [INFO] [stderr] Compiling futures-executor v0.3.19 [INFO] [stderr] Compiling asynchronous-codec v0.6.0 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling futures v0.3.19 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling wasm-timer v0.2.5 [INFO] [stderr] Compiling soketto v0.4.2 [INFO] [stderr] Compiling yamux v0.9.0 [INFO] [stderr] Compiling libp2p-pnet v0.21.0 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling libp2p-core v0.29.0 [INFO] [stderr] Compiling libp2p-noise v0.32.0 [INFO] [stderr] Compiling libp2p-plaintext v0.29.0 [INFO] [stderr] Compiling libp2p-identify v0.30.0 [INFO] [stderr] Compiling libp2p-kad v0.31.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.32.0 [INFO] [stderr] Compiling libp2p-floodsub v0.30.0 [INFO] [stderr] Compiling libp2p-relay v0.3.0 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Compiling async-std-resolver v0.20.3 [INFO] [stderr] Compiling libp2p-swarm v0.30.0 [INFO] [stderr] Compiling libp2p-tcp v0.29.0 [INFO] [stderr] Compiling libp2p-uds v0.29.0 [INFO] [stderr] Compiling libp2p-deflate v0.29.0 [INFO] [stderr] Compiling libp2p-websocket v0.30.0 [INFO] [stderr] Compiling libp2p-yamux v0.33.0 [INFO] [stderr] Compiling libp2p-dns v0.29.0 [INFO] [stderr] Compiling libp2p-mplex v0.29.0 [INFO] [stderr] Compiling libp2p-wasm-ext v0.29.0 [INFO] [stderr] Compiling libp2p-mdns v0.31.0 [INFO] [stderr] Compiling libp2p-ping v0.30.0 [INFO] [stderr] Compiling libp2p-request-response v0.12.0 [INFO] [stderr] Compiling libp2p v0.39.1 [INFO] [stderr] Compiling rust-p2p-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: character literal may only contain one codepoint [INFO] [stdout] --> src/main.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | type Result = std::result::Result>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if you meant to write a `str` literal, use double quotes [INFO] [stdout] | [INFO] [stdout] 3 | type Result = std::result::Result>; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `,` or `>`, found `:` [INFO] [stdout] --> src/main.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | type Result = std::result::Result>; [INFO] [stdout] | ^ expected one of `,` or `>` [INFO] [stdout] | [INFO] [stdout] help: expressions must be enclosed in braces to be used as const generic arguments [INFO] [stdout] | [INFO] [stdout] 3 | type Result = std::result::Result>; [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected pattern, found `}` [INFO] [stdout] --> src/main.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | } [INFO] [stdout] | ^ expected pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of input, expected one of: `::`, `<`, `_`, literal, `const`, `ref`, `mut`, `&`, parentheses, square brackets, `..`, `const` [INFO] [stdout] --> src/main.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity` [INFO] [stdout] --> src/main.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `identity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Topic` [INFO] [stdout] --> src/main.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | static TOPIC: Lazy = Lazy::new(|| Topic::new("recipes")); [INFO] [stdout] | ^^^^^ use of undeclared type `Topic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lazy` in this scope [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lazy` [INFO] [stdout] --> src/main.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity` [INFO] [stdout] --> src/main.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] | ^^^^^^^ not found in `identity` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::identity::Keypair; [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::identity::ed25519::Keypair; [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::identity::rsa::Keypair; [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::identity::secp256k1::Keypair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lazy` in this scope [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PeerId` in this scope [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::PeerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lazy` [INFO] [stdout] --> src/main.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PeerId` [INFO] [stdout] --> src/main.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | static PEER_ID: Lazy = Lazy::new(|| PeerId::from(KEYS.public())); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use libp2p::PeerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lazy` in this scope [INFO] [stdout] --> src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | static TOPIC: Lazy = Lazy::new(|| Topic::new("recipes")); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Topic` in this scope [INFO] [stdout] --> src/main.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | static TOPIC: Lazy = Lazy::new(|| Topic::new("recipes")); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lazy` [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | static TOPIC: Lazy = Lazy::new(|| Topic::new("recipes")); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::sync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use once_cell::unsync::Lazy; [INFO] [stdout] | [INFO] [stdout] 1 | use std::lazy::Lazy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_p2p_example` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / const STORAGE_FILE_PATH: &str = "./recipes.json"; [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | type Result = std::result::Result>; [INFO] [stdout] 4 | | static KEYS: Lazy = Lazy::new(|| identity::Keypair::generate_ed25519()); [INFO] [stdout] ... | [INFO] [stdout] 51 | | let [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0747]: constant provided when a type was expected [INFO] [stdout] --> src/main.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | type Result = std::result::Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0601, E0747. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-p2p-example` due to 27 previous errors [INFO] running `Command { std: "docker" "inspect" "434bff1f95094e050e33c807c31eefc6f4df47977091c2f724c92c203234d782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "434bff1f95094e050e33c807c31eefc6f4df47977091c2f724c92c203234d782", kill_on_drop: false }` [INFO] [stdout] 434bff1f95094e050e33c807c31eefc6f4df47977091c2f724c92c203234d782