[INFO] fetching crate okx-rs 0.1.1... [INFO] testing okx-rs-0.1.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate okx-rs 0.1.1 into /workspace/builds/worker-0-tc2/source [INFO] removed /workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate okx-rs 0.1.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ec7092b435bbf995fcd8cabdab4f293cf6909f2c1be48c611006483465fe289 [INFO] running `Command { std: "docker" "start" "-a" "7ec7092b435bbf995fcd8cabdab4f293cf6909f2c1be48c611006483465fe289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ec7092b435bbf995fcd8cabdab4f293cf6909f2c1be48c611006483465fe289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ec7092b435bbf995fcd8cabdab4f293cf6909f2c1be48c611006483465fe289", kill_on_drop: false }` [INFO] [stdout] 7ec7092b435bbf995fcd8cabdab4f293cf6909f2c1be48c611006483465fe289 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0082e156235e47e24f37e3ad780aa7ba588201d9214ad9be220a4575d560de2c [INFO] running `Command { std: "docker" "start" "-a" "0082e156235e47e24f37e3ad780aa7ba588201d9214ad9be220a4575d560de2c", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling tokio v1.23.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling serde v1.0.200 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling gimli v0.27.0 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling httpdate v1.0.2 [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 digest v0.10.7 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling ipnet v2.7.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling object v0.30.0 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling const_format_proc_macros v0.2.32 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling const_format v0.2.32 [INFO] [stderr] Compiling addr2line v0.19.0 [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 openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.4 [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_qs v0.10.1 [INFO] [stderr] Compiling serde_with v3.8.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: value assigned to `code` is never read [INFO] [stdout] --> src/api/error.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/api/error.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub msg: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/api/error.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `conn_id` is never read [INFO] [stdout] --> src/api/error.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub conn_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [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 41.21s [INFO] running `Command { std: "docker" "inspect" "0082e156235e47e24f37e3ad780aa7ba588201d9214ad9be220a4575d560de2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0082e156235e47e24f37e3ad780aa7ba588201d9214ad9be220a4575d560de2c", kill_on_drop: false }` [INFO] [stdout] 0082e156235e47e24f37e3ad780aa7ba588201d9214ad9be220a4575d560de2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 954f7b963a10bef43e1289dbcf2459d833827bf23c5e19b3303720144c0e7669 [INFO] running `Command { std: "docker" "start" "-a" "954f7b963a10bef43e1289dbcf2459d833827bf23c5e19b3303720144c0e7669", kill_on_drop: false }` [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stdout] warning: value assigned to `code` is never read [INFO] [stdout] --> src/api/error.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/api/error.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub msg: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/api/error.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `conn_id` is never read [INFO] [stdout] --> src/api/error.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub conn_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [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_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 `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[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] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_instruments.rs:12:40 [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/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] | ------ 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/ws_instruments.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | client [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] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/rest_get_funding_balances.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | let response = client [INFO] [stdout] | ________________________^ [INFO] [stdout] 8 | | .request(GetFundingBalances { [INFO] [stdout] 9 | | ..Default::default() [INFO] [stdout] 10 | | }) [INFO] [stdout] 11 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "ws_instruments") due to 4 previous errors [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] [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[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] [stderr] error: could not compile `okx-rs` (example "rest_get_funding_balances") due to 5 previous errors [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] [stdout] For more information about this error, try `rustc --explain E0433`. [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[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_books.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Response HTTP code: {}", response.status()); [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `okx-rs` (example "rest_get_instruments") due to 1 previous error [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/ws_books.rs:20:9 [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[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:24 [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] 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] [stderr] error: could not compile `okx-rs` (example "ws_books") due to 3 previous errors [INFO] [stderr] error: could not compile `okx-rs` (example "rest_get_deposits") due to 5 previous errors [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:5 [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] [stderr] error: could not compile `okx-rs` (example "ws_account") due to 4 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: value assigned to `code` is never read [INFO] [stdout] --> src/api/error.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/api/error.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub msg: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `data` is never read [INFO] [stdout] --> src/api/error.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `conn_id` is never read [INFO] [stdout] --> src/api/error.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub conn_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [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" "954f7b963a10bef43e1289dbcf2459d833827bf23c5e19b3303720144c0e7669", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "954f7b963a10bef43e1289dbcf2459d833827bf23c5e19b3303720144c0e7669", kill_on_drop: false }` [INFO] [stdout] 954f7b963a10bef43e1289dbcf2459d833827bf23c5e19b3303720144c0e7669