[INFO] cloning repository https://github.com/IvanovOleg/alpaca_markets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IvanovOleg/alpaca_markets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIvanovOleg%2Falpaca_markets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIvanovOleg%2Falpaca_markets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c072499240fa8456f7e3cf53bd1c840a54e0b162 [INFO] testing IvanovOleg/alpaca_markets against try#a7ee93192a766fb0dafa23def7154fc03cfcfc3e for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIvanovOleg%2Falpaca_markets" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/IvanovOleg/alpaca_markets [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/IvanovOleg/alpaca_markets [INFO] tweaked toml for git repo https://github.com/IvanovOleg/alpaca_markets written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IvanovOleg/alpaca_markets on toolchain a7ee93192a766fb0dafa23def7154fc03cfcfc3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/IvanovOleg/alpaca_markets 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" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 759a3403de184a84d07afb68d29c2486e47a66d67ad2cd4b76b004cc45753b76 [INFO] running `Command { std: "docker" "start" "-a" "759a3403de184a84d07afb68d29c2486e47a66d67ad2cd4b76b004cc45753b76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "759a3403de184a84d07afb68d29c2486e47a66d67ad2cd4b76b004cc45753b76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "759a3403de184a84d07afb68d29c2486e47a66d67ad2cd4b76b004cc45753b76", kill_on_drop: false }` [INFO] [stdout] 759a3403de184a84d07afb68d29c2486e47a66d67ad2cd4b76b004cc45753b76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 537fa3409800dfce582832a5177b611a168f79f0f259a89c6c4841978690a43a [INFO] running `Command { std: "docker" "start" "-a" "537fa3409800dfce582832a5177b611a168f79f0f259a89c6c4841978690a43a", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot v0.12.5 [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 zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [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.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling alpaca_markets v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `crypto` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `crypto` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `options` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `options` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.48s [INFO] running `Command { std: "docker" "inspect" "537fa3409800dfce582832a5177b611a168f79f0f259a89c6c4841978690a43a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "537fa3409800dfce582832a5177b611a168f79f0f259a89c6c4841978690a43a", kill_on_drop: false }` [INFO] [stdout] 537fa3409800dfce582832a5177b611a168f79f0f259a89c6c4841978690a43a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f26a422ffb1b4fb3e59daccc9bd1a5a8959dd2dc5da9e8cfcd7f72a59290451b [INFO] running `Command { std: "docker" "start" "-a" "f26a422ffb1b4fb3e59daccc9bd1a5a8959dd2dc5da9e8cfcd7f72a59290451b", kill_on_drop: false }` [INFO] [stderr] Compiling alpaca_markets v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `crypto` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `crypto` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `options` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `options` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `crypto` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `crypto` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use trading::*; [INFO] [stdout] | ^^^^^^^^^^ the name `options` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 14 | pub use market_data::*; [INFO] [stdout] | -------------- but the name `options` in the type namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.57s [INFO] running `Command { std: "docker" "inspect" "f26a422ffb1b4fb3e59daccc9bd1a5a8959dd2dc5da9e8cfcd7f72a59290451b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f26a422ffb1b4fb3e59daccc9bd1a5a8959dd2dc5da9e8cfcd7f72a59290451b", kill_on_drop: false }` [INFO] [stdout] f26a422ffb1b4fb3e59daccc9bd1a5a8959dd2dc5da9e8cfcd7f72a59290451b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1e134252cac2328fe4f89a353568d113b1fced1329124ad29780f5f3de420fe0 [INFO] running `Command { std: "docker" "start" "-a" "1e134252cac2328fe4f89a353568d113b1fced1329124ad29780f5f3de420fe0", kill_on_drop: false }` [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stdout] [INFO] [stderr] --> src/models.rs:9:9 [INFO] [stdout] running 6 tests [INFO] [stderr] | [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_display ... ok [INFO] [stderr] 9 | pub use trading::*; [INFO] [stdout] test models::market_data::bars::tests::test_sort_default ... ok [INFO] [stderr] | ^^^^^^^^^^ the name `crypto` in the type namespace is first re-exported here [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_as_str ... ok [INFO] [stderr] ... [INFO] [stdout] test models::market_data::bars::tests::test_sort_as_str ... ok [INFO] [stderr] 14 | pub use market_data::*; [INFO] [stdout] test models::market_data::bars::tests::test_sort_display ... ok [INFO] [stderr] | -------------- but the name `crypto` in the type namespace is also re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/models.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use trading::*; [INFO] [stderr] | ^^^^^^^^^^ the name `options` in the type namespace is first re-exported here [INFO] [stderr] ... [INFO] [stderr] 14 | pub use market_data::*; [INFO] [stderr] | -------------- but the name `options` in the type namespace is also re-exported here [INFO] [stderr] [INFO] [stderr] warning: `alpaca_markets` (lib) generated 2 warnings [INFO] [stderr] warning: `alpaca_markets` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/alpaca_markets-70cc6d1dc1528ea9) [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_default ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Doc-tests alpaca_markets [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::list_crypto_transfers (line 327) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::get_calendar (line 216) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::create_crypto_transfer (line 362) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::get_clock (line 255) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::delete_whitelisted_address (line 508) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer (line 401) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::create_whitelisted_address (line 468) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::list_whitelisted_addresses (line 433) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::list_crypto_wallets (line 288) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer_estimate (line 540) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::list_crypto_transfers (line 327) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | let transfers = client.list_crypto_transfers(None).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clients/trading.rs:328:52 [INFO] [stdout] | [INFO] [stdout] 327 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_327_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 328 | let transfers = client.list_crypto_transfers(None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::get_calendar (line 216) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:218:16 [INFO] [stdout] | [INFO] [stdout] 218 | let calendar = client.get_calendar(Some("2023-01-01"), Some("2023-01-31")).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:222:16 [INFO] [stdout] | [INFO] [stdout] 222 | let upcoming = client.get_calendar(None, None).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clients/trading.rs:218:76 [INFO] [stdout] | [INFO] [stdout] 216 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_216_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 217 | // Get all trading days for January 2023 [INFO] [stdout] 218 | let calendar = client.get_calendar(Some("2023-01-01"), Some("2023-01-31")).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clients/trading.rs:222:48 [INFO] [stdout] | [INFO] [stdout] 216 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_216_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 222 | let upcoming = client.get_calendar(None, None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::create_crypto_transfer (line 362) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CreateCryptoTransferRequest` in this scope [INFO] [stdout] --> src/clients/trading.rs:363:15 [INFO] [stdout] | [INFO] [stdout] 363 | let request = CreateCryptoTransferRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 362 + use alpaca_markets::CreateCryptoTransferRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:368:16 [INFO] [stdout] | [INFO] [stdout] 368 | let transfer = client.create_crypto_transfer(request).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/clients/trading.rs:368:55 [INFO] [stdout] | [INFO] [stdout] 362 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_362_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 368 | let transfer = client.create_crypto_transfer(request).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: E0422, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::get_clock (line 255) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let clock = client.get_clock().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/clients/trading.rs:256:32 [INFO] [stdout] | [INFO] [stdout] 255 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_255_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 256 | let clock = client.get_clock().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::delete_whitelisted_address (line 508) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:509:1 [INFO] [stdout] | [INFO] [stdout] 509 | client.delete_whitelisted_address("address_123").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/clients/trading.rs:509:50 [INFO] [stdout] | [INFO] [stdout] 508 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_508_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 509 | client.delete_whitelisted_address("address_123").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer (line 401) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:402:16 [INFO] [stdout] | [INFO] [stdout] 402 | let transfer = client.get_crypto_transfer("transfer_123").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/clients/trading.rs:402:59 [INFO] [stdout] | [INFO] [stdout] 401 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_401_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 402 | let transfer = client.get_crypto_transfer("transfer_123").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::create_whitelisted_address (line 468) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CreateWhitelistedAddressRequest` in this scope [INFO] [stdout] --> src/clients/trading.rs:469:15 [INFO] [stdout] | [INFO] [stdout] 469 | let request = CreateWhitelistedAddressRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 468 + use alpaca_markets::CreateWhitelistedAddressRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:474:15 [INFO] [stdout] | [INFO] [stdout] 474 | let address = client.create_whitelisted_address(request).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/clients/trading.rs:474:58 [INFO] [stdout] | [INFO] [stdout] 468 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_468_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 474 | let address = client.create_whitelisted_address(request).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: E0422, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::list_whitelisted_addresses (line 433) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:434:17 [INFO] [stdout] | [INFO] [stdout] 434 | let addresses = client.list_whitelisted_addresses(Some("BTC")).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/clients/trading.rs:434:64 [INFO] [stdout] | [INFO] [stdout] 433 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_433_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 434 | let addresses = client.list_whitelisted_addresses(Some("BTC")).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::list_crypto_wallets (line 288) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:290:15 [INFO] [stdout] | [INFO] [stdout] 290 | let wallets = client.list_crypto_wallets(None).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | let btc_wallets = client.list_crypto_wallets(Some("BTC")).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/clients/trading.rs:290:48 [INFO] [stdout] | [INFO] [stdout] 288 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_288_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 289 | // Get all wallets [INFO] [stdout] 290 | let wallets = client.list_crypto_wallets(None).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clients/trading.rs:293:59 [INFO] [stdout] | [INFO] [stdout] 288 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_288_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 293 | let btc_wallets = client.list_crypto_wallets(Some("BTC")).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer_estimate (line 540) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/clients/trading.rs:541:16 [INFO] [stdout] | [INFO] [stdout] 541 | let estimate = client.get_crypto_transfer_estimate("BTC", "0.001").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/clients/trading.rs:541:68 [INFO] [stdout] | [INFO] [stdout] 540 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clients_trading_rs_540_0() { [INFO] [stdout] | ----------------------------------------------- this is not `async` [INFO] [stdout] 541 | let estimate = client.get_crypto_transfer_estimate("BTC", "0.001").await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::create_crypto_transfer (line 362) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::create_whitelisted_address (line 468) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::delete_whitelisted_address (line 508) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::get_calendar (line 216) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::get_clock (line 255) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer (line 401) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::get_crypto_transfer_estimate (line 540) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::list_crypto_transfers (line 327) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::list_crypto_wallets (line 288) [INFO] [stdout] src/clients/trading.rs - clients::trading::TradingClient::list_whitelisted_addresses (line 433) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.58s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.81s; merged doctests compilation took 0.22s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1e134252cac2328fe4f89a353568d113b1fced1329124ad29780f5f3de420fe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e134252cac2328fe4f89a353568d113b1fced1329124ad29780f5f3de420fe0", kill_on_drop: false }` [INFO] [stdout] 1e134252cac2328fe4f89a353568d113b1fced1329124ad29780f5f3de420fe0