[INFO] fetching crate wirekvs 0.1.0... [INFO] testing wirekvs-0.1.0 against 1.90.0 for beta-1.91-3 [INFO] extracting crate wirekvs 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate wirekvs 0.1.0 [INFO] finished tweaking crates.io crate wirekvs 0.1.0 [INFO] tweaked toml for crates.io crate wirekvs 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate wirekvs 0.1.0 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate wirekvs 0.1.0 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tungstenite v0.26.1 [INFO] [stderr] Downloaded data-encoding v2.7.0 [INFO] [stderr] Downloaded httparse v1.10.0 [INFO] [stderr] Downloaded tempfile v3.16.0 [INFO] [stderr] Downloaded native-tls v0.2.13 [INFO] [stderr] Downloaded thiserror v2.0.11 [INFO] [stderr] Downloaded tokio-tungstenite v0.26.1 [INFO] [stderr] Downloaded cc v1.2.10 [INFO] [stderr] Downloaded thiserror-impl v2.0.11 [INFO] [stderr] Downloaded openssl v0.10.69 [INFO] [stderr] Downloaded rustls v0.23.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b16d06e5d1f2584a0024f974de0c98c1da7c2dfb3bd61962ab0eeda39d61850 [INFO] running `Command { std: "docker" "start" "-a" "1b16d06e5d1f2584a0024f974de0c98c1da7c2dfb3bd61962ab0eeda39d61850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b16d06e5d1f2584a0024f974de0c98c1da7c2dfb3bd61962ab0eeda39d61850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b16d06e5d1f2584a0024f974de0c98c1da7c2dfb3bd61962ab0eeda39d61850", kill_on_drop: false }` [INFO] [stdout] 1b16d06e5d1f2584a0024f974de0c98c1da7c2dfb3bd61962ab0eeda39d61850 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3e8f4c93df8f4950808510090e3c4aff7d5bb1694e672f54768b12342570572 [INFO] running `Command { std: "docker" "start" "-a" "f3e8f4c93df8f4950808510090e3c4aff7d5bb1694e672f54768b12342570572", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling openssl v0.10.69 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tungstenite v0.26.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.26.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling wirekvs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.92s [INFO] running `Command { std: "docker" "inspect" "f3e8f4c93df8f4950808510090e3c4aff7d5bb1694e672f54768b12342570572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3e8f4c93df8f4950808510090e3c4aff7d5bb1694e672f54768b12342570572", kill_on_drop: false }` [INFO] [stdout] f3e8f4c93df8f4950808510090e3c4aff7d5bb1694e672f54768b12342570572 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6506d91bb359f12e36f97889876d34ee3d71f2075f04705248c3e7ad909bd106 [INFO] running `Command { std: "docker" "start" "-a" "6506d91bb359f12e36f97889876d34ee3d71f2075f04705248c3e7ad909bd106", kill_on_drop: false }` [INFO] [stderr] Compiling wirekvs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "6506d91bb359f12e36f97889876d34ee3d71f2075f04705248c3e7ad909bd106", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6506d91bb359f12e36f97889876d34ee3d71f2075f04705248c3e7ad909bd106", kill_on_drop: false }` [INFO] [stdout] 6506d91bb359f12e36f97889876d34ee3d71f2075f04705248c3e7ad909bd106 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5ece1994576e64d29191069622036fe53f867f14e162bb47a9688a3a4928af12 [INFO] running `Command { std: "docker" "start" "-a" "5ece1994576e64d29191069622036fe53f867f14e162bb47a9688a3a4928af12", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wirekvs-f47cc17a247c4507) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/wirekvs-a8f6361472f3cc25) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests wirekvs [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/lib.rs - WireKVSDatabase::get (line 74) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVS::create_database (line 176) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVSDatabase::subscribe (line 126) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVS::database (line 219) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVSDatabase::set (line 93) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVSDatabase::get_all_entries (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVSDatabase::new (line 23) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVS::list_databases (line 157) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVSDatabase::delete (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVS::new (line 147) ... FAILED [INFO] [stdout] test src/lib.rs - WireKVS::delete_database (line 203) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::get (line 74) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `db` in this scope [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 3 | let value = db.get("my-key").await.unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_74_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let value = db.get("my-key").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVS::create_database (line 176) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/lib.rs:177:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut config = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 5 | let db = client.create_database("My Database", config).await.unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:179:56 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_176_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | let db = client.create_database("My Database", config).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::subscribe (line 126) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `db` in this scope [INFO] [stdout] --> src/lib.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rx = db.subscribe(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVS::database (line 219) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:220:10 [INFO] [stdout] | [INFO] [stdout] 3 | let db = client.database("database-id".to_string(), "access-key".to_string()).await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:220:79 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_219_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | let db = client.database("database-id".to_string(), "access-key".to_string()).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::set (line 93) stdout ---- [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 3 | db.set("greeting", json!("Hello!")).await.unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::json; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `db` in this scope [INFO] [stdout] --> src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 3 | db.set("greeting", json!("Hello!")).await.unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_93_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | db.set("greeting", json!("Hello!")).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::get_all_entries (line 55) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `db` in this scope [INFO] [stdout] --> src/lib.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 3 | let entries = db.get_all_entries().await.unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_55_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let entries = db.get_all_entries().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::new (line 23) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WireKVSDatabase` [INFO] [stdout] --> src/lib.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 3 | let db = WireKVSDatabase::new("database-id".to_string(), "access-key".to_string()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `WireKVSDatabase` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wirekvs::WireKVSDatabase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:24:84 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_23_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let db = WireKVSDatabase::new("database-id".to_string(), "access-key".to_string()).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVS::list_databases (line 157) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 3 | let databases = client.list_databases().await.unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:158:41 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_157_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | let databases = client.list_databases().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVSDatabase::delete (line 110) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `db` in this scope [INFO] [stdout] --> src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 3 | db.delete("my-key").await.unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_110_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | db.delete("my-key").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVS::new (line 147) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WireKVS` [INFO] [stdout] --> src/lib.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = WireKVS::new("auth-token".to_string()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `WireKVS` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wirekvs::WireKVS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - WireKVS::delete_database (line 203) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 3 | client.delete_database("database-id").await.unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:204:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_203_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | client.delete_database("database-id").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - WireKVS::create_database (line 176) [INFO] [stdout] src/lib.rs - WireKVS::database (line 219) [INFO] [stdout] src/lib.rs - WireKVS::delete_database (line 203) [INFO] [stdout] src/lib.rs - WireKVS::list_databases (line 157) [INFO] [stdout] src/lib.rs - WireKVS::new (line 147) [INFO] [stdout] src/lib.rs - WireKVSDatabase::delete (line 110) [INFO] [stdout] src/lib.rs - WireKVSDatabase::get (line 74) [INFO] [stdout] src/lib.rs - WireKVSDatabase::get_all_entries (line 55) [INFO] [stdout] src/lib.rs - WireKVSDatabase::new (line 23) [INFO] [stdout] src/lib.rs - WireKVSDatabase::set (line 93) [INFO] [stdout] src/lib.rs - WireKVSDatabase::subscribe (line 126) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5ece1994576e64d29191069622036fe53f867f14e162bb47a9688a3a4928af12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ece1994576e64d29191069622036fe53f867f14e162bb47a9688a3a4928af12", kill_on_drop: false }` [INFO] [stdout] 5ece1994576e64d29191069622036fe53f867f14e162bb47a9688a3a4928af12