[INFO] cloning repository https://github.com/rishav-eulb/eulb-degn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishav-eulb/eulb-degn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishav-eulb%2Feulb-degn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishav-eulb%2Feulb-degn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 61135633ab508112b1b6e0df17e764a868895154 [INFO] checking rishav-eulb/eulb-degn against 895980e0290783bb09b1ccf1b11f14eb09b10430 for pr-160186 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishav-eulb%2Feulb-degn" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rishav-eulb/eulb-degn [INFO] finished tweaking git repo https://github.com/rishav-eulb/eulb-degn [INFO] tweaked toml for git repo https://github.com/rishav-eulb/eulb-degn written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rishav-eulb/eulb-degn on toolchain 895980e0290783bb09b1ccf1b11f14eb09b10430 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rishav-eulb/eulb-degn 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" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f [INFO] running `Command { std: "docker" "start" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.15 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling cc v1.2.61 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking keccak v0.1.6 [INFO] [stderr] Checking const-hex v1.19.0 [INFO] [stderr] Checking rustc-hash v2.1.2 [INFO] [stderr] Checking zerofrom v0.1.7 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking yoke v0.8.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking hashbrown v0.17.0 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking alloy-rlp v0.3.15 [INFO] [stderr] Checking tokio v1.52.2 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Compiling syn-solidity v1.5.7 [INFO] [stderr] Checking ruint v1.18.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha3 v0.10.9 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Checking bitflags v2.11.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling aws-lc-rs v1.16.3 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Compiling aws-lc-sys v0.40.0 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking crc-catalog v2.5.0 [INFO] [stderr] Compiling openssl-sys v0.9.115 [INFO] [stderr] Checking crc v3.4.0 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking nybbles v0.4.8 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling alloy-sol-type-parser v1.5.7 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling openssl v0.10.79 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking data-encoding v2.11.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling pin-project-internal v1.1.12 [INFO] [stderr] Compiling num_enum_derive v0.7.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking rand_core v0.10.1 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking lru v0.16.4 [INFO] [stderr] Compiling fastrand v2.4.1 [INFO] [stderr] Checking pin-project v1.1.12 [INFO] [stderr] Checking num_enum v0.7.6 [INFO] [stderr] Compiling phf_generator v0.13.1 [INFO] [stderr] Compiling snap v1.1.1 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Checking chacha20 v0.10.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling phf_macros v0.13.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking rand v0.10.1 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking serde_html_form v0.4.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking secrecy v0.10.3 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking phf v0.13.1 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Compiling alloy-primitives v1.5.7 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Compiling serde_with_macros v3.19.0 [INFO] [stderr] Compiling alloy-tx-macros v1.8.3 [INFO] [stderr] Compiling bon-macros v3.9.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking chainlink-data-streams-report v1.2.1 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking alloy-json-abi v1.5.7 [INFO] [stderr] Checking serde_with v3.19.0 [INFO] [stderr] Checking alloy-eip2124 v0.2.0 [INFO] [stderr] Checking alloy-serde v1.8.3 [INFO] [stderr] Checking alloy-eip2930 v0.2.3 [INFO] [stderr] Checking alloy-eip7702 v0.6.3 [INFO] [stderr] Checking alloy-eip7928 v0.3.5 [INFO] [stderr] Checking alloy-trie v0.9.5 [INFO] [stderr] Checking alloy-signer v1.8.3 [INFO] [stderr] Checking tower-http v0.6.9 [INFO] [stderr] Checking h2 v0.4.14 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking alloy-chains v0.2.34 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Compiling alloy-sol-macro-input v1.5.7 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.5.7 [INFO] [stderr] Checking alloy-eips v1.8.3 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking bon v3.9.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking alloy-consensus v1.8.3 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Compiling alloy-sol-macro v1.5.7 [INFO] [stderr] Checking alloy-sol-types v1.5.7 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking alloy-network-primitives v1.8.3 [INFO] [stderr] Checking alloy-consensus-any v1.8.3 [INFO] [stderr] Checking chainlink-data-streams-sdk v1.2.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking alloy-json-rpc v1.8.3 [INFO] [stderr] Checking alloy-rpc-types-eth v1.8.3 [INFO] [stderr] Checking alloy-dyn-abi v1.5.7 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Checking alloy-transport v1.8.3 [INFO] [stderr] Checking alloy-core v1.5.7 [INFO] [stderr] Checking rustls-webpki v0.103.13 [INFO] [stderr] Checking alloy-rpc-types-any v1.8.3 [INFO] [stderr] Checking alloy-rpc-types v1.8.3 [INFO] [stderr] Checking alloy-network v1.8.3 [INFO] [stderr] Checking alloy-signer-local v1.8.3 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.7.0 [INFO] [stderr] Checking tungstenite v0.29.0 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking reqwest v0.13.3 [INFO] [stderr] Checking tokio-tungstenite v0.29.0 [INFO] [stderr] Checking alloy-transport-http v1.8.3 [INFO] [stderr] Checking alloy-rpc-client v1.8.3 [INFO] [stderr] Checking alloy-provider v1.8.3 [INFO] [stderr] Checking alloy-contract v1.8.3 [INFO] [stderr] Checking alloy v1.8.3 [INFO] [stderr] Checking polymarket_client_sdk_v2 v0.6.0-canary.1 [INFO] [stderr] Checking polymarket-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `outcome_prices`, `active`, and `liquidity` are never read [INFO] [stdout] --> tests/test_market_discovery.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 41 | struct GammaMarket { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | outcome_prices: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 48 | question: Option, [INFO] [stdout] 49 | active: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | liquidity: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GammaMarket` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TradeLogEntry` [INFO] [stdout] --> src/execution/mod.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | pub use portfolio::{ActiveTrade, PortfolioState, RiskStatus, TradeLogEntry}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `slug` is never read [INFO] [stdout] --> tests/test_market_discovery.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | struct MarketInfo { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 55 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TradeLogEntry` [INFO] [stdout] --> src/execution/mod.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | pub use portfolio::{ActiveTrade, PortfolioState, RiskStatus, TradeLogEntry}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `polymarket_rtds_url` is never read [INFO] [stdout] --> src/config.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub polymarket_rtds_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PartialFill` is never constructed [INFO] [stdout] --> src/execution/order_builder.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum OrderResult { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 25 | Filled { fill_price: f64, shares: f64 }, [INFO] [stdout] 26 | PartialFill { fill_price: f64, filled_shares: f64, remaining_shares: f64 }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResult` 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: function `append_trade_log` is never used [INFO] [stdout] --> src/execution/portfolio.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn append_trade_log(entry: &TradeLogEntry, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeLogEntry` is never constructed [INFO] [stdout] --> src/execution/portfolio.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct TradeLogEntry { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `market_end_ts` is never read [INFO] [stdout] --> src/execution/redeemer.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PendingRedemption { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub market_end_ts: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PendingRedemption` 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 `pending_count` is never used [INFO] [stdout] --> src/execution/redeemer.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Redeemer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn pending_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `activate_cooldown`, `check_daily_halt`, `reset_daily`, and `open_position_count` are never used [INFO] [stdout] --> src/execution/risk.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn activate_cooldown(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn check_daily_halt(&mut self, daily_pnl: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn open_position_count(&self, asset: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `trades` is never read [INFO] [stdout] --> src/execution/tracker.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct OrderTracker { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | trades: VecDeque, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTracker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/execution/tracker.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 19 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub leg1_price: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub leg2_price: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | pub shares: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub pnl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub outcome: TradeOutcome, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeRecord` 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: variants `Locked`, `ForceClose`, and `Expired` are never constructed [INFO] [stdout] --> src/execution/tracker.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum TradeOutcome { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 30 | Locked, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | ForceClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeOutcome` 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: methods `record_trade`, `total_pnl`, and `reset_daily` are never used [INFO] [stdout] --> src/execution/tracker.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl OrderTracker { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn record_trade(&mut self, record: TradeRecord) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn total_pnl(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/feeds/chainlink.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ChainlinkPrice { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainlinkPrice` 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: fields `asset`, `price`, `size`, `side`, and `timestamp` are never read [INFO] [stdout] --> src/feeds/hyperliquid.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct HlTrade { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 28 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | pub price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | pub size: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub side: TradeSide, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HlTrade` 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: fields `bids` and `timestamp` are never read [INFO] [stdout] --> src/feeds/polymarket.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PolyBook { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub token_id: String, [INFO] [stdout] 15 | pub bids: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub asks: Vec, [INFO] [stdout] 17 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyBook` 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 `size` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct PolyLevel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | pub price: f64, [INFO] [stdout] 24 | pub size: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyLevel` 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 `timestamp` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct PolyPrice { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyPrice` 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: fields `side`, `size`, `best_bid`, and `timestamp` are never read [INFO] [stdout] --> src/feeds/polymarket.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct ClobWsMsg { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | // best_bid_ask fields [INFO] [stdout] 57 | best_bid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClobWsMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `best_bid` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | struct PriceChangeEntry { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | best_bid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceChangeEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_poly_rtds` is never used [INFO] [stdout] --> src/feeds/polymarket.rs:196:14 [INFO] [stdout] | [INFO] [stdout] 196 | pub async fn run_poly_rtds( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_rtds_message` is never used [INFO] [stdout] --> src/feeds/polymarket.rs:380:4 [INFO] [stdout] | [INFO] [stdout] 380 | fn process_rtds_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/indicators/book_imbalance.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ImbalanceState { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub bid_depth: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | /// Total ask depth (in USD). [INFO] [stdout] 22 | pub ask_depth: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | /// Top-of-book bid/ask ratio. [INFO] [stdout] 24 | pub tob_ratio: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | /// Best bid price. [INFO] [stdout] 26 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | /// Best ask price. [INFO] [stdout] 28 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | /// Mid price. [INFO] [stdout] 30 | pub mid_price: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | /// Spread in basis points. [INFO] [stdout] 32 | pub spread_bps: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImbalanceState` 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 `is_aligned` is never used [INFO] [stdout] --> src/indicators/book_imbalance.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl BookImbalanceTracker { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn is_aligned(&self, asset: &str, bps_direction: f64, threshold: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `short_window_secs` and `long_window_secs` are never read [INFO] [stdout] --> src/indicators/momentum.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MomentumTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | short_window_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | /// Long window in seconds (e.g. 15s). [INFO] [stdout] 13 | long_window_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MomentumTracker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MomentumState` is never constructed [INFO] [stdout] --> src/indicators/momentum.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MomentumState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute`, `price_at_offset`, and `clear` are never used [INFO] [stdout] --> src/indicators/momentum.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl MomentumTracker { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn compute(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn price_at_offset(&self, now: DateTime, offset_secs: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price`, `source`, and `timestamp` are never read [INFO] [stdout] --> src/indicators/price_aggregator.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct PriceState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | /// Source of the price. [INFO] [stdout] 34 | pub source: PriceSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceState` 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: methods `update_chainlink`, `clear_open_prices`, and `has_price` are never used [INFO] [stdout] --> src/indicators/price_aggregator.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PriceAggregator { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn update_chainlink(&mut self, asset: &str, price: f64, ts: DateTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn clear_open_prices(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn has_price(&self, asset: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `question` is never read [INFO] [stdout] --> src/market_discovery/gamma.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MarketInfo { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub question: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketInfo` 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: function `current_slug` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn current_slug(asset: &str, interval_secs: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_market_open_ts` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn current_market_open_ts(interval_secs: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_market_open_ts` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn next_market_open_ts(interval_secs: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `side` is never read [INFO] [stdout] --> src/strategy/leg_manager.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | PlaceLeg1 { [INFO] [stdout] | --------- field in this variant [INFO] [stdout] 45 | token_id: String, [INFO] [stdout] 46 | side: Leg1Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegAction` 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: methods `reset` and `is_locked` are never used [INFO] [stdout] --> src/strategy/leg_manager.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl LegManager { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn reset( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn is_locked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `leg2_min_wait_secs` and `leg2_wait_secs` are never read [INFO] [stdout] --> src/strategy/params.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StrategyParams { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub leg2_min_wait_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | /// Optimization window for Leg2 (track best price for N seconds). [INFO] [stdout] 15 | pub leg2_wait_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyParams` 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: methods `is_empty` and `clear` are never used [INFO] [stdout] --> src/utils/ring_buffer.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl RingBuffer { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `polymarket_rtds_url` is never read [INFO] [stdout] --> src/config.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub polymarket_rtds_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PartialFill` is never constructed [INFO] [stdout] --> src/execution/order_builder.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum OrderResult { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 25 | Filled { fill_price: f64, shares: f64 }, [INFO] [stdout] 26 | PartialFill { fill_price: f64, filled_shares: f64, remaining_shares: f64 }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResult` 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: function `append_trade_log` is never used [INFO] [stdout] --> src/execution/portfolio.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn append_trade_log(entry: &TradeLogEntry, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeLogEntry` is never constructed [INFO] [stdout] --> src/execution/portfolio.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct TradeLogEntry { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `market_end_ts` is never read [INFO] [stdout] --> src/execution/redeemer.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PendingRedemption { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub market_end_ts: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PendingRedemption` 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 `pending_count` is never used [INFO] [stdout] --> src/execution/redeemer.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Redeemer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn pending_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `activate_cooldown`, `check_daily_halt`, `reset_daily`, and `open_position_count` are never used [INFO] [stdout] --> src/execution/risk.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn activate_cooldown(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn check_daily_halt(&mut self, daily_pnl: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn open_position_count(&self, asset: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `trades` is never read [INFO] [stdout] --> src/execution/tracker.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct OrderTracker { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | trades: VecDeque, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTracker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/execution/tracker.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 19 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub leg1_price: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub leg2_price: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | pub shares: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub pnl: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub outcome: TradeOutcome, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeRecord` 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: variants `Locked`, `ForceClose`, and `Expired` are never constructed [INFO] [stdout] --> src/execution/tracker.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum TradeOutcome { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 30 | Locked, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | ForceClose, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeOutcome` 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: methods `record_trade`, `total_pnl`, and `reset_daily` are never used [INFO] [stdout] --> src/execution/tracker.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl OrderTracker { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn record_trade(&mut self, record: TradeRecord) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn total_pnl(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/feeds/chainlink.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ChainlinkPrice { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChainlinkPrice` 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: fields `asset`, `price`, `size`, `side`, and `timestamp` are never read [INFO] [stdout] --> src/feeds/hyperliquid.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct HlTrade { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 28 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | pub price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | pub size: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | pub side: TradeSide, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HlTrade` 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: fields `bids` and `timestamp` are never read [INFO] [stdout] --> src/feeds/polymarket.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PolyBook { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub token_id: String, [INFO] [stdout] 15 | pub bids: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub asks: Vec, [INFO] [stdout] 17 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyBook` 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 `size` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct PolyLevel { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 23 | pub price: f64, [INFO] [stdout] 24 | pub size: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyLevel` 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 `timestamp` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct PolyPrice { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PolyPrice` 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: fields `side`, `size`, `best_bid`, and `timestamp` are never read [INFO] [stdout] --> src/feeds/polymarket.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 45 | struct ClobWsMsg { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | // best_bid_ask fields [INFO] [stdout] 57 | best_bid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClobWsMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `best_bid` is never read [INFO] [stdout] --> src/feeds/polymarket.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | struct PriceChangeEntry { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | best_bid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceChangeEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_poly_rtds` is never used [INFO] [stdout] --> src/feeds/polymarket.rs:196:14 [INFO] [stdout] | [INFO] [stdout] 196 | pub async fn run_poly_rtds( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_rtds_message` is never used [INFO] [stdout] --> src/feeds/polymarket.rs:380:4 [INFO] [stdout] | [INFO] [stdout] 380 | fn process_rtds_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/indicators/book_imbalance.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ImbalanceState { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub bid_depth: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | /// Total ask depth (in USD). [INFO] [stdout] 22 | pub ask_depth: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | /// Top-of-book bid/ask ratio. [INFO] [stdout] 24 | pub tob_ratio: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | /// Best bid price. [INFO] [stdout] 26 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | /// Best ask price. [INFO] [stdout] 28 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | /// Mid price. [INFO] [stdout] 30 | pub mid_price: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | /// Spread in basis points. [INFO] [stdout] 32 | pub spread_bps: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImbalanceState` 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 `is_aligned` is never used [INFO] [stdout] --> src/indicators/book_imbalance.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl BookImbalanceTracker { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn is_aligned(&self, asset: &str, bps_direction: f64, threshold: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `short_window_secs` and `long_window_secs` are never read [INFO] [stdout] --> src/indicators/momentum.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MomentumTracker { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | short_window_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | /// Long window in seconds (e.g. 15s). [INFO] [stdout] 13 | long_window_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MomentumTracker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MomentumState` is never constructed [INFO] [stdout] --> src/indicators/momentum.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MomentumState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute`, `price_at_offset`, and `clear` are never used [INFO] [stdout] --> src/indicators/momentum.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl MomentumTracker { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn compute(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn price_at_offset(&self, now: DateTime, offset_secs: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price`, `source`, and `timestamp` are never read [INFO] [stdout] --> src/indicators/price_aggregator.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct PriceState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | /// Source of the price. [INFO] [stdout] 34 | pub source: PriceSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceState` 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: methods `update_chainlink`, `clear_open_prices`, and `has_price` are never used [INFO] [stdout] --> src/indicators/price_aggregator.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PriceAggregator { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn update_chainlink(&mut self, asset: &str, price: f64, ts: DateTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn clear_open_prices(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn has_price(&self, asset: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `question` is never read [INFO] [stdout] --> src/market_discovery/gamma.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MarketInfo { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub question: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketInfo` 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: function `current_slug` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn current_slug(asset: &str, interval_secs: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_market_open_ts` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn current_market_open_ts(interval_secs: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_market_open_ts` is never used [INFO] [stdout] --> src/market_discovery/slug.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn next_market_open_ts(interval_secs: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `side` is never read [INFO] [stdout] --> src/strategy/leg_manager.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | PlaceLeg1 { [INFO] [stdout] | --------- field in this variant [INFO] [stdout] 45 | token_id: String, [INFO] [stdout] 46 | side: Leg1Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegAction` 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: methods `reset` and `is_locked` are never used [INFO] [stdout] --> src/strategy/leg_manager.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl LegManager { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn reset( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn is_locked(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `leg2_min_wait_secs` and `leg2_wait_secs` are never read [INFO] [stdout] --> src/strategy/params.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StrategyParams { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub leg2_min_wait_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | /// Optimization window for Leg2 (track best price for N seconds). [INFO] [stdout] 15 | pub leg2_wait_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyParams` 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/utils/ring_buffer.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl RingBuffer { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn latest(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn oldest(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn iter(&self) -> RingBufferIter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RingBufferIter` is never constructed [INFO] [stdout] --> src/utils/ring_buffer.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct RingBufferIter<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `chainlink-data-streams-sdk` [INFO] [stderr] --> Cargo.toml:18:15 [INFO] [stderr] | [INFO] [stderr] 18 | [dependencies.chainlink-data-streams-sdk] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `chainlink-data-streams-sdk` [INFO] [stderr] warning: `polymarket-bot` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 8` [INFO] running `Command { std: "docker" "inspect" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f", kill_on_drop: false }` [INFO] [stdout] 22a1a8390655769244ace2b52209ecdfb301fd5d93ca681eed32b0115883150f