[INFO] cloning repository https://github.com/martin-bucinskas/yggd-core [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/martin-bucinskas/yggd-core" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-bucinskas%2Fyggd-core", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-bucinskas%2Fyggd-core'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a517f3b614ac5bfd0289784441b6a0b619fb9d1 [INFO] checking martin-bucinskas/yggd-core against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartin-bucinskas%2Fyggd-core" "/workspace/builds/worker-91/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-91/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/martin-bucinskas/yggd-core on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/martin-bucinskas/yggd-core [INFO] finished tweaking git repo https://github.com/martin-bucinskas/yggd-core [INFO] tweaked toml for git repo https://github.com/martin-bucinskas/yggd-core written to /workspace/builds/worker-91/source/Cargo.toml [INFO] crate git repo https://github.com/martin-bucinskas/yggd-core already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c099359c3880e06e1a0cf7dbacecff4f5d8ee72ec3180a3dd6287b0f9ca1977a [INFO] running `Command { std: "docker" "start" "-a" "c099359c3880e06e1a0cf7dbacecff4f5d8ee72ec3180a3dd6287b0f9ca1977a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c099359c3880e06e1a0cf7dbacecff4f5d8ee72ec3180a3dd6287b0f9ca1977a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c099359c3880e06e1a0cf7dbacecff4f5d8ee72ec3180a3dd6287b0f9ca1977a", kill_on_drop: false }` [INFO] [stdout] c099359c3880e06e1a0cf7dbacecff4f5d8ee72ec3180a3dd6287b0f9ca1977a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cdca32c37137714bad71127983bff59c3a55de0da908eea0ac42f5c00e274641 [INFO] running `Command { std: "docker" "start" "-a" "cdca32c37137714bad71127983bff59c3a55de0da908eea0ac42f5c00e274641", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking slab v0.4.4 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tokio v1.10.1 [INFO] [stderr] Checking tracing-core v0.1.19 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking pin-project v1.0.8 [INFO] [stderr] Checking pin-project v0.4.28 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking snafu v0.6.10 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking tokio-tungstenite v0.10.1 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking market-finance v0.1.0 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking alpaca-finance v0.2.1 [INFO] [stderr] Checking yggd-core v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: environment variable `KEY_ID` not defined [INFO] [stdout] --> src/core/yggd_bot.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | let key_id: &'static str = env!("KEY_ID"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `KEY_SECRET` not defined [INFO] [stdout] --> src/core/yggd_bot.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | let key_secret: &'static str = env!("KEY_SECRET"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | async fn place_sell_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | async fn place_buy_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | async fn place_sell_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> ... [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 46 | | let order = Order::sell(symbol.as_ref(), qty, order_type, time_in_force) [INFO] [stdout] 47 | | .limit_price(limit_price) [INFO] [stdout] 48 | | .place(&self.client).await.unwrap(); [INFO] [stdout] 49 | | Result::Ok(order) [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | async fn place_buy_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> R... [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 53 | | let order = Order::sell(symbol.as_ref(), qty, order_type, time_in_force) [INFO] [stdout] 54 | | .limit_price(limit_price) [INFO] [stdout] 55 | | .place(&self.client).await.unwrap(); [INFO] [stdout] 56 | | Result::Ok(order) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `KEY_ID` not defined [INFO] [stdout] --> src/core/yggd_bot.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | let key_id: &'static str = env!("KEY_ID"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `KEY_SECRET` not defined [INFO] [stdout] --> src/core/yggd_bot.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 16 | let key_secret: &'static str = env!("KEY_SECRET"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | async fn place_sell_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | async fn place_buy_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | async fn place_sell_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> ... [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 46 | | let order = Order::sell(symbol.as_ref(), qty, order_type, time_in_force) [INFO] [stdout] 47 | | .limit_price(limit_price) [INFO] [stdout] 48 | | .place(&self.client).await.unwrap(); [INFO] [stdout] 49 | | Result::Ok(order) [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/core/yggd_bot.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | async fn place_buy_order(&self, symbol: Box, qty: u32, order_type: OrderType, time_in_force: TimeInForce, limit_price: f64) -> R... [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 53 | | let order = Order::sell(symbol.as_ref(), qty, order_type, time_in_force) [INFO] [stdout] 54 | | .limit_price(limit_price) [INFO] [stdout] 55 | | .place(&self.client).await.unwrap(); [INFO] [stdout] 56 | | Result::Ok(order) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `future` [INFO] [stdout] --> src/core/yggd_bot.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | future::ready(()) [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/core/yggd_bot.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn new(&mut self) -> Self { [INFO] [stdout] 15 | | let key_id: &'static str = env!("KEY_ID"); [INFO] [stdout] 16 | | let key_secret: &'static str = env!("KEY_SECRET"); [INFO] [stdout] 17 | | [INFO] [stdout] 18 | | YggdBot { [INFO] [stdout] 19 | | client: Alpaca::paper(key_id, key_secret).await.unwrap() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } [INFO] [stdout] | |_____- this is not `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `future` [INFO] [stdout] --> src/core/yggd_bot.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | future::ready(()) [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/core/yggd_bot.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn new(&mut self) -> Self { [INFO] [stdout] 15 | | let key_id: &'static str = env!("KEY_ID"); [INFO] [stdout] 16 | | let key_secret: &'static str = env!("KEY_SECRET"); [INFO] [stdout] 17 | | [INFO] [stdout] 18 | | YggdBot { [INFO] [stdout] 19 | | client: Alpaca::paper(key_id, key_secret).await.unwrap() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } [INFO] [stdout] | |_____- this is not `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `for_each` exists for opaque type `impl futures_core::stream::Stream`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/yggd_bot.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | .for_each(|msg| { [INFO] [stdout] | ^^^^^^^^ method cannot be called on `impl futures_core::stream::Stream` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `impl futures_core::stream::Stream: Iterator` [INFO] [stdout] which is required by `&mut impl futures_core::stream::Stream: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::stream::StreamExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:32:81 [INFO] [stdout] | [INFO] [stdout] 32 | StreamMessage::Account(_) => println!("Account update: {}", msg), [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `for_each` exists for opaque type `impl futures_core::stream::Stream`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/yggd_bot.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | .for_each(|msg| { [INFO] [stdout] | ^^^^^^^^ method cannot be called on `impl futures_core::stream::Stream` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `impl futures_core::stream::Stream: Iterator` [INFO] [stdout] which is required by `&mut impl futures_core::stream::Stream: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::stream::StreamExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:33:77 [INFO] [stdout] | [INFO] [stdout] 33 | StreamMessage::Order(_) => println!("Order update: {}", msg), [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:34:61 [INFO] [stdout] | [INFO] [stdout] 34 | _ => println!("Unexpected message: {}", msg) [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:32:81 [INFO] [stdout] | [INFO] [stdout] 32 | StreamMessage::Account(_) => println!("Account update: {}", msg), [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `place_sell_order` has an incompatible type for trait [INFO] [stdout] --> src/core/yggd_bot.rs:45:138 [INFO] [stdout] | [INFO] [stdout] 9 | ...: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -------------------- type in trait [INFO] [stdout] ... [INFO] [stdout] 45 | ...: TimeInForce, limit_price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> Result` [INFO] [stdout] found fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `place_buy_order` has an incompatible type for trait [INFO] [stdout] --> src/core/yggd_bot.rs:52:137 [INFO] [stdout] | [INFO] [stdout] 10 | ...: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -------------------- type in trait [INFO] [stdout] ... [INFO] [stdout] 52 | ...: TimeInForce, limit_price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> Result` [INFO] [stdout] found fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:33:77 [INFO] [stdout] | [INFO] [stdout] 33 | StreamMessage::Order(_) => println!("Order update: {}", msg), [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `StreamMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/core/yggd_bot.rs:34:61 [INFO] [stdout] | [INFO] [stdout] 34 | _ => println!("Unexpected message: {}", msg) [INFO] [stdout] | ^^^ `StreamMessage` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `StreamMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `place_sell_order` has an incompatible type for trait [INFO] [stdout] --> src/core/yggd_bot.rs:45:138 [INFO] [stdout] | [INFO] [stdout] 9 | ...: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -------------------- type in trait [INFO] [stdout] ... [INFO] [stdout] 45 | ...: TimeInForce, limit_price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> Result` [INFO] [stdout] found fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `place_buy_order` has an incompatible type for trait [INFO] [stdout] --> src/core/yggd_bot.rs:52:137 [INFO] [stdout] | [INFO] [stdout] 10 | ...: TimeInForce, limit_price: f64) -> Result; [INFO] [stdout] | -------------------- type in trait [INFO] [stdout] ... [INFO] [stdout] 52 | ...: TimeInForce, limit_price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> Result` [INFO] [stdout] found fn pointer `fn(&YggdBot, Box<_>, _, OrderType, TimeInForce, _) -> impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0277, E0433, E0599, E0706, E0728. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `yggd-core` due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0277, E0433, E0599, E0706, E0728. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "cdca32c37137714bad71127983bff59c3a55de0da908eea0ac42f5c00e274641", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdca32c37137714bad71127983bff59c3a55de0da908eea0ac42f5c00e274641", kill_on_drop: false }` [INFO] [stdout] cdca32c37137714bad71127983bff59c3a55de0da908eea0ac42f5c00e274641