[INFO] cloning repository https://github.com/dinxsh/prustdb
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dinxsh/prustdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinxsh%2Fprustdb", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinxsh%2Fprustdb'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3128d19e28354894a957d11da8a3be3365e218a4
[INFO] checking dinxsh/prustdb/3128d19e28354894a957d11da8a3be3365e218a4 against master#f2c70877a7dbc51cd98e2d5d25209b24d4a586d5 for pr-150097
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinxsh%2Fprustdb" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dinxsh/prustdb
[INFO] finished tweaking git repo https://github.com/dinxsh/prustdb
[INFO] tweaked toml for git repo https://github.com/dinxsh/prustdb written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dinxsh/prustdb on toolchain f2c70877a7dbc51cd98e2d5d25209b24d4a586d5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2c70877a7dbc51cd98e2d5d25209b24d4a586d5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dinxsh/prustdb already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2c70877a7dbc51cd98e2d5d25209b24d4a586d5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded async-trait v0.1.82
[INFO] [stderr]   Downloaded rocket_http v0.5.1
[INFO] [stderr]   Downloaded tokio-stream v0.1.16
[INFO] [stderr]   Downloaded rocket_codegen v0.5.1
[INFO] [stderr]   Downloaded rocket v0.5.1
[INFO] [stderr]   Downloaded rustix v0.38.36
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f2c70877a7dbc51cd98e2d5d25209b24d4a586d5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3f34b9b66270ddf2a05d32dc802b3614dabb93cad4b153e44a72e70a261272a9
[INFO] running `Command { std: "docker" "start" "-a" "3f34b9b66270ddf2a05d32dc802b3614dabb93cad4b153e44a72e70a261272a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3f34b9b66270ddf2a05d32dc802b3614dabb93cad4b153e44a72e70a261272a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3f34b9b66270ddf2a05d32dc802b3614dabb93cad4b153e44a72e70a261272a9", kill_on_drop: false }`
[INFO] [stdout] 3f34b9b66270ddf2a05d32dc802b3614dabb93cad4b153e44a72e70a261272a9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f2c70877a7dbc51cd98e2d5d25209b24d4a586d5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 86aec30c9ee58004317d4031f6cc5f3509c673883cb8d43bf20cc04e28a4b74b
[INFO] running `Command { std: "docker" "start" "-a" "86aec30c9ee58004317d4031f6cc5f3509c673883cb8d43bf20cc04e28a4b74b", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling libc v0.2.158
[INFO] [stderr]    Compiling serde v1.0.210
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]     Checking futures-core v0.3.30
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.10.1
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]     Checking futures-io v0.3.30
[INFO] [stderr]    Compiling ref-cast v1.0.23
[INFO] [stderr]    Compiling time-macros v0.2.18
[INFO] [stderr]     Checking futures-task v0.3.30
[INFO] [stderr]     Checking futures-channel v0.3.30
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]    Compiling uncased v0.9.10
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking inlinable_string v0.1.15
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking mio v1.0.2
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking is-terminal v0.4.13
[INFO] [stderr]    Compiling syn v2.0.77
[INFO] [stderr]     Checking yansi v1.0.1
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]     Checking winnow v0.6.18
[INFO] [stderr]    Compiling rustix v0.38.36
[INFO] [stderr]    Compiling stable-pattern v0.1.0
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling figment v0.10.19
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling state v0.6.0
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]    Compiling time v0.3.36
[INFO] [stderr]     Checking http v1.1.0
[INFO] [stderr]    Compiling tokio v1.40.0
[INFO] [stderr]     Checking encoding_rs v0.8.34
[INFO] [stderr]    Compiling indexmap v2.5.0
[INFO] [stderr]    Compiling rocket v0.5.1
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking fastrand v2.1.1
[INFO] [stderr]    Compiling unicode-xid v0.2.5
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking atomic v0.5.3
[INFO] [stderr]     Checking binascii v0.1.4
[INFO] [stderr]    Compiling futures v0.3.30
[INFO] [stderr]     Checking tempfile v3.12.0
[INFO] [stderr]    Compiling hyper v0.14.30
[INFO] [stderr]    Compiling devise_core v0.4.2
[INFO] [stderr]    Compiling serde_derive v1.0.210
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling pear_codegen v0.2.9
[INFO] [stderr]    Compiling ref-cast-impl v1.0.23
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]    Compiling async-trait v0.1.82
[INFO] [stderr]     Checking async-stream v0.3.5
[INFO] [stderr]     Checking pear v0.2.9
[INFO] [stderr]    Compiling devise_codegen v0.4.2
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]    Compiling devise v0.4.2
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling rocket_http v0.5.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking tokio-util v0.7.12
[INFO] [stderr]     Checking tokio-stream v0.1.16
[INFO] [stderr]    Compiling rocket_codegen v0.5.1
[INFO] [stderr]     Checking toml_datetime v0.6.8
[INFO] [stderr]     Checking serde_spanned v0.6.7
[INFO] [stderr]     Checking ubyte v0.10.4
[INFO] [stderr]     Checking toml_edit v0.22.20
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking toml v0.8.19
[INFO] [stderr]     Checking p2p_key_db v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use libp2p::kad::{Kademlia, KademliaConfig};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use libp2p::tcp::TcpConfig;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use libp2p::core::transport::Transport;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use libp2p::noise::{Keypair, NoiseConfig, X25519Spec};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::yamux::YamuxConfig;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use libp2p::swarm::SwarmBuilder;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `libp2p`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use libp2p::{identity, PeerId, Swarm};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `sled`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use sled::Db;
[INFO] [stdout]    |     ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]   --> src/main.rs:12:3
[INFO] [stdout]    |
[INFO] [stdout] 12 | #[tokio::main]
[INFO] [stdout]    |   ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   --> src/main.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |         .upgrade(libp2p::core::upgrade::Version::V1)
[INFO] [stdout]    |                  ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  1 + use rocket::http::hyper::Version;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Version`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 25 -         .upgrade(libp2p::core::upgrade::Version::V1)
[INFO] [stdout] 25 +         .upgrade(Version::V1)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]   --> src/main.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |             tokio::spawn(fut);
[INFO] [stdout]    |             ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]    |
[INFO] [stdout]  1 + use rocket::tokio;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:15:35
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let db = Arc::new(RwLock::new(sled::open("prustdb_data")?));
[INFO] [stdout]    |                                   ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]   --> src/main.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | async fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use libp2p::kad::{Kademlia, KademliaConfig};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use libp2p::tcp::TcpConfig;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use libp2p::core::transport::Transport;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use libp2p::noise::{Keypair, NoiseConfig, X25519Spec};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use libp2p::yamux::YamuxConfig;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use libp2p::swarm::SwarmBuilder;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `libp2p`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use libp2p::{identity, PeerId, Swarm};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `sled`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use sled::Db;
[INFO] [stdout]    |     ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]   --> src/main.rs:12:3
[INFO] [stdout]    |
[INFO] [stdout] 12 | #[tokio::main]
[INFO] [stdout]    |   ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]   --> src/main.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |         .upgrade(libp2p::core::upgrade::Version::V1)
[INFO] [stdout]    |                  ^^^^^^ use of unresolved module or unlinked crate `libp2p`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `libp2p`, use `cargo add libp2p` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  1 + use rocket::http::hyper::Version;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Version`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 25 -         .upgrade(libp2p::core::upgrade::Version::V1)
[INFO] [stdout] 25 +         .upgrade(Version::V1)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]   --> src/main.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |             tokio::spawn(fut);
[INFO] [stdout]    |             ^^^^^ use of unresolved module or unlinked crate `tokio`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]    |
[INFO] [stdout]  1 + use rocket::tokio;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:15:35
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let db = Arc::new(RwLock::new(sled::open("prustdb_data")?));
[INFO] [stdout]    |                                   ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/main.rs:59:42
[INFO] [stdout]    |
[INFO] [stdout] 59 |     Ok(db.read().unwrap().get(key)?.map(|ivec| ivec.to_vec()))
[INFO] [stdout]    |                                          ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 59 |     Ok(db.read().unwrap().get(key)?.map(|ivec: /* Type */| ivec.to_vec()))
[INFO] [stdout]    |                                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:58:68
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn get(db: Arc<RwLock<Db>>, key: &[u8]) -> Result<Option<Vec<u8>>, sled::Error> {
[INFO] [stdout]    |                                                                    ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:53:69
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn set(db: Arc<RwLock<Db>>, key: &[u8], value: &[u8]) -> Result<(), sled::Error> {
[INFO] [stdout]    |                                                                     ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `p2p_key_db` (bin "p2p_key_db") due to 16 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/main.rs:59:42
[INFO] [stdout]    |
[INFO] [stdout] 59 |     Ok(db.read().unwrap().get(key)?.map(|ivec| ivec.to_vec()))
[INFO] [stdout]    |                                          ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 59 |     Ok(db.read().unwrap().get(key)?.map(|ivec: /* Type */| ivec.to_vec()))
[INFO] [stdout]    |                                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:58:68
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn get(db: Arc<RwLock<Db>>, key: &[u8]) -> Result<Option<Vec<u8>>, sled::Error> {
[INFO] [stdout]    |                                                                    ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `sled`
[INFO] [stdout]   --> src/main.rs:53:69
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn set(db: Arc<RwLock<Db>>, key: &[u8], value: &[u8]) -> Result<(), sled::Error> {
[INFO] [stdout]    |                                                                     ^^^^ use of unresolved module or unlinked crate `sled`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `sled`, use `cargo add sled` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `p2p_key_db` (bin "p2p_key_db" test) due to 15 previous errors
[INFO] running `Command { std: "docker" "inspect" "86aec30c9ee58004317d4031f6cc5f3509c673883cb8d43bf20cc04e28a4b74b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "86aec30c9ee58004317d4031f6cc5f3509c673883cb8d43bf20cc04e28a4b74b", kill_on_drop: false }`
[INFO] [stdout] 86aec30c9ee58004317d4031f6cc5f3509c673883cb8d43bf20cc04e28a4b74b
