[INFO] fetching crate lemonsqueezy 0.1.3... [INFO] testing lemonsqueezy-0.1.3 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate lemonsqueezy 0.1.3 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate lemonsqueezy 0.1.3 [INFO] finished tweaking crates.io crate lemonsqueezy 0.1.3 [INFO] tweaked toml for crates.io crate lemonsqueezy 0.1.3 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lemonsqueezy 0.1.3 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate lemonsqueezy 0.1.3 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74b5cb57d12c155e940d1236c9b5c30557026a0e76b9723023ec45a8072280e9 [INFO] running `Command { std: "docker" "start" "-a" "74b5cb57d12c155e940d1236c9b5c30557026a0e76b9723023ec45a8072280e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74b5cb57d12c155e940d1236c9b5c30557026a0e76b9723023ec45a8072280e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74b5cb57d12c155e940d1236c9b5c30557026a0e76b9723023ec45a8072280e9", kill_on_drop: false }` [INFO] [stdout] 74b5cb57d12c155e940d1236c9b5c30557026a0e76b9723023ec45a8072280e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 646e047ab25425176f6621ce3249abeff55d54d9c170cb6bf9359456405a9387 [INFO] running `Command { std: "docker" "start" "-a" "646e047ab25425176f6621ce3249abeff55d54d9c170cb6bf9359456405a9387", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [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.46.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [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 serde v1.0.219 [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 tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [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 lemonsqueezy v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.72s [INFO] running `Command { std: "docker" "inspect" "646e047ab25425176f6621ce3249abeff55d54d9c170cb6bf9359456405a9387", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "646e047ab25425176f6621ce3249abeff55d54d9c170cb6bf9359456405a9387", kill_on_drop: false }` [INFO] [stdout] 646e047ab25425176f6621ce3249abeff55d54d9c170cb6bf9359456405a9387 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d217b0e07b16e7aa758144fe0b98e400461013b99092a46aaefafefd505018fe [INFO] running `Command { std: "docker" "start" "-a" "d217b0e07b16e7aa758144fe0b98e400461013b99092a46aaefafefd505018fe", kill_on_drop: false }` [INFO] [stderr] Compiling lemonsqueezy v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.27s [INFO] running `Command { std: "docker" "inspect" "d217b0e07b16e7aa758144fe0b98e400461013b99092a46aaefafefd505018fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d217b0e07b16e7aa758144fe0b98e400461013b99092a46aaefafefd505018fe", kill_on_drop: false }` [INFO] [stdout] d217b0e07b16e7aa758144fe0b98e400461013b99092a46aaefafefd505018fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e3e7473fba9a57a9303761d20de074dd5ead2dfad426cbba127d5ef1f5c03841 [INFO] running `Command { std: "docker" "start" "-a" "e3e7473fba9a57a9303761d20de074dd5ead2dfad426cbba127d5ef1f5c03841", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lemonsqueezy-e8e1b91f05cb637c) [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] Doc-tests lemonsqueezy [INFO] [stdout] [INFO] [stdout] running 51 tests [INFO] [stdout] test src/modules/discount.rs - modules::discount::Discount::delete (line 140) ... FAILED [INFO] [stdout] test src/modules/discount.rs - modules::discount::Discount::retrieve (line 80) ... FAILED [INFO] [stdout] test src/lib.rs - LemonSqueezy::delete (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - LemonSqueezy::post (line 113) ... FAILED [INFO] [stdout] test src/modules/checkout.rs - modules::checkout::Checkout::create (line 90) ... FAILED [INFO] [stdout] test src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::get_all (line 71) ... FAILED [INFO] [stdout] test src/modules/files.rs - modules::files::Files::get_all (line 73) ... FAILED [INFO] [stdout] test src/modules/customer.rs - modules::customer::Customer::get_all (line 77) ... FAILED [INFO] [stdout] test src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::retrieve (line 41) ... FAILED [INFO] [stdout] test src/modules/discount.rs - modules::discount::Discount::get_all (line 106) ... FAILED [INFO] [stdout] test src/modules/checkout.rs - modules::checkout::Checkout::retrieve (line 29) ... FAILED [INFO] [stdout] test src/modules/license_keys.rs - modules::license_keys::LicenseKey::get_all (line 237) ... FAILED [INFO] [stdout] test src/modules/order_items.rs - modules::order_items::OrderItem::get_all (line 72) ... FAILED [INFO] [stdout] test src/modules/orders.rs - modules::orders::Order::get_all (line 106) ... FAILED [INFO] [stdout] test src/modules/license_keys.rs - modules::license_keys::LicenseKey::retrieve (line 211) ... FAILED [INFO] [stdout] test src/lib.rs - LemonSqueezy::patch (line 181) ... FAILED [INFO] [stdout] test src/modules/orders.rs - modules::orders::Order::retrieve (line 81) ... FAILED [INFO] [stdout] test src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::get_all (line 66) ... FAILED [INFO] [stdout] test src/modules/files.rs - modules::files::Files::retrieve (line 45) ... FAILED [INFO] [stdout] test src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::retrieve (line 36) ... FAILED [INFO] [stdout] test src/modules/discount.rs - modules::discount::Discount::create (line 166) ... FAILED [INFO] [stdout] test src/modules/checkout.rs - modules::checkout::Checkout::get_all (line 55) ... FAILED [INFO] [stdout] test src/modules/license_keys.rs - modules::license_keys::LicenseKey::activate (line 112) ... FAILED [INFO] [stdout] test src/modules/products.rs - modules::products::Product::get_all (line 73) ... FAILED [INFO] [stdout] test src/lib.rs - LemonSqueezy::get (line 49) ... FAILED [INFO] [stdout] test src/modules/store.rs - modules::store::Store::get_all (line 75) ... FAILED [INFO] [stdout] test src/modules/customer.rs - modules::customer::Customer::retrieve (line 49) ... FAILED [INFO] [stdout] test src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::get_all (line 102) ... FAILED [INFO] [stdout] test src/modules/order_items.rs - modules::order_items::OrderItem::retrieve (line 47) ... FAILED [INFO] [stdout] test src/modules/store.rs - modules::store::Store::retrieve (line 50) ... FAILED [INFO] [stdout] test src/modules/products.rs - modules::products::Product::retrieve (line 48) ... FAILED [INFO] [stdout] test src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::update (line 155) ... FAILED [INFO] [stdout] test src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::cancel (line 226) ... FAILED [INFO] [stdout] test src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::get_all (line 86) ... FAILED [INFO] [stdout] test src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::retrieve (line 57) ... FAILED [INFO] [stdout] test src/modules/usage_records.rs - modules::usage_records::UsageRecords::create (line 143) ... FAILED [INFO] [stdout] test src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::retrieve (line 71) ... FAILED [INFO] [stdout] test src/modules/user.rs - modules::user::User::retrieve (line 34) ... FAILED [INFO] [stdout] test src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::current_usage (line 184) ... FAILED [INFO] [stdout] test src/modules/webhook.rs - modules::webhook::Webhook::create (line 219) ... FAILED [INFO] [stdout] test src/modules/usage_records.rs - modules::usage_records::UsageRecords::get_all (line 104) ... FAILED [INFO] [stdout] test src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::get_all (line 124) ... FAILED [INFO] [stdout] test src/modules/variants.rs - modules::variants::Variant::get_all (line 82) ... FAILED [INFO] [stdout] test src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::retrieve (line 93) ... FAILED [INFO] [stdout] test src/modules/webhook.rs - modules::webhook::Webhook::update (line 251) ... FAILED [INFO] [stdout] test src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::update (line 195) ... FAILED [INFO] [stdout] test src/modules/variants.rs - modules::variants::Variant::retrieve (line 57) ... FAILED [INFO] [stdout] test src/modules/webhook.rs - modules::webhook::Webhook::retrieve (line 121) ... FAILED [INFO] [stdout] test src/modules/webhook.rs - modules::webhook::Webhook::get_all (line 171) ... FAILED [INFO] [stdout] test src/modules/webhook.rs - modules::webhook::Webhook::delete (line 148) ... FAILED [INFO] [stdout] test src/modules/usage_records.rs - modules::usage_records::UsageRecords::retrieve (line 77) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/modules/discount.rs - modules::discount::Discount::delete (line 140) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount.rs:143:32 [INFO] [stdout] | [INFO] [stdout] 6 | let discount = Discount::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount.rs:144:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_rs_140_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let discount = discount.delete(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/discount.rs - modules::discount::Discount::retrieve (line 80) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 6 | let discount = Discount::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount.rs:84:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_rs_80_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let discount = discount.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LemonSqueezy::delete (line 148) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:153:52 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_148_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | api.delete::("/v1/discounts/1").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:152:11 [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `std::string::String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(/* std::string::String */); [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LemonSqueezy::post (line 113) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:118:52 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_113_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | api.post::("/v1/usage-records").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `std::string::String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(/* std::string::String */); [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 8 | api.post::("/v1/usage-records").await.unwrap(); [INFO] [stdout] | ^^^^ ----------------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `V`, `T` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 119 | pub async fn post serde::Deserialize<'de>, T: serde::ser::Serialize>( [INFO] [stdout] | ^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 8 | api.post::("/v1/usage-records").await.unwrap(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 8 | api.post::("/v1/usage-records").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^--------------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 119 | pub async fn post serde::Deserialize<'de>, T: serde::ser::Serialize>( [INFO] [stdout] | ^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 8 | api.post::("/v1/usage-records", /* body */).await.unwrap(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0107, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/checkout.rs - modules::checkout::Checkout::create (line 90) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/checkout.rs:95:32 [INFO] [stdout] | [INFO] [stdout] 8 | let checkout = Checkout::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/checkout.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_checkout_rs_90_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | }).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `lemonsqueezy::checkout::CreateCheckout` has no field named `store_id` [INFO] [stdout] --> src/modules/checkout.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 10 | store_id: 1, [INFO] [stdout] | ^^^^^^^^ `lemonsqueezy::checkout::CreateCheckout` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `type`, `attributes`, `relationships` [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `lemonsqueezy::checkout::CreateCheckout` has no field named `customer_id` [INFO] [stdout] --> src/modules/checkout.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 11 | customer_id: 1, [INFO] [stdout] | ^^^^^^^^^^^ `lemonsqueezy::checkout::CreateCheckout` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `type`, `attributes`, `relationships` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0560, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::get_all (line 71) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount_redemptions.rs:74:55 [INFO] [stdout] | [INFO] [stdout] 6 | let discount_redemptions = DiscountRedemptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount_redemptions.rs:75:63 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_redemptions_rs_71_0() { [INFO] [stdout] | ----------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let discount_redemptions = discount_redemptions.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/files.rs - modules::files::Files::get_all (line 73) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/files.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 6 | let files = Files::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/files.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_files_rs_73_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let file = files.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/customer.rs - modules::customer::Customer::get_all (line 77) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/customer.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 6 | let customer = Customer::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/customer.rs:81:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_customer_rs_77_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let customer = customer.get_all().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/modules/customer.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 7 | let customer = customer.get_all().await.unwrap(); [INFO] [stdout] | ^^^^^^^-- argument #1 of type `Option` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/modules/customer.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn get_all( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | let customer = customer.get_all(/* Option */).await.unwrap(); [INFO] [stdout] | +++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::retrieve (line 41) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount_redemptions.rs:44:55 [INFO] [stdout] | [INFO] [stdout] 6 | let discount_redemptions = DiscountRedemptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount_redemptions.rs:45:60 [INFO] [stdout] | [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_redemptions_rs_41_0() { [INFO] [stdout] | ----------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let discount_redemption = discount_redemptions.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/discount.rs - modules::discount::Discount::get_all (line 106) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 6 | let discount = Discount::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount.rs:110:39 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_rs_106_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let discount = discount.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/checkout.rs - modules::checkout::Checkout::retrieve (line 29) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/checkout.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 6 | let checkout = Checkout::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/checkout.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_checkout_rs_29_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let checkout = checkout.retrieve(1).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/modules/checkout.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 7 | let checkout = checkout.retrieve(1).await; [INFO] [stdout] | -------- ^ expected `String`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/modules/checkout.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | pub async fn retrieve( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 7 | let checkout = checkout.retrieve(1.to_string()).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/license_keys.rs - modules::license_keys::LicenseKey::get_all (line 237) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/license_keys.rs:240:38 [INFO] [stdout] | [INFO] [stdout] 6 | let license_keys = LicenseKey::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/license_keys.rs:241:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_license_keys_rs_237_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let license_key = license_keys.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/order_items.rs - modules::order_items::OrderItem::get_all (line 72) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/order_items.rs:75:36 [INFO] [stdout] | [INFO] [stdout] 6 | let order_items = OrderItem::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/order_items.rs:76:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_order_items_rs_72_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let order_items = order_items.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/orders.rs - modules::orders::Order::get_all (line 106) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/orders.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 6 | let orders = Order::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/orders.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_orders_rs_106_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let orders = orders.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/license_keys.rs - modules::license_keys::LicenseKey::retrieve (line 211) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/license_keys.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 6 | let license_keys = LicenseKey::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/license_keys.rs:215:44 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_license_keys_rs_211_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let license_key = license_keys.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LemonSqueezy::patch (line 181) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:186:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | api.patch::("/v1/subscriptions/:id").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `std::string::String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(/* std::string::String */); [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `reqwest::async_impl::body::Body: From` is not satisfied [INFO] [stdout] --> src/lib.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 8 | api.patch::("/v1/subscriptions/:id").await.unwrap(); [INFO] [stdout] | ----- ^^^^^^^^^^^^^^^^^ the trait `From` is not implemented for `reqwest::async_impl::body::Body` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From<&[u8]>` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From<&str>` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From>` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From` [INFO] [stdout] `reqwest::async_impl::body::Body` implements `From` [INFO] [stdout] = note: required for `Value` to implement `Into` [INFO] [stdout] note: required by a bound in `LemonSqueezy::patch` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:187:27 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn patch>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ required by this bound in `LemonSqueezy::patch` [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 8 | api.patch::("/v1/subscriptions/:id").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- argument #2 of type `Value` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:187:18 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn patch>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 8 | api.patch::("/v1/subscriptions/:id", /* Value */).await.unwrap(); [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/orders.rs - modules::orders::Order::retrieve (line 81) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/orders.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 6 | let orders = Order::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/orders.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_orders_rs_81_0() { [INFO] [stdout] | --------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let orders = orders.retrieve(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::get_all (line 66) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/license_key_instances.rs:70:56 [INFO] [stdout] | [INFO] [stdout] 7 | let license_key_instances = LicenseKeyInstances::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/license_key_instances.rs:71:65 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_license_key_instances_rs_66_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let license_key_instances = license_key_instances.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/files.rs - modules::files::Files::retrieve (line 45) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `lemonsqueezy::files::File` [INFO] [stdout] --> src/modules/files.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::files::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `File` in `modules::files` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::files::Files; [INFO] [stdout] | + [INFO] [stdout] help: consider importing one of these structs instead [INFO] [stdout] | [INFO] [stdout] 5 - use lemonsqueezy::files::File; [INFO] [stdout] 5 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] 5 - use lemonsqueezy::files::File; [INFO] [stdout] 5 + use tokio::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/files.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 6 | let files = File::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/files.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_files_rs_45_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let file = files.retrieve(123).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: E0423, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::retrieve (line 36) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/license_key_instances.rs:40:56 [INFO] [stdout] | [INFO] [stdout] 7 | let license_key_instances = LicenseKeyInstances::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/license_key_instances.rs:41:62 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_license_key_instances_rs_36_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let license_key_instance = license_key_instances.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/discount.rs - modules::discount::Discount::create (line 166) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/discount.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 6 | let discount = Discount::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/discount.rs:184:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_discount_rs_166_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 21 | let discount = discount.create(data).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/modules/discount.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 17 | store: 1, [INFO] [stdout] | ^ expected `Data`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Data` [INFO] [stdout] found type `{integer}` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/checkout.rs - modules::checkout::Checkout::get_all (line 55) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/checkout.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 6 | let checkout = Checkout::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/checkout.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_checkout_rs_55_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let checkout = checkout.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/license_keys.rs - modules::license_keys::LicenseKey::activate (line 112) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/license_keys.rs:115:38 [INFO] [stdout] | [INFO] [stdout] 6 | let license_keys = LicenseKey::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/license_keys.rs:116:97 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_license_keys_rs_112_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let activation_response = license_keys.activate("38b1460a-5104-4067-a91d-77b872934d51", "Test").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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/products.rs - modules::products::Product::get_all (line 73) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `lemonsqueezy::product` [INFO] [stdout] --> src/modules/products.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::product::Product; [INFO] [stdout] | ^^^^^^^ could not find `product` in `lemonsqueezy` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/products.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 6 | let products = Product::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/products.rs:77:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_products_rs_73_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let product = products.get_all(None).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: E0423, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LemonSqueezy::get (line 49) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_49_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | api.get::("/v1/users/me").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `std::string::String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | let api = LemonSqueezy::new(/* std::string::String */); [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/store.rs - modules::store::Store::get_all (line 75) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/store.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 6 | let store = Store::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/store.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_store_rs_75_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let store = store.get_all().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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/customer.rs - modules::customer::Customer::retrieve (line 49) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/customer.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 6 | let customer = Customer::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/customer.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_customer_rs_49_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let store = customer.retrieve(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::get_all (line 102) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SubscriptionInvoiceFilter` [INFO] [stdout] --> src/modules/subscription_invoice.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut filters = SubscriptionInvoiceFilter::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `SubscriptionInvoiceFilter` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 7 - let mut filters = SubscriptionInvoiceFilter::default(); [INFO] [stdout] 7 + let mut filters = SubscriptionInvoice::default(); [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use lemonsqueezy::subscription_invoice::SubscriptionInvoiceFilter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_invoice.rs:108:55 [INFO] [stdout] | [INFO] [stdout] 9 | let subscription_invoice = SubscriptionInvoice::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscription_invoice.rs:109:72 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_invoice_rs_102_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | let subscription_invoice = subscription_invoice.get_all(Some(filters)).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: E0423, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/order_items.rs - modules::order_items::OrderItem::retrieve (line 47) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/order_items.rs:50:36 [INFO] [stdout] | [INFO] [stdout] 6 | let order_items = OrderItem::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/order_items.rs:51:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_order_items_rs_47_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let order_items = order_items.retrieve(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/store.rs - modules::store::Store::retrieve (line 50) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/store.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 6 | let store = Store::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/store.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_store_rs_50_0() { [INFO] [stdout] | -------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let store = store.retrieve(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/products.rs - modules::products::Product::retrieve (line 48) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `lemonsqueezy::product` [INFO] [stdout] --> src/modules/products.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::product::Product; [INFO] [stdout] | ^^^^^^^ could not find `product` in `lemonsqueezy` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/products.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 6 | let products = Product::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/products.rs:52:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_products_rs_48_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let product = products.retrieve(123).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: E0423, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::update (line 155) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_items.rs:158:51 [INFO] [stdout] | [INFO] [stdout] 6 | let subscription_items = SubscriptionItems::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/modules/subscription_items.rs:159:52 [INFO] [stdout] | [INFO] [stdout] 7 | let subscription_items = subscription_items.update(data).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/modules/subscription_items.rs:159:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_items_rs_155_0() { [INFO] [stdout] | ---------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscription_items = subscription_items.update(data).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: E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::cancel (line 226) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscriptions.rs:229:42 [INFO] [stdout] | [INFO] [stdout] 6 | let subscriptions = Subscriptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscriptions.rs:230:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscriptions_rs_226_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions = subscriptions.cancel(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::get_all (line 86) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_items.rs:89:51 [INFO] [stdout] | [INFO] [stdout] 6 | let subscription_items = SubscriptionItems::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscription_items.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_items_rs_86_0() { [INFO] [stdout] | --------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscription_items = subscription_items.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::retrieve (line 57) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_items.rs:60:51 [INFO] [stdout] | [INFO] [stdout] 6 | let subscription_items = SubscriptionItems::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscription_items.rs:61:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_items_rs_57_0() { [INFO] [stdout] | --------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions_item = subscription_items.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/usage_records.rs - modules::usage_records::UsageRecords::create (line 143) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/usage_records.rs:146:41 [INFO] [stdout] | [INFO] [stdout] 6 | let usage_records = UsageRecords::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usage_record_data` in this scope [INFO] [stdout] --> src/modules/usage_records.rs:147:41 [INFO] [stdout] | [INFO] [stdout] 7 | let usage_record = usage_records.create(usage_record_data).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `usage_records` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/usage_records.rs:147:60 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_usage_records_rs_143_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let usage_record = usage_records.create(usage_record_data).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: E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::retrieve (line 71) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_invoice.rs:74:48 [INFO] [stdout] | [INFO] [stdout] 6 | let subscriptions = SubscriptionInvoice::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscription_invoice.rs:75:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_invoice_rs_71_0() { [INFO] [stdout] | ----------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions = subscriptions.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/user.rs - modules::user::User::retrieve (line 34) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/user.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 6 | let user = User::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/user.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_user_rs_34_0() { [INFO] [stdout] | ------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let user = user.retrieve().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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::current_usage (line 184) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscription_items.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 6 | let subscription_items = SubscriptionItems::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscription_items.rs:188:62 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscription_items_rs_184_0() { [INFO] [stdout] | ---------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscription_items = subscription_items.current_usage(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/webhook.rs - modules::webhook::Webhook::create (line 219) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/webhook.rs:224:30 [INFO] [stdout] | [INFO] [stdout] 8 | let webhook = Webhook::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/webhook.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_webhook_rs_219_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | }).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `lemonsqueezy::webhook::CreateWebhook` has no field named `store_id` [INFO] [stdout] --> src/modules/webhook.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 10 | store_id: 1, [INFO] [stdout] | ^^^^^^^^ `lemonsqueezy::webhook::CreateWebhook` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `type`, `attributes`, `relationships` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0560, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/usage_records.rs - modules::usage_records::UsageRecords::get_all (line 104) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/usage_records.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 6 | let usage_records = UsageRecords::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/usage_records.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_usage_records_rs_104_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let usage_records = usage_records.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::get_all (line 124) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscriptions.rs:127:42 [INFO] [stdout] | [INFO] [stdout] 6 | let subscriptions = Subscriptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscriptions.rs:128:49 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscriptions_rs_124_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions = subscriptions.get_all(None).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/variants.rs - modules::variants::Variant::get_all (line 82) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `lemonsqueezy::variant` [INFO] [stdout] --> src/modules/variants.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::variant::Variant; [INFO] [stdout] | ^^^^^^^ could not find `variant` in `lemonsqueezy` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/variants.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 6 | let variants = Variant::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/variants.rs:86:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_variants_rs_82_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let variant = variants.get_all(None).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: E0423, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::retrieve (line 93) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscriptions.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 6 | let subscriptions = Subscriptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/subscriptions.rs:97:49 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscriptions_rs_93_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions = subscriptions.retrieve(123).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/webhook.rs - modules::webhook::Webhook::update (line 251) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/webhook.rs:255:30 [INFO] [stdout] | [INFO] [stdout] 7 | let webhook = Webhook::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/modules/webhook.rs:256:30 [INFO] [stdout] | [INFO] [stdout] 8 | let webhook = webhook.update(data).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/modules/webhook.rs:256:36 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_webhook_rs_251_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let webhook = webhook.update(data).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: E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::update (line 195) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/subscriptions.rs:198:42 [INFO] [stdout] | [INFO] [stdout] 6 | let subscriptions = Subscriptions::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/modules/subscriptions.rs:199:42 [INFO] [stdout] | [INFO] [stdout] 7 | let subscriptions = subscriptions.update(data).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/modules/subscriptions.rs:199:48 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_subscriptions_rs_195_0() { [INFO] [stdout] | ----------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let subscriptions = subscriptions.update(data).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: E0423, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/variants.rs - modules::variants::Variant::retrieve (line 57) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `lemonsqueezy::variant` [INFO] [stdout] --> src/modules/variants.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 5 | use lemonsqueezy::variant::Variant; [INFO] [stdout] | ^^^^^^^ could not find `variant` in `lemonsqueezy` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/variants.rs:60:31 [INFO] [stdout] | [INFO] [stdout] 6 | let variants = Variant::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/variants.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_variants_rs_57_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let variant = variants.retrieve(123).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: E0423, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/webhook.rs - modules::webhook::Webhook::retrieve (line 121) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/webhook.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 7 | let webhook = Webhook::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/webhook.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_webhook_rs_121_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let webhook = webhook.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/webhook.rs - modules::webhook::Webhook::get_all (line 171) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/webhook.rs:175:30 [INFO] [stdout] | [INFO] [stdout] 7 | let webhook = Webhook::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/webhook.rs:176:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_webhook_rs_171_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let webhook = webhook.get_all(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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/webhook.rs - modules::webhook::Webhook::delete (line 148) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/webhook.rs:152:30 [INFO] [stdout] | [INFO] [stdout] 7 | let webhook = Webhook::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/webhook.rs:153:33 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_webhook_rs_148_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let webhook = webhook.delete(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/modules/usage_records.rs - modules::usage_records::UsageRecords::retrieve (line 77) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `lemonsqueezy` [INFO] [stdout] --> src/modules/usage_records.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 6 | let usage_records = UsageRecords::build(lemonsqueezy); [INFO] [stdout] | ^^^^^^^^^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/modules/usage_records.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_modules_usage_records_rs_77_0() { [INFO] [stdout] | ---------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let usage_record = usage_records.retrieve(1).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: E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - LemonSqueezy::delete (line 148) [INFO] [stdout] src/lib.rs - LemonSqueezy::get (line 49) [INFO] [stdout] src/lib.rs - LemonSqueezy::patch (line 181) [INFO] [stdout] src/lib.rs - LemonSqueezy::post (line 113) [INFO] [stdout] src/modules/checkout.rs - modules::checkout::Checkout::create (line 90) [INFO] [stdout] src/modules/checkout.rs - modules::checkout::Checkout::get_all (line 55) [INFO] [stdout] src/modules/checkout.rs - modules::checkout::Checkout::retrieve (line 29) [INFO] [stdout] src/modules/customer.rs - modules::customer::Customer::get_all (line 77) [INFO] [stdout] src/modules/customer.rs - modules::customer::Customer::retrieve (line 49) [INFO] [stdout] src/modules/discount.rs - modules::discount::Discount::create (line 166) [INFO] [stdout] src/modules/discount.rs - modules::discount::Discount::delete (line 140) [INFO] [stdout] src/modules/discount.rs - modules::discount::Discount::get_all (line 106) [INFO] [stdout] src/modules/discount.rs - modules::discount::Discount::retrieve (line 80) [INFO] [stdout] src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::get_all (line 71) [INFO] [stdout] src/modules/discount_redemptions.rs - modules::discount_redemptions::DiscountRedemptions::retrieve (line 41) [INFO] [stdout] src/modules/files.rs - modules::files::Files::get_all (line 73) [INFO] [stdout] src/modules/files.rs - modules::files::Files::retrieve (line 45) [INFO] [stdout] src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::get_all (line 66) [INFO] [stdout] src/modules/license_key_instances.rs - modules::license_key_instances::LicenseKeyInstances::retrieve (line 36) [INFO] [stdout] src/modules/license_keys.rs - modules::license_keys::LicenseKey::activate (line 112) [INFO] [stdout] src/modules/license_keys.rs - modules::license_keys::LicenseKey::get_all (line 237) [INFO] [stdout] src/modules/license_keys.rs - modules::license_keys::LicenseKey::retrieve (line 211) [INFO] [stdout] src/modules/order_items.rs - modules::order_items::OrderItem::get_all (line 72) [INFO] [stdout] src/modules/order_items.rs - modules::order_items::OrderItem::retrieve (line 47) [INFO] [stdout] src/modules/orders.rs - modules::orders::Order::get_all (line 106) [INFO] [stdout] src/modules/orders.rs - modules::orders::Order::retrieve (line 81) [INFO] [stdout] src/modules/products.rs - modules::products::Product::get_all (line 73) [INFO] [stdout] src/modules/products.rs - modules::products::Product::retrieve (line 48) [INFO] [stdout] src/modules/store.rs - modules::store::Store::get_all (line 75) [INFO] [stdout] src/modules/store.rs - modules::store::Store::retrieve (line 50) [INFO] [stdout] src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::get_all (line 102) [INFO] [stdout] src/modules/subscription_invoice.rs - modules::subscription_invoice::SubscriptionInvoice::retrieve (line 71) [INFO] [stdout] src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::current_usage (line 184) [INFO] [stdout] src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::get_all (line 86) [INFO] [stdout] src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::retrieve (line 57) [INFO] [stdout] src/modules/subscription_items.rs - modules::subscription_items::SubscriptionItems::update (line 155) [INFO] [stdout] src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::cancel (line 226) [INFO] [stdout] src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::get_all (line 124) [INFO] [stdout] src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::retrieve (line 93) [INFO] [stdout] src/modules/subscriptions.rs - modules::subscriptions::Subscriptions::update (line 195) [INFO] [stdout] src/modules/usage_records.rs - modules::usage_records::UsageRecords::create (line 143) [INFO] [stdout] src/modules/usage_records.rs - modules::usage_records::UsageRecords::get_all (line 104) [INFO] [stdout] src/modules/usage_records.rs - modules::usage_records::UsageRecords::retrieve (line 77) [INFO] [stdout] src/modules/user.rs - modules::user::User::retrieve (line 34) [INFO] [stdout] src/modules/variants.rs - modules::variants::Variant::get_all (line 82) [INFO] [stdout] src/modules/variants.rs - modules::variants::Variant::retrieve (line 57) [INFO] [stdout] src/modules/webhook.rs - modules::webhook::Webhook::create (line 219) [INFO] [stdout] src/modules/webhook.rs - modules::webhook::Webhook::delete (line 148) [INFO] [stdout] src/modules/webhook.rs - modules::webhook::Webhook::get_all (line 171) [INFO] [stdout] src/modules/webhook.rs - modules::webhook::Webhook::retrieve (line 121) [INFO] [stdout] src/modules/webhook.rs - modules::webhook::Webhook::update (line 251) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 51 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.38s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e3e7473fba9a57a9303761d20de074dd5ead2dfad426cbba127d5ef1f5c03841", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3e7473fba9a57a9303761d20de074dd5ead2dfad426cbba127d5ef1f5c03841", kill_on_drop: false }` [INFO] [stdout] e3e7473fba9a57a9303761d20de074dd5ead2dfad426cbba127d5ef1f5c03841