[INFO] cloning repository https://github.com/Aviral-Omar/upstox-rust-sdk [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aviral-Omar/upstox-rust-sdk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAviral-Omar%2Fupstox-rust-sdk", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAviral-Omar%2Fupstox-rust-sdk'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d12c5bc0383466f71ff4c3da12517237200c0165 [INFO] testing Aviral-Omar/upstox-rust-sdk against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAviral-Omar%2Fupstox-rust-sdk" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Aviral-Omar/upstox-rust-sdk [INFO] finished tweaking git repo https://github.com/Aviral-Omar/upstox-rust-sdk [INFO] tweaked toml for git repo https://github.com/Aviral-Omar/upstox-rust-sdk written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Aviral-Omar/upstox-rust-sdk on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Aviral-Omar/upstox-rust-sdk 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded protobuf-support v3.7.2 [INFO] [stderr] Downloaded serde_valid v1.0.5 [INFO] [stderr] Downloaded serde_valid_literal v1.0.5 [INFO] [stderr] Downloaded subtle v2.6.0 [INFO] [stderr] Downloaded serde_valid_derive v1.0.5 [INFO] [stderr] Downloaded imap-proto v0.16.5 [INFO] [stderr] Downloaded self_cell v1.0.4 [INFO] [stderr] Downloaded mailparse v0.16.1 [INFO] [stderr] Downloaded async-native-tls v0.5.0 [INFO] [stderr] Downloaded ezsockets v0.7.0 [INFO] [stderr] Downloaded protobuf-parse v3.7.2 [INFO] [stderr] Downloaded async-compression v0.4.22 [INFO] [stderr] Downloaded fantoccini v0.21.5 [INFO] [stderr] Downloaded protobuf v3.7.2 [INFO] [stderr] Downloaded wasmtimer v0.2.0 [INFO] [stderr] Downloaded webdriver v0.50.0 [INFO] [stderr] Downloaded enfync v0.1.6 [INFO] [stderr] Downloaded tokio-tungstenite-wasm v0.5.0 [INFO] [stderr] Downloaded protobuf-codegen v3.7.2 [INFO] [stderr] Downloaded stop-token v0.7.0 [INFO] [stderr] Downloaded atomic_enum v0.2.0 [INFO] [stderr] Downloaded uuid v1.9.1 [INFO] [stderr] Downloaded url_open v0.0.2 [INFO] [stderr] Downloaded async-imap v0.10.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b89caa081ba875b47316f1f2245e346f1dfbb97a8ec833f5042aea486a92a66 [INFO] running `Command { std: "docker" "start" "-a" "8b89caa081ba875b47316f1f2245e346f1dfbb97a8ec833f5042aea486a92a66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b89caa081ba875b47316f1f2245e346f1dfbb97a8ec833f5042aea486a92a66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b89caa081ba875b47316f1f2245e346f1dfbb97a8ec833f5042aea486a92a66", kill_on_drop: false }` [INFO] [stdout] 8b89caa081ba875b47316f1f2245e346f1dfbb97a8ec833f5042aea486a92a66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6abbf3a3f065a7cf30af76fca62073486fa8e2343da2d299cf833797995b66c [INFO] running `Command { std: "docker" "start" "-a" "e6abbf3a3f065a7cf30af76fca62073486fa8e2343da2d299cf833797995b66c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling protobuf v3.7.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling dtoa v1.0.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling dtoa-short v0.3.5 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling servo_arc v0.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling tokio-cron-scheduler v0.13.0 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling selectors v0.26.0 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling markup5ever v0.14.1 [INFO] [stderr] Compiling charset v0.1.3 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling croner v2.1.0 [INFO] [stderr] Compiling uuid v1.9.1 [INFO] [stderr] Compiling serde_valid_literal v1.0.5 [INFO] [stderr] Compiling imap-proto v0.16.5 [INFO] [stderr] Compiling stop-token v0.7.0 [INFO] [stderr] Compiling quoted_printable v0.5.0 [INFO] [stderr] Compiling ego-tree v0.10.0 [INFO] [stderr] Compiling self_cell v1.0.4 [INFO] [stderr] Compiling mailparse v0.16.1 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling url_open v0.0.2 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling match_token v0.1.0 [INFO] [stderr] Compiling serde_valid_derive v1.0.5 [INFO] [stderr] Compiling atomic_enum v0.2.0 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling cssparser v0.34.0 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling protobuf-support v3.7.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling protobuf-parse v3.7.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling enfync v0.1.6 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling async-native-tls v0.5.0 [INFO] [stderr] Compiling async-imap v0.10.3 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling tokio-tungstenite-wasm v0.5.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling protobuf-codegen v3.7.2 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling webdriver v0.50.0 [INFO] [stderr] Compiling serde_valid v1.0.5 [INFO] [stderr] Compiling html5ever v0.29.1 [INFO] [stderr] Compiling ezsockets v0.7.0 [INFO] [stderr] Compiling scraper v0.23.1 [INFO] [stderr] Compiling upstox-rust-sdk v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling fantoccini v0.21.5 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [INFO] running `Command { std: "docker" "inspect" "e6abbf3a3f065a7cf30af76fca62073486fa8e2343da2d299cf833797995b66c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6abbf3a3f065a7cf30af76fca62073486fa8e2343da2d299cf833797995b66c", kill_on_drop: false }` [INFO] [stdout] e6abbf3a3f065a7cf30af76fca62073486fa8e2343da2d299cf833797995b66c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a2c9e84624a8e20ef6f8d96063ba73990cea6639bd03fdf6ab2929ab9207313 [INFO] running `Command { std: "docker" "start" "-a" "2a2c9e84624a8e20ef6f8d96063ba73990cea6639bd03fdf6ab2929ab9207313", kill_on_drop: false }` [INFO] [stderr] Compiling upstox-rust-sdk v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.71s [INFO] running `Command { std: "docker" "inspect" "2a2c9e84624a8e20ef6f8d96063ba73990cea6639bd03fdf6ab2929ab9207313", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a2c9e84624a8e20ef6f8d96063ba73990cea6639bd03fdf6ab2929ab9207313", kill_on_drop: false }` [INFO] [stdout] 2a2c9e84624a8e20ef6f8d96063ba73990cea6639bd03fdf6ab2929ab9207313 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8aaac736f5c3255284685c9f13e40a44015c041267edc474f25cf60ff598e7ca [INFO] running `Command { std: "docker" "start" "-a" "8aaac736f5c3255284685c9f13e40a44015c041267edc474f25cf60ff598e7ca", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/upstox_rust_sdk-052df0e0a6707fad) [INFO] [stdout] [INFO] [stderr] Doc-tests upstox_rust_sdk [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/client.rs - client (line 215) ... FAILED [INFO] [stdout] test src/client.rs - client (line 6) ... FAILED [INFO] [stdout] test src/client.rs - client (line 148) ... FAILED [INFO] [stdout] test src/client.rs - client (line 98) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client (line 215) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dotenvy` [INFO] [stdout] --> src/client.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 5 | dotenvy::dotenv, [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `dotenvy` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dotenvy`, use `cargo add dotenvy` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] --> src/client.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 28 | tracing_subscriber::fmt::init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `connect_market_data_stream_v3` and `market_data_feed_v3_callback` in initializer of `WSConnectConfig` [INFO] [stdout] --> src/client.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 47 | WSConnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ missing `connect_market_data_stream_v3` and `market_data_feed_v3_callback` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 generic arguments but 2 generic arguments were supplied [INFO] [stdout] --> src/client.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 60 | ApiClient< [INFO] [stdout] | _____________^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | expected 0 generic arguments [INFO] [stdout] 61 | | Box, [INFO] [stdout] 62 | | Box, [INFO] [stdout] 63 | | >, [INFO] [stdout] | |_____________- help: remove the unnecessary generics [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 generic parameters [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:348:12 [INFO] [stdout] | [INFO] [stdout] 348 | pub struct ApiClient { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:280:58 [INFO] [stdout] | [INFO] [stdout] 67 | let _profile: SuccessResponse = api_client.get_profile().await.unwrap(); [INFO] [stdout] | -------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SuccessResponse`, found `Result, ...>` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `SuccessResponse<_>` [INFO] [stdout] found enum `Result, ErrorResponse>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result, ErrorResponse>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 67 | let _profile: SuccessResponse = api_client.get_profile().await.unwrap().expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:281:73 [INFO] [stdout] | [INFO] [stdout] 68 | let _funds_and_margin: SuccessResponse = api_client [INFO] [stdout] | ________________________________--------------------------------------___^ [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] 69 | | .get_fund_and_margin(Some(SegmentType::Sec)) [INFO] [stdout] 70 | | .await [INFO] [stdout] 71 | | .unwrap(); [INFO] [stdout] | |_____________________^ expected `SuccessResponse`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `SuccessResponse<_>` [INFO] [stdout] found enum `Result, ErrorResponse>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result, ErrorResponse>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 71 | .unwrap().expect("REASON"); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0107, E0308, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 6) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dotenvy` [INFO] [stdout] --> src/client.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | dotenvy::dotenv, [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `dotenvy` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dotenvy`, use `cargo add dotenvy` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] --> src/client.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | tracing_subscriber::fmt::init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 27 | let portfolio_feed_handler = |data: PortfolioFeedResponse| { [INFO] [stdout] | ----------------------------- the found closure [INFO] [stdout] ... [INFO] [stdout] 61 | portfolio_feed_callback: Some(portfolio_feed_handler), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^ expected `Box`, found closure [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found closure `{closure@src/client.rs:27:34: 27:63}` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: the type constructed contains `{closure@src/client.rs:27:34: 27:63}` due to the type of the argument passed [INFO] [stdout] --> src/client.rs:65:38 [INFO] [stdout] | [INFO] [stdout] 61 | portfolio_feed_callback: Some(portfolio_feed_handler), [INFO] [stdout] | ^^^^^----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/option.rs:601:5 [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 61 | portfolio_feed_callback: Some(Box::new(portfolio_feed_handler)), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 30 | let market_data_feed_handler = |data: MarketDataFeedResponse| { [INFO] [stdout] | ------------------------------ the found closure [INFO] [stdout] ... [INFO] [stdout] 63 | market_data_feed_callback: Some(market_data_feed_handler), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box`, found closure [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found closure `{closure@src/client.rs:30:36: 30:66}` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: the type constructed contains `{closure@src/client.rs:30:36: 30:66}` due to the type of the argument passed [INFO] [stdout] --> src/client.rs:67:40 [INFO] [stdout] | [INFO] [stdout] 63 | market_data_feed_callback: Some(market_data_feed_handler), [INFO] [stdout] | ^^^^^------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/core/src/option.rs:601:5 [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 63 | market_data_feed_callback: Some(Box::new(market_data_feed_handler)), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `connect_market_data_stream_v3` and `market_data_feed_v3_callback` in initializer of `WSConnectConfig` [INFO] [stdout] --> src/client.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 51 | WSConnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ missing `connect_market_data_stream_v3` and `market_data_feed_v3_callback` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 148) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] --> src/client.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 4 | tracing_subscriber::fmt::init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `tracing_subscriber` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tracing_subscriber`, use `cargo add tracing_subscriber` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/client.rs:154:27 [INFO] [stdout] | [INFO] [stdout] 7 | let api_key: String = env::var(UPLINK_API_KEY_ENV).unwrap(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPLINK_API_KEY_ENV` in this scope [INFO] [stdout] --> src/client.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 7 | let api_key: String = env::var(UPLINK_API_KEY_ENV).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::constants::UPLINK_API_KEY_ENV; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ApiClient` [INFO] [stdout] --> src/client.rs:158:35 [INFO] [stdout] | [INFO] [stdout] 11 | let (api_client, tasks_vec) = ApiClient::new( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ApiClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::ApiClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LoginConfig` in this scope [INFO] [stdout] --> src/client.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 13 | LoginConfig { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::LoginConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AutomateLoginConfig` in this scope [INFO] [stdout] --> src/client.rs:162:41 [INFO] [stdout] | [INFO] [stdout] 15 | automate_login_config: Some(AutomateLoginConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::AutomateLoginConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MailProvider` [INFO] [stdout] --> src/client.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 19 | mail_provider: Some(MailProvider::Google), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MailProvider` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::MailProvider; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WSConnectConfig` in this scope [INFO] [stdout] --> src/client.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 26 | WSConnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::WSConnectConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PortfolioFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:177:59 [INFO] [stdout] | [INFO] [stdout] 30 | portfolio_feed_callback: None::>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::models::ws::portfolio_feed_response::PortfolioFeedResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MarketDataFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:178:61 [INFO] [stdout] | [INFO] [stdout] 31 | market_data_feed_callback: None::>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MutexGuard` in this scope [INFO] [stdout] --> src/client.rs:186:25 [INFO] [stdout] | [INFO] [stdout] 39 | let api_client: MutexGuard< [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::MutexGuard; [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::nonpoison::MutexGuard; [INFO] [stdout] | [INFO] [stdout] 2 + use futures::lock::MutexGuard; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::sync::MutexGuard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ApiClient` in this scope [INFO] [stdout] --> src/client.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 40 | ApiClient< [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::ApiClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PortfolioFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:188:31 [INFO] [stdout] | [INFO] [stdout] 41 | Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::models::ws::portfolio_feed_response::PortfolioFeedResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MarketDataFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:189:31 [INFO] [stdout] | [INFO] [stdout] 42 | Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExchangeSegment` [INFO] [stdout] --> src/client.rs:198:23 [INFO] [stdout] | [INFO] [stdout] 51 | .get(&ExchangeSegment::NseIndex) [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ExchangeSegment` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::models::ExchangeSegment; [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::models::orders::ExchangeSegment; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `signal` [INFO] [stdout] --> src/client.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 61 | _ = signal::ctrl_c() => {} [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `signal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `signal`, use `cargo add signal` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::signal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope [INFO] [stdout] --> src/client.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 5 | let _ = dotenv(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `std::io::Stdout` in the current scope [INFO] [stdout] --> src/client.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 56 | std::io::stdout().flush().unwrap(); [INFO] [stdout] | ^^^^^ method not found in `std::io::Stdout` [INFO] [stdout] | [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/mod.rs:1801:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::io::Stdout` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Write` which provides `flush` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 98) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/client.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 6 | let api_key: String = env::var(UPLINK_API_KEY_ENV).unwrap(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UPLINK_API_KEY_ENV` in this scope [INFO] [stdout] --> src/client.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 6 | let api_key: String = env::var(UPLINK_API_KEY_ENV).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::constants::UPLINK_API_KEY_ENV; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ApiClient` [INFO] [stdout] --> src/client.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 10 | let (api_client, tasks_vec) = ApiClient::new( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ApiClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::ApiClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LoginConfig` in this scope [INFO] [stdout] --> src/client.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 12 | LoginConfig { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::LoginConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AutomateLoginConfig` in this scope [INFO] [stdout] --> src/client.rs:111:41 [INFO] [stdout] | [INFO] [stdout] 14 | automate_login_config: Some(AutomateLoginConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::AutomateLoginConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MailProvider` [INFO] [stdout] --> src/client.rs:121:37 [INFO] [stdout] | [INFO] [stdout] 24 | mail_provider: Some(MailProvider::Google), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `MailProvider` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::MailProvider; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WSConnectConfig` in this scope [INFO] [stdout] --> src/client.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 29 | WSConnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::client::WSConnectConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PortfolioFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:130:59 [INFO] [stdout] | [INFO] [stdout] 33 | portfolio_feed_callback: None::>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use upstox_rust_sdk::models::ws::portfolio_feed_response::PortfolioFeedResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MarketDataFeedResponse` in this scope [INFO] [stdout] --> src/client.rs:131:61 [INFO] [stdout] | [INFO] [stdout] 34 | market_data_feed_callback: None::>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `signal` [INFO] [stdout] --> src/client.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 42 | _ = signal::ctrl_c() => {} [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `signal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `signal`, use `cargo add signal` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::signal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope [INFO] [stdout] --> src/client.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 4 | let _ = dotenv(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client (line 148) [INFO] [stdout] src/client.rs - client (line 215) [INFO] [stdout] src/client.rs - client (line 6) [INFO] [stdout] src/client.rs - client (line 98) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "8aaac736f5c3255284685c9f13e40a44015c041267edc474f25cf60ff598e7ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8aaac736f5c3255284685c9f13e40a44015c041267edc474f25cf60ff598e7ca", kill_on_drop: false }` [INFO] [stdout] 8aaac736f5c3255284685c9f13e40a44015c041267edc474f25cf60ff598e7ca