[INFO] cloning repository https://github.com/notdanilo/nash-io [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notdanilo/nash-io" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6666ba759059b289caf0d7553a872e48ea2a7c9 [INFO] checking notdanilo/nash-io against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notdanilo/nash-io on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notdanilo/nash-io [INFO] removed path dependency openlimits from git repo https://github.com/notdanilo/nash-io [INFO] finished tweaking git repo https://github.com/notdanilo/nash-io [INFO] tweaked toml for git repo https://github.com/notdanilo/nash-io written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/notdanilo/nash-io already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 805a8d34b93d8c186d3338e55e00cb0028a34dac008ec804692128107682cd0c [INFO] running `Command { std: "docker" "start" "-a" "805a8d34b93d8c186d3338e55e00cb0028a34dac008ec804692128107682cd0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "805a8d34b93d8c186d3338e55e00cb0028a34dac008ec804692128107682cd0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "805a8d34b93d8c186d3338e55e00cb0028a34dac008ec804692128107682cd0c", kill_on_drop: false }` [INFO] [stdout] 805a8d34b93d8c186d3338e55e00cb0028a34dac008ec804692128107682cd0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3bce1a01799ccfc38815121d1a10f1f46f449a624e3d29ccb6ba2759b425c1f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f3bce1a01799ccfc38815121d1a10f1f46f449a624e3d29ccb6ba2759b425c1f", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling radium v0.4.1 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling const_fn v0.4.4 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Checking const-oid v0.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking vec_box v1.0.0 [INFO] [stderr] Checking min_max_macros v0.1.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking dtoa v0.4.7 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Checking sugar v0.2.0 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking bitvec v0.18.4 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.9.1 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling backtrace v0.3.55 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking ripemd160 v0.9.1 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking hmac v0.9.0 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking bs58 v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking signature v1.2.2 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking ff v0.8.0 [INFO] [stderr] Checking group v0.8.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking elliptic-curve v0.6.6 [INFO] [stderr] Checking ecdsa v0.8.5 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking p256 v0.5.2 [INFO] [stderr] Checking k256 v0.5.10 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling graphql-parser v0.2.3 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking tokio-native-tls v0.1.0 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking tokio-tungstenite v0.11.0 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking tokio-tungstenite v0.10.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking bigdecimal v0.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking rust_decimal v1.9.0 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Compiling graphql-introspection-query v0.1.0 [INFO] [stderr] Checking rust-gmp-serde v0.5.0 [INFO] [stderr] Checking rust-bigint v1.1.0 [INFO] [stderr] Checking paillier-common v0.1.1 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Compiling graphql_client_codegen v0.9.0 [INFO] [stderr] Checking nash-mpc v1.2.0 [INFO] [stderr] Compiling graphql_query_derive v0.9.0 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking graphql_client v0.9.0 [INFO] [stderr] Checking nash-protocol v0.1.20 [INFO] [stderr] Checking nash-native-client v0.1.13 [INFO] [stderr] Checking openlimits v0.1.6 [INFO] [stderr] Checking hiring-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `openlimits::nash::NashStream` [INFO] [stdout] --> src/exchanges/nash.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::nash::NashStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NashStream` in `nash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/nash.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/binance.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/exchanges.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | 1, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | 1000, [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::nash::NashStream` [INFO] [stdout] --> src/exchanges/nash.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::nash::NashStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NashStream` in `nash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/nash.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/binance.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/exchanges.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | 1, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | 1000, [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `Subscription` in the current scope [INFO] [stdout] --> src/exchanges/nash.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | let subscription = Subscription::OrderBook(pair.to_string("_"), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `BinanceWebsocket` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | websocket: BinanceWebsocket::new() [INFO] [stdout] | ^^^ function or associated item not found in `BinanceWebsocket` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use openlimits::exchange_ws::ExchangeWs;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `Subscription` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let subscription = Subscription::OrderBook(pair.to_string(""), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/exchanges/binance.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | self.subscribe(subscription).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ ------------ supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for mutable reference `&mut OpenLimitsWs` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | self.next().await.and_then(|msg| msg.ok()).and_then(|msg| { [INFO] [stdout] | ^^^^ method not found in `&mut OpenLimitsWs` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/openlimits-0.1.6/src/exchange_ws.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OpenLimitsWs { [INFO] [stdout] | -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Iterator` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: StreamExt` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Stream` [INFO] [stdout] | [INFO] [stdout] = note: the method `next` exists but the following trait bounds were not satisfied: [INFO] [stdout] `OpenLimitsWs: Stream` [INFO] [stdout] which is required by `OpenLimitsWs: StreamExt` [INFO] [stdout] `&mut OpenLimitsWs: Stream` [INFO] [stdout] which is required by `&mut OpenLimitsWs: StreamExt` [INFO] [stdout] `OpenLimitsWs: Iterator` [INFO] [stdout] which is required by `&mut OpenLimitsWs: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `Subscription` in the current scope [INFO] [stdout] --> src/exchanges/nash.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | let subscription = Subscription::OrderBook(pair.to_string("_"), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `BinanceWebsocket` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | websocket: BinanceWebsocket::new() [INFO] [stdout] | ^^^ function or associated item not found in `BinanceWebsocket` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use openlimits::exchange_ws::ExchangeWs;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut nash = exchanges::nash().await; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `Subscription` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let subscription = Subscription::OrderBook(pair.to_string(""), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/exchanges/binance.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | self.subscribe(subscription).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ ------------ supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for mutable reference `&mut OpenLimitsWs` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | self.next().await.and_then(|msg| msg.ok()).and_then(|msg| { [INFO] [stdout] | ^^^^ method not found in `&mut OpenLimitsWs` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/openlimits-0.1.6/src/exchange_ws.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OpenLimitsWs { [INFO] [stdout] | -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Iterator` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: StreamExt` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Stream` [INFO] [stdout] | [INFO] [stdout] = note: the method `next` exists but the following trait bounds were not satisfied: [INFO] [stdout] `OpenLimitsWs: Stream` [INFO] [stdout] which is required by `OpenLimitsWs: StreamExt` [INFO] [stdout] `&mut OpenLimitsWs: Stream` [INFO] [stdout] which is required by `&mut OpenLimitsWs: StreamExt` [INFO] [stdout] `OpenLimitsWs: Iterator` [INFO] [stdout] which is required by `&mut OpenLimitsWs: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut nash = exchanges::nash().await; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/nash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/binance.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `update_id` in initializer of `OrderBookResponse` [INFO] [stdout] --> src/arbitrage.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 147 | let book_a = OrderBookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ missing `update_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `update_id` in initializer of `OrderBookResponse` [INFO] [stdout] --> src/arbitrage.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let book_b = OrderBookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ missing `update_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/nash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/binance.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0432, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hiring-challenge` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f3bce1a01799ccfc38815121d1a10f1f46f449a624e3d29ccb6ba2759b425c1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3bce1a01799ccfc38815121d1a10f1f46f449a624e3d29ccb6ba2759b425c1f", kill_on_drop: false }` [INFO] [stdout] f3bce1a01799ccfc38815121d1a10f1f46f449a624e3d29ccb6ba2759b425c1f