[INFO] fetching crate okx-rs 0.1.1... [INFO] building okx-rs-0.1.1 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate okx-rs 0.1.1 into /workspace/builds/worker-7-tc1/source [INFO] removed /workspace/builds/worker-7-tc1/source/rust-toolchain.toml [INFO] started tweaking crates.io crate okx-rs 0.1.1 [INFO] finished tweaking crates.io crate okx-rs 0.1.1 [INFO] tweaked toml for crates.io crate okx-rs 0.1.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate okx-rs 0.1.1 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate okx-rs 0.1.1 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytecheck v0.6.9 [INFO] [stderr] Downloaded security-framework v2.7.0 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.42.0 [INFO] [stderr] Downloaded futures-channel v0.3.25 [INFO] [stderr] Downloaded serde_qs v0.10.1 [INFO] [stderr] Downloaded futures-sink v0.3.25 [INFO] [stderr] Downloaded cxxbridge-macro v1.0.85 [INFO] [stderr] Downloaded serde_with v3.8.1 [INFO] [stderr] Downloaded gimli v0.27.0 [INFO] [stderr] Downloaded anyhow v1.0.68 [INFO] [stderr] Downloaded tokio-util v0.7.4 [INFO] [stderr] Downloaded rkyv v0.7.39 [INFO] [stderr] Downloaded hyper v0.14.23 [INFO] [stderr] Downloaded serde_json v1.0.91 [INFO] [stderr] Downloaded windows_i686_gnu v0.42.0 [INFO] [stderr] Downloaded rust_decimal v1.27.0 [INFO] [stderr] Downloaded lexical-util v0.8.5 [INFO] [stderr] Downloaded object v0.30.0 [INFO] [stderr] Downloaded rend v0.3.6 [INFO] [stderr] Downloaded addr2line v0.19.0 [INFO] [stderr] Downloaded toml v0.5.10 [INFO] [stderr] Downloaded backtrace v0.3.67 [INFO] [stderr] Downloaded ahash v0.8.6 [INFO] [stderr] Downloaded simd-json v0.13.9 [INFO] [stderr] Downloaded ref-cast v1.0.22 [INFO] [stderr] Downloaded cxxbridge-flags v1.0.85 [INFO] [stderr] Downloaded unicode-width v0.1.10 [INFO] [stderr] Downloaded serde_with_macros v3.8.1 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.42.0 [INFO] [stderr] Downloaded rkyv_derive v0.7.39 [INFO] [stderr] Downloaded darling v0.20.8 [INFO] [stderr] Downloaded lexical-core v0.8.5 [INFO] [stderr] Downloaded security-framework-sys v2.6.1 [INFO] [stderr] Downloaded simdutf8 v0.1.4 [INFO] [stderr] Downloaded windows_i686_msvc v0.42.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.42.0 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.42.0 [INFO] [stderr] Downloaded cxx-build v1.0.85 [INFO] [stderr] Downloaded lexical-parse-float v0.8.5 [INFO] [stderr] Downloaded lexical-write-float v0.8.5 [INFO] [stderr] Downloaded halfbrown v0.2.5 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.83 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.83 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.42.0 [INFO] [stderr] Downloaded iana-time-zone v0.1.53 [INFO] [stderr] Downloaded darling_core v0.20.8 [INFO] [stderr] Downloaded lexical-parse-integer v0.8.6 [INFO] [stderr] Downloaded lexical-write-integer v0.8.5 [INFO] [stderr] Downloaded ref-cast-impl v1.0.22 [INFO] [stderr] Downloaded value-trait v0.8.1 [INFO] [stderr] Downloaded ipnet v2.7.0 [INFO] [stderr] Downloaded bytecheck_derive v0.6.9 [INFO] [stderr] Downloaded cxx v1.0.85 [INFO] [stderr] Downloaded darling_macro v0.20.8 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.83 [INFO] [stderr] Downloaded scratch v1.0.3 [INFO] [stderr] Downloaded cc v1.0.78 [INFO] [stderr] Downloaded schannel v0.1.20 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.83 [INFO] [stderr] Downloaded wasm-bindgen v0.2.83 [INFO] [stderr] Downloaded encoding_rs v0.8.31 [INFO] [stderr] Downloaded tokio v1.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff5e1401140dcdec33c8e86cf6fbab4e669476f83840e1c463bede2671145295 [INFO] running `Command { std: "docker" "start" "-a" "ff5e1401140dcdec33c8e86cf6fbab4e669476f83840e1c463bede2671145295", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff5e1401140dcdec33c8e86cf6fbab4e669476f83840e1c463bede2671145295", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff5e1401140dcdec33c8e86cf6fbab4e669476f83840e1c463bede2671145295", kill_on_drop: false }` [INFO] [stdout] ff5e1401140dcdec33c8e86cf6fbab4e669476f83840e1c463bede2671145295 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86b0d660932742c5e4bf7c795441cc7c54968bcfd709493a764a4abe5c23a672 [INFO] running `Command { std: "docker" "start" "-a" "86b0d660932742c5e4bf7c795441cc7c54968bcfd709493a764a4abe5c23a672", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling serde v1.0.200 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling gimli v0.27.0 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling blobby v0.3.1 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling object v0.30.0 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling const_format_proc_macros v0.2.32 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling ipnet v2.7.0 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling const_format v0.2.32 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling serde_derive v1.0.200 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling serde_with_macros v3.8.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.8.1 [INFO] [stderr] Compiling serde_qs v0.10.1 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling okx-rs v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/api/v5/model.rs:1173:17 [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ ^^^^^^ ^^ the same lifetime is elided here [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.66s [INFO] running `Command { std: "docker" "inspect" "86b0d660932742c5e4bf7c795441cc7c54968bcfd709493a764a4abe5c23a672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86b0d660932742c5e4bf7c795441cc7c54968bcfd709493a764a4abe5c23a672", kill_on_drop: false }` [INFO] [stdout] 86b0d660932742c5e4bf7c795441cc7c54968bcfd709493a764a4abe5c23a672 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5a5480d749330988e7194b66fdefc84023c2eca27aefae985872d0b8c7a7cd9 [INFO] running `Command { std: "docker" "start" "-a" "d5a5480d749330988e7194b66fdefc84023c2eca27aefae985872d0b8c7a7cd9", kill_on_drop: false }` [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/api/v5/model.rs:1173:17 [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ ^^^^^^ ^^ the same lifetime is elided here [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling okx-rs v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `tungstenite` [INFO] [stdout] --> examples/ws_instruments.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tungstenite::Message; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tungstenite`, use `cargo add tungstenite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `okx_rs::api::v5::testkit` [INFO] [stdout] --> examples/rest_get_deposits.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use okx_rs::api::v5::testkit::with_env_private_client; [INFO] [stdout] | ^^^^^^^ could not find `testkit` in `v5` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/api/v5/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "example")] [INFO] [stdout] | ------------------- the item is gated behind the `example` feature [INFO] [stdout] 15 | pub mod testkit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/rest_get_deposits.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/rest_get_deposits.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | with_env_private_client(|client| async move { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | let response = client.request(GetDepositHistory::default()).await.unwrap(); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 6 | with_env_private_client(|client: /* Type */| async move { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/rest_get_deposits.rs:7:75 [INFO] [stdout] | [INFO] [stdout] 7 | let response = client.request(GetDepositHistory::default()).await.unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/rest_get_deposits.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `okx_rs::api::v5::testkit` [INFO] [stdout] --> examples/rest_get_funding_balances.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use okx_rs::api::v5::testkit::with_env_private_client; [INFO] [stdout] | ^^^^^^^ could not find `testkit` in `v5` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/api/v5/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "example")] [INFO] [stdout] | ------------------- the item is gated behind the `example` feature [INFO] [stdout] 15 | pub mod testkit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/rest_get_funding_balances.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/rest_get_funding_balances.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | with_env_private_client(|client| async move { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | let response = client [INFO] [stdout] 8 | .request(GetFundingBalances { [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 6 | with_env_private_client(|client: /* Type */| async move { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "rest_get_deposits") due to 5 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/rest_get_funding_balances.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/rest_get_funding_balances.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "rest_get_funding_balances") due to 5 previous errors [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752. [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "rest_get_instruments") due to 1 previous error [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] --> examples/ws_books.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | let (mut client, response) = tungstenite::connect(Production.public_websocket()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tungstenite`, use `cargo add tungstenite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] --> examples/ws_instruments.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | tungstenite::connect("wss://ws.okx.com:8443/ws/v5/public").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tungstenite`, use `cargo add tungstenite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_books.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Response HTTP code: {}", response.status()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env_logger` [INFO] [stdout] --> examples/rest_get_instruments.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | env_logger::try_init().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `env_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env_logger`, use `cargo add env_logger` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "ws_books") due to 3 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_books.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | client.send(channel.subscribe_message().into()).unwrap(); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_instruments.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | println!("Response HTTP code: {}", response.status()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_instruments.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | .send(Instruments(Futures).subscribe_message().into()) [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "ws_instruments") due to 4 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tungstenite` [INFO] [stdout] --> examples/ws_account.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tungstenite::Message; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tungstenite`, use `cargo add tungstenite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env_logger` [INFO] [stdout] --> examples/ws_account.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | env_logger::init(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `env_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env_logger`, use `cargo add env_logger` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] --> examples/ws_account.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 22 | let (mut client, response) = tungstenite::connect(DemoTrading.private_websocket()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `tungstenite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tungstenite`, use `cargo add tungstenite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_account.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | client.send(auth_msg.into()).unwrap(); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "ws_account") due to 4 previous errors [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/api/v5/model.rs:1173:17 [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^ ^^^^^^ ^^ the same lifetime is elided here [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1173 | pub fn iter(&self) -> impl Iterator> + '_ { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d5a5480d749330988e7194b66fdefc84023c2eca27aefae985872d0b8c7a7cd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5a5480d749330988e7194b66fdefc84023c2eca27aefae985872d0b8c7a7cd9", kill_on_drop: false }` [INFO] [stdout] d5a5480d749330988e7194b66fdefc84023c2eca27aefae985872d0b8c7a7cd9