[INFO] cloning repository https://github.com/guangyu-coder/hk-us-quant-platform [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guangyu-coder/hk-us-quant-platform" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Fhk-us-quant-platform", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Fhk-us-quant-platform'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f23975db461cf9629d14b8680636f3e41ec8984 [INFO] checking guangyu-coder/hk-us-quant-platform against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Fhk-us-quant-platform" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/guangyu-coder/hk-us-quant-platform [INFO] finished tweaking git repo https://github.com/guangyu-coder/hk-us-quant-platform [INFO] tweaked toml for git repo https://github.com/guangyu-coder/hk-us-quant-platform written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/guangyu-coder/hk-us-quant-platform on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/guangyu-coder/hk-us-quant-platform 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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a716635b9e05f17ddb8209a2eb45e2854261277bfacbb6e996d8e0d8131b26b8 [INFO] running `Command { std: "docker" "start" "-a" "a716635b9e05f17ddb8209a2eb45e2854261277bfacbb6e996d8e0d8131b26b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a716635b9e05f17ddb8209a2eb45e2854261277bfacbb6e996d8e0d8131b26b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a716635b9e05f17ddb8209a2eb45e2854261277bfacbb6e996d8e0d8131b26b8", kill_on_drop: false }` [INFO] [stdout] a716635b9e05f17ddb8209a2eb45e2854261277bfacbb6e996d8e0d8131b26b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a15e334b2b5a63a0bedfda517b593c936e3508b69eba82b23f4e1b7a910a482 [INFO] running `Command { std: "docker" "start" "-a" "0a15e334b2b5a63a0bedfda517b593c936e3508b69eba82b23f4e1b7a910a482", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling zmij v1.0.12 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking webpki-roots v1.0.5 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking rusty-fork v0.3.1 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking proptest v1.9.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking tokio-test v0.4.5 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking redis v0.24.0 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking hk-us-quant-platform v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `Broker` is never used [INFO] [stdout] --> src/broker/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Broker: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerAccount` is never constructed [INFO] [stdout] --> src/broker/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct BrokerAccount { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerOrderResult` is never constructed [INFO] [stdout] --> src/broker/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct BrokerOrderResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BrokerOrderStatus` is never used [INFO] [stdout] --> src/broker/mod.rs:78:10 [INFO] [stdout] | [INFO] [stdout] 78 | pub enum BrokerOrderStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_order_status` is never used [INFO] [stdout] --> src/broker/mod.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl BrokerOrderStatus { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 99 | pub fn to_order_status(&self) -> OrderStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerPosition` is never constructed [INFO] [stdout] --> src/broker/mod.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BrokerPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerQuote` is never constructed [INFO] [stdout] --> src/broker/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct BrokerQuote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerConfig` is never constructed [INFO] [stdout] --> src/broker/mod.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct BrokerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BrokerProvider` is never used [INFO] [stdout] --> src/broker/mod.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum BrokerProvider { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_broker` is never used [INFO] [stdout] --> src/broker/mod.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn create_broker(config: &BrokerConfig) -> AppResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockBroker` is never constructed [INFO] [stdout] --> src/broker/mod.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct MockBroker { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/broker/mod.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl MockBroker { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 198 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_PAPER_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ALPACA_PAPER_URL: &str = "https://paper-api.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_LIVE_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const ALPACA_LIVE_URL: &str = "https://api.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_DATA_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const ALPACA_DATA_URL: &str = "https://data.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaBroker` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct AlpacaBroker { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `auth_headers`, `api_get`, `api_post`, `api_delete`, and `data_get` are never used [INFO] [stdout] --> src/broker/alpaca.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl AlpacaBroker { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 28 | pub async fn new(config: &BrokerConfig) -> AppResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn auth_headers(&self) -> reqwest::header::HeaderMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | async fn api_get Deserialize<'de>>(&self, endpoint: &str) -> AppResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | async fn api_post Deserialize<'de>, B: Serialize>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | async fn api_delete(&self, endpoint: &str) -> AppResult<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | async fn data_get Deserialize<'de>>(&self, endpoint: &str) -> AppResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaAccount` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | struct AlpacaAccount { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaOrderRequest` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 388 | struct AlpacaOrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaOrder` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | struct AlpacaOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaPosition` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | struct AlpacaPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaQuoteResponse` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:461:8 [INFO] [stdout] | [INFO] [stdout] 461 | struct AlpacaQuoteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaMultiQuoteResponse` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | struct AlpacaMultiQuoteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaQuote` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:471:8 [INFO] [stdout] | [INFO] [stdout] 471 | struct AlpacaQuote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_decimal` is never used [INFO] [stdout] --> src/broker/alpaca.rs:480:4 [INFO] [stdout] | [INFO] [stdout] 480 | fn parse_decimal(s: &str) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_alpaca_status` is never used [INFO] [stdout] --> src/broker/alpaca.rs:484:4 [INFO] [stdout] | [INFO] [stdout] 484 | fn parse_alpaca_status(status: &str) -> BrokerOrderStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `tick_size`, `min_order_size`, and `max_order_size` are never read [INFO] [stdout] --> src/data/validators.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub trading_hours: TradingHours, [INFO] [stdout] 23 | pub tick_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub min_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub max_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> src/data/validators.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingHours { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingHours` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/data/validators.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DataValidator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn validate_candlestick(&self, data: &CandlestickData) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn validate_order_book(&self, order_book: &OrderBook) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | pub fn add_valid_symbol(&mut self, symbol: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub fn remove_valid_symbol(&mut self, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn update_price_thresholds(&mut self, min_price: Decimal, max_price: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn update_volume_threshold(&mut self, max_volume: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub fn update_spread_threshold(&mut self, max_spread_percent: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn add_exchange_config(&mut self, exchange: String, config: ExchangeConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventMetrics` is never constructed [INFO] [stdout] --> src/events.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct EventMetrics { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventStore` is never constructed [INFO] [stdout] --> src/events.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct EventStore { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_events`, and `replay_events` are never used [INFO] [stdout] --> src/events.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl EventStore { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 342 | pub fn new(redis_client: RedisClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn get_events( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 387 | pub async fn replay_events( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MarketDataProvider` is never used [INFO] [stdout] --> src/market_data/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait MarketDataProvider: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bandwidth` is never read [INFO] [stdout] --> src/strategy/indicators.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct BollingerBandsResult { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 180 | pub bandwidth: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BollingerBandsResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ATR` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct ATR { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `calculate` are never used [INFO] [stdout] --> src/strategy/indicators.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl ATR { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 242 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn calculate(&self, ohlc: &[(Decimal, Decimal, Decimal)]) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stochastic` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct Stochastic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StochasticResult` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub struct StochasticResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `calculate` are never used [INFO] [stdout] --> src/strategy/indicators.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 284 | impl Stochastic { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 285 | pub fn new(k_period: usize, d_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn calculate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataEvent` is never constructed [INFO] [stdout] --> src/types.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct DataEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DataEventType` is never used [INFO] [stdout] --> src/types.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum DataEventType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_metadata` are never used [INFO] [stdout] --> src/types.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl DataEvent { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new(event_type: DataEventType, data: MarketData) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CandlestickData` is never constructed [INFO] [stdout] --> src/types.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct CandlestickData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl CandlestickData { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 191 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn with_vwap(mut self, vwap: Decimal, trades_count: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn price_range(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn is_bullish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn is_doji(&self, threshold_percent: f64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBookLevel` is never constructed [INFO] [stdout] --> src/types.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct OrderBookLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBook` is never constructed [INFO] [stdout] --> src/types.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub struct OrderBook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl OrderBook { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 269 | pub fn new(symbol: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn best_bid(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn best_ask(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn total_bid_volume(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn total_ask_volume(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn imbalance(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_bus` is never read [INFO] [stdout] --> src/websocket.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct WSState { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 203 | pub manager: Arc, [INFO] [stdout] 204 | pub event_bus: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WSState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ws_handler` is never used [INFO] [stdout] --> src/websocket.rs:208:14 [INFO] [stdout] | [INFO] [stdout] 208 | pub async fn ws_handler(ws: WebSocketUpgrade, State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Broker` is never used [INFO] [stdout] --> src/broker/mod.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Broker: Send + Sync { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerAccount` is never constructed [INFO] [stdout] --> src/broker/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct BrokerAccount { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerOrderResult` is never constructed [INFO] [stdout] --> src/broker/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct BrokerOrderResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_order_status` is never used [INFO] [stdout] --> src/broker/mod.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl BrokerOrderStatus { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 99 | pub fn to_order_status(&self) -> OrderStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerPosition` is never constructed [INFO] [stdout] --> src/broker/mod.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BrokerPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerQuote` is never constructed [INFO] [stdout] --> src/broker/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct BrokerQuote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrokerConfig` is never constructed [INFO] [stdout] --> src/broker/mod.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct BrokerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BrokerProvider` is never used [INFO] [stdout] --> src/broker/mod.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum BrokerProvider { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_broker` is never used [INFO] [stdout] --> src/broker/mod.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | pub async fn create_broker(config: &BrokerConfig) -> AppResult> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockBroker` is never constructed [INFO] [stdout] --> src/broker/mod.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct MockBroker { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/broker/mod.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl MockBroker { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 198 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_PAPER_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ALPACA_PAPER_URL: &str = "https://paper-api.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_LIVE_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const ALPACA_LIVE_URL: &str = "https://api.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALPACA_DATA_URL` is never used [INFO] [stdout] --> src/broker/alpaca.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const ALPACA_DATA_URL: &str = "https://data.alpaca.markets"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaBroker` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct AlpacaBroker { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `auth_headers`, `api_get`, `api_post`, `api_delete`, and `data_get` are never used [INFO] [stdout] --> src/broker/alpaca.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl AlpacaBroker { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 28 | pub async fn new(config: &BrokerConfig) -> AppResult { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn auth_headers(&self) -> reqwest::header::HeaderMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | async fn api_get Deserialize<'de>>(&self, endpoint: &str) -> AppResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | async fn api_post Deserialize<'de>, B: Serialize>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | async fn api_delete(&self, endpoint: &str) -> AppResult<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | async fn data_get Deserialize<'de>>(&self, endpoint: &str) -> AppResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaAccount` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | struct AlpacaAccount { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaOrderRequest` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:388:8 [INFO] [stdout] | [INFO] [stdout] 388 | struct AlpacaOrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaOrder` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | struct AlpacaOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaPosition` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:430:8 [INFO] [stdout] | [INFO] [stdout] 430 | struct AlpacaPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaQuoteResponse` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:461:8 [INFO] [stdout] | [INFO] [stdout] 461 | struct AlpacaQuoteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaMultiQuoteResponse` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | struct AlpacaMultiQuoteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlpacaQuote` is never constructed [INFO] [stdout] --> src/broker/alpaca.rs:471:8 [INFO] [stdout] | [INFO] [stdout] 471 | struct AlpacaQuote { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `tick_size`, `min_order_size`, and `max_order_size` are never read [INFO] [stdout] --> src/data/validators.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub trading_hours: TradingHours, [INFO] [stdout] 23 | pub tick_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub min_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub max_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> src/data/validators.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingHours { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingHours` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_exchange_config` is never used [INFO] [stdout] --> src/data/validators.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DataValidator { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn add_exchange_config(&mut self, exchange: String, config: ExchangeConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventMetrics` is never constructed [INFO] [stdout] --> src/events.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct EventMetrics { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventStore` is never constructed [INFO] [stdout] --> src/events.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct EventStore { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_events`, and `replay_events` are never used [INFO] [stdout] --> src/events.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl EventStore { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 342 | pub fn new(redis_client: RedisClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn get_events( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 387 | pub async fn replay_events( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MarketDataProvider` is never used [INFO] [stdout] --> src/market_data/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait MarketDataProvider: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bandwidth` is never read [INFO] [stdout] --> src/strategy/indicators.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct BollingerBandsResult { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 180 | pub bandwidth: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BollingerBandsResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ATR` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct ATR { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `calculate` are never used [INFO] [stdout] --> src/strategy/indicators.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl ATR { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 242 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn calculate(&self, ohlc: &[(Decimal, Decimal, Decimal)]) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stochastic` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct Stochastic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StochasticResult` is never constructed [INFO] [stdout] --> src/strategy/indicators.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | pub struct StochasticResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `calculate` are never used [INFO] [stdout] --> src/strategy/indicators.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 284 | impl Stochastic { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 285 | pub fn new(k_period: usize, d_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn calculate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataEvent` is never constructed [INFO] [stdout] --> src/types.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct DataEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DataEventType` is never used [INFO] [stdout] --> src/types.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum DataEventType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_metadata` are never used [INFO] [stdout] --> src/types.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl DataEvent { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new(event_type: DataEventType, data: MarketData) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_vwap` and `body_size` are never used [INFO] [stdout] --> src/types.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl CandlestickData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn with_vwap(mut self, vwap: Decimal, trades_count: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `imbalance` is never used [INFO] [stdout] --> src/types.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn imbalance(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_bus` is never read [INFO] [stdout] --> src/websocket.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct WSState { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 203 | pub manager: Arc, [INFO] [stdout] 204 | pub event_bus: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WSState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ws_handler` is never used [INFO] [stdout] --> src/websocket.rs:208:14 [INFO] [stdout] | [INFO] [stdout] 208 | pub async fn ws_handler(ws: WebSocketUpgrade, State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0, sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "0a15e334b2b5a63a0bedfda517b593c936e3508b69eba82b23f4e1b7a910a482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a15e334b2b5a63a0bedfda517b593c936e3508b69eba82b23f4e1b7a910a482", kill_on_drop: false }` [INFO] [stdout] 0a15e334b2b5a63a0bedfda517b593c936e3508b69eba82b23f4e1b7a910a482