[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 master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIvanovOleg%2Falpaca_markets" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/IvanovOleg/alpaca_markets on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "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" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-tungstenite v0.28.0 [INFO] [stderr] Downloaded tungstenite v0.28.0 [INFO] [stderr] Downloaded windows-sys v0.61.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a419f57c551287a0f08054c9af6757f0cfd8458065cf52c90de255891eef2cb [INFO] running `Command { std: "docker" "start" "-a" "2a419f57c551287a0f08054c9af6757f0cfd8458065cf52c90de255891eef2cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a419f57c551287a0f08054c9af6757f0cfd8458065cf52c90de255891eef2cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a419f57c551287a0f08054c9af6757f0cfd8458065cf52c90de255891eef2cb", kill_on_drop: false }` [INFO] [stdout] 2a419f57c551287a0f08054c9af6757f0cfd8458065cf52c90de255891eef2cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d41b16d6d1163231507a1565ea3a582e53f8ded60845a3a23b24cd5b3aab98b [INFO] running `Command { std: "docker" "start" "-a" "5d41b16d6d1163231507a1565ea3a582e53f8ded60845a3a23b24cd5b3aab98b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling http v1.3.1 [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 signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [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 zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.17 [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_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [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 tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [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 48.55s [INFO] running `Command { std: "docker" "inspect" "5d41b16d6d1163231507a1565ea3a582e53f8ded60845a3a23b24cd5b3aab98b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d41b16d6d1163231507a1565ea3a582e53f8ded60845a3a23b24cd5b3aab98b", kill_on_drop: false }` [INFO] [stdout] 5d41b16d6d1163231507a1565ea3a582e53f8ded60845a3a23b24cd5b3aab98b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 857e40909f85abb4ce2e93ae3df7da56d6d30eee0cd2496fc94bb9981d37c0c6 [INFO] running `Command { std: "docker" "start" "-a" "857e40909f85abb4ce2e93ae3df7da56d6d30eee0cd2496fc94bb9981d37c0c6", kill_on_drop: false }` [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] 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 `test` profile [unoptimized + debuginfo] target(s) in 13.72s [INFO] running `Command { std: "docker" "inspect" "857e40909f85abb4ce2e93ae3df7da56d6d30eee0cd2496fc94bb9981d37c0c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "857e40909f85abb4ce2e93ae3df7da56d6d30eee0cd2496fc94bb9981d37c0c6", kill_on_drop: false }` [INFO] [stdout] 857e40909f85abb4ce2e93ae3df7da56d6d30eee0cd2496fc94bb9981d37c0c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 04bee58b17c07ae0a44c59dfb7aa4ad3a3a7e0c3ee517275d3545d68256b6c44 [INFO] running `Command { std: "docker" "start" "-a" "04bee58b17c07ae0a44c59dfb7aa4ad3a3a7e0c3ee517275d3545d68256b6c44", kill_on_drop: false }` [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 `crypto` in the type namespace is first re-exported here [INFO] [stderr] ... [INFO] [stderr] 14 | pub use market_data::*; [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] [INFO] [stdout] running 6 tests [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_default ... ok [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_display ... ok [INFO] [stdout] test models::market_data::bars::tests::test_sort_as_str ... ok [INFO] [stdout] test models::market_data::bars::tests::test_sort_default ... ok [INFO] [stdout] test models::market_data::bars::tests::test_sort_display ... ok [INFO] [stderr] Doc-tests alpaca_markets [INFO] [stdout] test models::market_data::bars::tests::test_adjustment_as_str ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 10 tests [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_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::get_clock (line 255) ... FAILED [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_crypto_transfer_estimate (line 540) ... 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_crypto_transfer (line 362) ... FAILED [INFO] [stdout] test src/clients/trading.rs - clients::trading::TradingClient::list_crypto_wallets (line 288) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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_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::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::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_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] ---- 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_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::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] [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.43s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.61s; merged doctests compilation took 0.17s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "04bee58b17c07ae0a44c59dfb7aa4ad3a3a7e0c3ee517275d3545d68256b6c44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04bee58b17c07ae0a44c59dfb7aa4ad3a3a7e0c3ee517275d3545d68256b6c44", kill_on_drop: false }` [INFO] [stdout] 04bee58b17c07ae0a44c59dfb7aa4ad3a3a7e0c3ee517275d3545d68256b6c44