[INFO] fetching crate shopsavvy-sdk 1.0.0... [INFO] testing shopsavvy-sdk-1.0.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate shopsavvy-sdk 1.0.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate shopsavvy-sdk 1.0.0 [INFO] finished tweaking crates.io crate shopsavvy-sdk 1.0.0 [INFO] tweaked toml for crates.io crate shopsavvy-sdk 1.0.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate shopsavvy-sdk 1.0.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate shopsavvy-sdk 1.0.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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6da5b02edfb6ffe8bb6728f20fc2a4ad93086570d75d3f1c4773bc3b9e26d9f [INFO] running `Command { std: "docker" "start" "-a" "b6da5b02edfb6ffe8bb6728f20fc2a4ad93086570d75d3f1c4773bc3b9e26d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6da5b02edfb6ffe8bb6728f20fc2a4ad93086570d75d3f1c4773bc3b9e26d9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6da5b02edfb6ffe8bb6728f20fc2a4ad93086570d75d3f1c4773bc3b9e26d9f", kill_on_drop: false }` [INFO] [stdout] b6da5b02edfb6ffe8bb6728f20fc2a4ad93086570d75d3f1c4773bc3b9e26d9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2e049e48b05a8dba7c5c3eeaccd18bf718deea23b748c3165c72a7764e2e2cd [INFO] running `Command { std: "docker" "start" "-a" "b2e049e48b05a8dba7c5c3eeaccd18bf718deea23b748c3165c72a7764e2e2cd", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling shopsavvy-sdk v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "b2e049e48b05a8dba7c5c3eeaccd18bf718deea23b748c3165c72a7764e2e2cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2e049e48b05a8dba7c5c3eeaccd18bf718deea23b748c3165c72a7764e2e2cd", kill_on_drop: false }` [INFO] [stdout] b2e049e48b05a8dba7c5c3eeaccd18bf718deea23b748c3165c72a7764e2e2cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6622fd5f6d0bf62f89c7bb99cba898739bb8df468f3bb7b2ccc0b5bfec608978 [INFO] running `Command { std: "docker" "start" "-a" "6622fd5f6d0bf62f89c7bb99cba898739bb8df468f3bb7b2ccc0b5bfec608978", kill_on_drop: false }` [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling shopsavvy-sdk v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 44.93s [INFO] running `Command { std: "docker" "inspect" "6622fd5f6d0bf62f89c7bb99cba898739bb8df468f3bb7b2ccc0b5bfec608978", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6622fd5f6d0bf62f89c7bb99cba898739bb8df468f3bb7b2ccc0b5bfec608978", kill_on_drop: false }` [INFO] [stdout] 6622fd5f6d0bf62f89c7bb99cba898739bb8df468f3bb7b2ccc0b5bfec608978 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9e652f4f597e066bff296066e8c3cb47c3c34463ec618d4cf3bfde32d11c6ff2 [INFO] running `Command { std: "docker" "start" "-a" "9e652f4f597e066bff296066e8c3cb47c3c34463ec618d4cf3bfde32d11c6ff2", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/shopsavvy_sdk-9e819e9093b827f7) [INFO] [stderr] Doc-tests shopsavvy_sdk [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] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/client.rs - client::Client::new (line 26) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_price_history (line 229) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_current_offers (line 177) ... FAILED [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::schedule_product_monitoring (line 268) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_usage (line 338) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_scheduled_products (line 307) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_product_details_batch (line 148) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_product_details (line 123) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::with_config (line 44) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::Client::new (line 26) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `shopsavvy_data_api` [INFO] [stdout] --> src/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use shopsavvy_data_api::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `shopsavvy_data_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `shopsavvy_data_api`, use `cargo add shopsavvy_data_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::get_price_history (line 229) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:230:15 [INFO] [stdout] | [INFO] [stdout] 230 | let history = client.get_price_history( [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/client.rs:236:3 [INFO] [stdout] | [INFO] [stdout] 229 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_229_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 236 | ).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/client.rs - client::Client::get_current_offers (line 177) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 178 | let offers = client.get_current_offers("012345678901", None, None).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/client.rs:178:68 [INFO] [stdout] | [INFO] [stdout] 177 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_177_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 178 | let offers = client.get_current_offers("012345678901", None, None).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 - (line 8) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `shopsavvy_data_api` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use shopsavvy_data_api::{Client, Config}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `shopsavvy_data_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `shopsavvy_data_api`, use `cargo add shopsavvy_data_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::schedule_product_monitoring (line 268) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | let result = client.schedule_product_monitoring( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MonitoringFrequency` [INFO] [stdout] --> src/client.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | MonitoringFrequency::Daily, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MonitoringFrequency` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 268 + use shopsavvy_sdk::MonitoringFrequency; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:273:3 [INFO] [stdout] | [INFO] [stdout] 268 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_268_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 273 | ).await?; [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/client.rs - client::Client::get_usage (line 338) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | let usage = client.get_usage().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/client.rs:339:32 [INFO] [stdout] | [INFO] [stdout] 338 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_338_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 339 | let usage = client.get_usage().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/client.rs - client::Client::get_scheduled_products (line 307) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:308:17 [INFO] [stdout] | [INFO] [stdout] 308 | let scheduled = client.get_scheduled_products().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/client.rs:308:49 [INFO] [stdout] | [INFO] [stdout] 307 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_307_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 308 | let scheduled = client.get_scheduled_products().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/client.rs - client::Client::get_product_details_batch (line 148) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:149:16 [INFO] [stdout] | [INFO] [stdout] 149 | let products = client.get_product_details_batch( [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/client.rs:152:3 [INFO] [stdout] | [INFO] [stdout] 148 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_148_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 152 | ).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/client.rs - client::Client::get_product_details (line 123) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | let product = client.get_product_details("012345678901", None).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/client.rs:124:64 [INFO] [stdout] | [INFO] [stdout] 123 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_123_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 124 | let product = client.get_product_details("012345678901", None).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/client.rs - client::Client::with_config (line 44) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `shopsavvy_data_api` [INFO] [stdout] --> src/client.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use shopsavvy_data_api::{Client, Config}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `shopsavvy_data_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `shopsavvy_data_api`, use `cargo add shopsavvy_data_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Client::get_current_offers (line 177) [INFO] [stdout] src/client.rs - client::Client::get_price_history (line 229) [INFO] [stdout] src/client.rs - client::Client::get_product_details (line 123) [INFO] [stdout] src/client.rs - client::Client::get_product_details_batch (line 148) [INFO] [stdout] src/client.rs - client::Client::get_scheduled_products (line 307) [INFO] [stdout] src/client.rs - client::Client::get_usage (line 338) [INFO] [stdout] src/client.rs - client::Client::new (line 26) [INFO] [stdout] src/client.rs - client::Client::schedule_product_monitoring (line 268) [INFO] [stdout] src/client.rs - client::Client::with_config (line 44) [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.72s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9e652f4f597e066bff296066e8c3cb47c3c34463ec618d4cf3bfde32d11c6ff2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e652f4f597e066bff296066e8c3cb47c3c34463ec618d4cf3bfde32d11c6ff2", kill_on_drop: false }` [INFO] [stdout] 9e652f4f597e066bff296066e8c3cb47c3c34463ec618d4cf3bfde32d11c6ff2