[INFO] cloning repository https://github.com/brixtonLee/order-book-exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brixtonLee/order-book-exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrixtonLee%2Forder-book-exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrixtonLee%2Forder-book-exchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd2c15f23fec6a71320f447a1611d573583307a2 [INFO] testing brixtonLee/order-book-exchange/bd2c15f23fec6a71320f447a1611d573583307a2 against master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrixtonLee%2Forder-book-exchange" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/brixtonLee/order-book-exchange [INFO] finished tweaking git repo https://github.com/brixtonLee/order-book-exchange [INFO] tweaked toml for git repo https://github.com/brixtonLee/order-book-exchange written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/brixtonLee/order-book-exchange on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/brixtonLee/order-book-exchange 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" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust-embed-utils v8.9.0 [INFO] [stderr] Downloaded rust-embed-impl v8.9.0 [INFO] [stderr] Downloaded utoipa v4.2.3 [INFO] [stderr] Downloaded rust_decimal_macros v1.33.0 [INFO] [stderr] Downloaded migrations_macros v2.3.0 [INFO] [stderr] Downloaded migrations_internals v2.3.0 [INFO] [stderr] Downloaded rustls-connector v0.20.2 [INFO] [stderr] Downloaded amq-protocol-tcp v7.2.3 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Downloaded async-global-executor-trait v2.2.0 [INFO] [stderr] Downloaded pinky-swear v6.2.1 [INFO] [stderr] Downloaded base64ct v1.8.2 [INFO] [stderr] Downloaded pkcs5 v0.7.1 [INFO] [stderr] Downloaded amq-protocol v7.2.3 [INFO] [stderr] Downloaded utoipa-gen v4.3.1 [INFO] [stderr] Downloaded x509-cert v0.2.5 [INFO] [stderr] Downloaded hyper v1.8.0 [INFO] [stderr] Downloaded rust_decimal v1.33.0 [INFO] [stderr] Downloaded lapin v2.5.5 [INFO] [stderr] Downloaded pkcs12 v0.1.0 [INFO] [stderr] Downloaded cms v0.2.3 [INFO] [stderr] Downloaded diesel_derives v2.3.6 [INFO] [stderr] Downloaded p12-keystore v0.1.5 [INFO] [stderr] Downloaded tokio-cron-scheduler v0.10.2 [INFO] [stderr] Downloaded amq-protocol-types v7.2.3 [INFO] [stderr] Downloaded flagset v0.4.7 [INFO] [stderr] Downloaded hdrhistogram v7.5.4 [INFO] [stderr] Downloaded tcp-stream v0.28.0 [INFO] [stderr] Downloaded reactor-trait v1.1.0 [INFO] [stderr] Downloaded pq-sys v0.4.8 [INFO] [stderr] Downloaded diesel_migrations v2.3.1 [INFO] [stderr] Downloaded rc2 v0.8.1 [INFO] [stderr] Downloaded diesel v2.3.5 [INFO] [stderr] Downloaded amq-protocol-uri v7.2.3 [INFO] [stderr] Downloaded async-global-executor v3.1.0 [INFO] [stderr] Downloaded async-reactor-trait v1.1.0 [INFO] [stderr] Downloaded executor-trait v2.1.2 [INFO] [stderr] Downloaded dsl_auto_type v0.2.0 [INFO] [stderr] Downloaded rust-embed v8.9.0 [INFO] [stderr] Downloaded utoipa-swagger-ui v6.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd19b00622e3a4bb62f6e1293baddae7576f2fe0c6e0622674c67951dfaf9a05 [INFO] running `Command { std: "docker" "start" "-a" "dd19b00622e3a4bb62f6e1293baddae7576f2fe0c6e0622674c67951dfaf9a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd19b00622e3a4bb62f6e1293baddae7576f2fe0c6e0622674c67951dfaf9a05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd19b00622e3a4bb62f6e1293baddae7576f2fe0c6e0622674c67951dfaf9a05", kill_on_drop: false }` [INFO] [stdout] dd19b00622e3a4bb62f6e1293baddae7576f2fe0c6e0622674c67951dfaf9a05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a53cda199534157236d1d3fb50ae0a95214ed38bd4eb30d63dd5ee05faaf0297 [INFO] running `Command { std: "docker" "start" "-a" "a53cda199534157236d1d3fb50ae0a95214ed38bd4eb30d63dd5ee05faaf0297", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling base64ct v1.8.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling flagset v0.4.7 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustls-pki-types v1.13.2 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling scrypt v0.11.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling cbc v0.1.2 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling des v0.8.1 [INFO] [stderr] Compiling rc2 v0.8.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling bigdecimal v0.4.10 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling cookie-factory v0.3.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling diesel_derives v2.3.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde_spanned v1.0.4 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling doc-comment v0.3.4 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling rust-embed-utils v8.9.0 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling async-executor v1.13.3 [INFO] [stderr] Compiling async-lock v3.4.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Compiling rust_decimal v1.33.0 [INFO] [stderr] Compiling downcast-rs v2.0.2 [INFO] [stderr] Compiling amq-protocol v7.2.3 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling toml v0.9.11+spec-1.1.0 [INFO] [stderr] Compiling tokio-cron-scheduler v0.10.2 [INFO] [stderr] Compiling lapin v2.5.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling rustls-webpki v0.103.8 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling rust_decimal_macros v1.33.0 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling displaydoc v0.2.5 [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 tracing-attributes v0.1.30 [INFO] [stderr] Compiling der_derive v0.7.3 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling asn1-rs-derive v0.6.0 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling async-global-executor v3.1.0 [INFO] [stderr] Compiling rust-embed-impl v8.9.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling executor-trait v2.1.2 [INFO] [stderr] Compiling reactor-trait v1.1.0 [INFO] [stderr] Compiling async-global-executor-trait v2.2.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling async-reactor-trait v1.1.0 [INFO] [stderr] Compiling rust-embed v8.9.0 [INFO] [stderr] Compiling pinky-swear v6.2.1 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling asn1-rs v0.7.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling dsl_auto_type v0.2.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling x509-cert v0.2.5 [INFO] [stderr] Compiling pkcs5 v0.7.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling oid-registry v0.8.1 [INFO] [stderr] Compiling der-parser v10.0.0 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling amq-protocol-types v7.2.3 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling migrations_internals v2.3.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling rustls-connector v0.20.2 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling x509-parser v0.17.0 [INFO] [stderr] Compiling migrations_macros v2.3.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling cron v0.12.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling cms v0.2.3 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hyper v1.8.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling pkcs12 v0.1.0 [INFO] [stderr] Compiling amq-protocol-uri v7.2.3 [INFO] [stderr] Compiling p12-keystore v0.1.5 [INFO] [stderr] Compiling tcp-stream v0.28.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling utoipa v4.2.3 [INFO] [stderr] Compiling amq-protocol-tcp v7.2.3 [INFO] [stderr] Compiling diesel v2.3.5 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling diesel_migrations v2.3.1 [INFO] [stderr] Compiling order-book-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `map_trade_to_history_response` [INFO] [stdout] --> src/api/history_handlers.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | map_order_to_history_response, map_trade_to_history_response, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderHistoryResponse` [INFO] [stdout] --> src/api/history_handlers.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | ErrorResponse, OrderHistoryListResponse, OrderHistoryResponse, TradeHistoryListResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/api/position_handlers.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketTick` [INFO] [stdout] --> src/ctrader_fix/client.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use super::market_data::{MarketTick, MarketDataParser, MarketDataEntry}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketTick` [INFO] [stdout] --> src/ctrader_fix/market_data/tick_parser.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ctrader_fix::{parse_fix_field, MarketTick}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/database/connection.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::r2d2::{self, ConnectionManager, Pool, PooledConnection}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::schema::trades` [INFO] [stdout] --> src/database/models/trade.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::database::schema::trades; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/stop_order_repository.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/symbol_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/tick_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbOrder` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:8:50 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::database::models::{TradeDb, NewTrade, DbOrder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orders` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::database::schema::{orders, trades}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/user_repository.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ctrader_fix::market_data::MarketDataEntry` [INFO] [stdout] --> src/datasource/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::ctrader_fix::market_data::MarketDataEntry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::stop_order::StopOrderStatus` [INFO] [stdout] --> src/engine/trigger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::stop_order::StopOrderStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/engine/disruptor_engine.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oneshot` [INFO] [stdout] --> src/engine/disruptor_engine.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::{mpsc, oneshot}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/market_data/replay_engine.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Duration, NaiveDate, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Trade` [INFO] [stdout] --> src/models/order_book.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Order, Trade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `sleep` [INFO] [stdout] --> src/rabbitmq/bridge.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | use tokio::time::{sleep, Duration}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::iceberg::IcebergConfig` [INFO] [stdout] --> src/testing/producer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::iceberg::IcebergConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> src/testing/producer.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/testing/producer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interval` [INFO] [stdout] --> src/testing/state.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::time::{interval, Duration as TokioDuration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/websocket/broadcaster.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/testing/state.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_state_error(&self, e: String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/api/testing_handlers.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | let config = scenario.to_config(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:154:88 [INFO] [stdout] | [INFO] [stdout] 154 | ...r_order_id: Option, symbol: Option<&str>, start_time: Option>, end_time: Option>, limit: i64) ... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_pos` [INFO] [stdout] --> src/market_data/tick_cache.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let read_pos = self.ring_buffer.read_position(0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distributor` [INFO] [stdout] --> src/rabbitmq/bridge.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | distributor: Arc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distributor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_seq` [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realized` [INFO] [stdout] --> src/services/position_service.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | let realized = position.reduce_position(position.quantity, trade.price); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `broadcaster` is never read [INFO] [stdout] --> src/algorithms/manager.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AlgorithmManager { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | broadcaster: Broadcaster, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `format_security_result_code` is never used [INFO] [stdout] --> src/ctrader_fix/client.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl CTraderFixClient { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 283 | fn format_security_result_code(result_code: u32) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_symbol_name` is never used [INFO] [stdout] --> src/ctrader_fix/ws_bridge.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 21 | impl FixToWebSocketBridge { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | async fn get_symbol_name(&self, symbol_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_LINE_SIZE` is never used [INFO] [stdout] --> src/disruptor/ring_buffer.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | const CACHE_LINE_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `orders_to_remove` is never read [INFO] [stdout] --> src/engine/matching.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct ProcessingMetadataWithTradesAndPriceLevels { [INFO] [stdout] | ------------------------------------------ field in this struct [INFO] [stdout] 130 | orders_to_remove: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `persist_trade` is never used [INFO] [stdout] --> src/engine/order_book.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OrderBookEngine { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 374 | fn persist_trade(&self, trade: &Trade) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OrderService` is never used [INFO] [stdout] --> src/services/order_services.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait OrderService : Send + Sync{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TradeService` is never used [INFO] [stdout] --> src/services/trade_service.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait TradeService : Send + Sync{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeServiceImpl` is never constructed [INFO] [stdout] --> src/services/trade_service.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TradeServiceImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `map_error` are never used [INFO] [stdout] --> src/services/trade_service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TradeServiceImpl { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 23 | pub fn new(repository: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn map_error(result: Result) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 26s [INFO] running `Command { std: "docker" "inspect" "a53cda199534157236d1d3fb50ae0a95214ed38bd4eb30d63dd5ee05faaf0297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a53cda199534157236d1d3fb50ae0a95214ed38bd4eb30d63dd5ee05faaf0297", kill_on_drop: false }` [INFO] [stdout] a53cda199534157236d1d3fb50ae0a95214ed38bd4eb30d63dd5ee05faaf0297 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3edde176904f548549c30b2c3e4648c19dd60e23dbdad117ed56aa91c1b7ac81 [INFO] running `Command { std: "docker" "start" "-a" "3edde176904f548549c30b2c3e4648c19dd60e23dbdad117ed56aa91c1b7ac81", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling clap_builder v4.5.51 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling amq-protocol-types v7.2.3 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling migrations_internals v2.3.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling amq-protocol-uri v7.2.3 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Compiling migrations_macros v2.3.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling diesel v2.3.5 [INFO] [stderr] Compiling cron v0.12.1 [INFO] [stderr] Compiling clap v4.5.51 [INFO] [stderr] Compiling tokio-cron-scheduler v0.10.2 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling p12-keystore v0.1.5 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling async-global-executor v3.1.0 [INFO] [stderr] Compiling utoipa v4.2.3 [INFO] [stderr] Compiling async-global-executor-trait v2.2.0 [INFO] [stderr] Compiling tcp-stream v0.28.0 [INFO] [stderr] Compiling amq-protocol-tcp v7.2.3 [INFO] [stderr] Compiling amq-protocol v7.2.3 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling lapin v2.5.5 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling rust_decimal v1.33.0 [INFO] [stderr] Compiling diesel_migrations v2.3.1 [INFO] [stderr] Compiling order-book-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `map_trade_to_history_response` [INFO] [stdout] --> src/api/history_handlers.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | map_order_to_history_response, map_trade_to_history_response, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderHistoryResponse` [INFO] [stdout] --> src/api/history_handlers.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | ErrorResponse, OrderHistoryListResponse, OrderHistoryResponse, TradeHistoryListResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/api/position_handlers.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketTick` [INFO] [stdout] --> src/ctrader_fix/client.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use super::market_data::{MarketTick, MarketDataParser, MarketDataEntry}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketTick` [INFO] [stdout] --> src/ctrader_fix/market_data/tick_parser.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ctrader_fix::{parse_fix_field, MarketTick}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/database/connection.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::r2d2::{self, ConnectionManager, Pool, PooledConnection}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::schema::trades` [INFO] [stdout] --> src/database/models/trade.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::database::schema::trades; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/stop_order_repository.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/symbol_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/tick_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbOrder` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:8:50 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::database::models::{TradeDb, NewTrade, DbOrder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orders` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::database::schema::{orders, trades}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/user_repository.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ctrader_fix::market_data::MarketDataEntry` [INFO] [stdout] --> src/datasource/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::ctrader_fix::market_data::MarketDataEntry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::stop_order::StopOrderStatus` [INFO] [stdout] --> src/engine/trigger.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::stop_order::StopOrderStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/engine/disruptor_engine.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oneshot` [INFO] [stdout] --> src/engine/disruptor_engine.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::{mpsc, oneshot}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/market_data/replay_engine.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Duration, NaiveDate, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Trade` [INFO] [stdout] --> src/models/order_book.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Order, Trade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `sleep` [INFO] [stdout] --> src/rabbitmq/bridge.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | use tokio::time::{sleep, Duration}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::iceberg::IcebergConfig` [INFO] [stdout] --> src/testing/producer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::iceberg::IcebergConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> src/testing/producer.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/testing/producer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interval` [INFO] [stdout] --> src/testing/state.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::time::{interval, Duration as TokioDuration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/websocket/broadcaster.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `map_trade_to_history_response` [INFO] [stdout] --> src/api/history_handlers.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | map_order_to_history_response, map_trade_to_history_response, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderHistoryResponse` [INFO] [stdout] --> src/api/history_handlers.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | ErrorResponse, OrderHistoryListResponse, OrderHistoryResponse, TradeHistoryListResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/api/position_handlers.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketTick` [INFO] [stdout] --> src/ctrader_fix/client.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use super::market_data::{MarketTick, MarketDataParser, MarketDataEntry}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/database/connection.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::r2d2::{self, ConnectionManager, Pool, PooledConnection}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database::schema::trades` [INFO] [stdout] --> src/database/models/trade.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::database::schema::trades; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/stop_order_repository.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/symbol_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/database/repositories/symbol_repository.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/database/repositories/symbol_repository.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/tick_repository.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbOrder` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:8:50 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::database::models::{TradeDb, NewTrade, DbOrder}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orders` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::database::schema::{orders, trades}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/database/repositories/user_repository.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ctrader_fix::market_data::MarketDataEntry` [INFO] [stdout] --> src/datasource/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::ctrader_fix::market_data::MarketDataEntry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/engine/disruptor_engine.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oneshot` [INFO] [stdout] --> src/engine/disruptor_engine.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::{mpsc, oneshot}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/jobs/symbol_sync_job.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/market_data/replay_engine.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Duration, NaiveDate, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Trade` [INFO] [stdout] --> src/models/order_book.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use super::{Order, Trade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `sleep` [INFO] [stdout] --> src/rabbitmq/bridge.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | use tokio::time::{sleep, Duration}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::iceberg::IcebergConfig` [INFO] [stdout] --> src/testing/producer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::iceberg::IcebergConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> src/testing/producer.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/testing/producer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interval` [INFO] [stdout] --> src/testing/state.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::time::{interval, Duration as TokioDuration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/websocket/broadcaster.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_with_trigger` found for struct `engine::order_book::OrderBookEngine` in the current scope [INFO] [stdout] --> src/engine/disruptor_engine.rs:325:48 [INFO] [stdout] | [INFO] [stdout] 325 | let engine = Arc::new(OrderBookEngine::new_with_trigger(trigger)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `engine::order_book::OrderBookEngine` [INFO] [stdout] | [INFO] [stdout] ::: src/engine/order_book.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct OrderBookEngine { [INFO] [stdout] | -------------------------- function or associated item `new_with_trigger` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `engine::order_book::OrderBookEngine` consider using one of the following associated functions: [INFO] [stdout] engine::order_book::OrderBookEngine::new_with_services [INFO] [stdout] engine::order_book::OrderBookEngine::new [INFO] [stdout] --> src/engine/order_book.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / pub fn new_with_services( [INFO] [stdout] 82 | | trigger_engine: TriggerEngine, [INFO] [stdout] 83 | | order_repository: Option>, [INFO] [stdout] 84 | | trade_repository: Option>, [INFO] [stdout] 85 | | position_service: Option>, [INFO] [stdout] 86 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_with_trigger` found for struct `engine::order_book::OrderBookEngine` in the current scope [INFO] [stdout] --> src/engine/disruptor_engine.rs:336:48 [INFO] [stdout] | [INFO] [stdout] 336 | let engine = Arc::new(OrderBookEngine::new_with_trigger(trigger)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `engine::order_book::OrderBookEngine` [INFO] [stdout] | [INFO] [stdout] ::: src/engine/order_book.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct OrderBookEngine { [INFO] [stdout] | -------------------------- function or associated item `new_with_trigger` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `engine::order_book::OrderBookEngine` consider using one of the following associated functions: [INFO] [stdout] engine::order_book::OrderBookEngine::new_with_services [INFO] [stdout] engine::order_book::OrderBookEngine::new [INFO] [stdout] --> src/engine/order_book.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / pub fn new_with_services( [INFO] [stdout] 82 | | trigger_engine: TriggerEngine, [INFO] [stdout] 83 | | order_repository: Option>, [INFO] [stdout] 84 | | trade_repository: Option>, [INFO] [stdout] 85 | | position_service: Option>, [INFO] [stdout] 86 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `expire_time`, `iceberg`, `order_type` and 5 other fields in initializer of `models::order::Order` [INFO] [stdout] --> src/engine/matching_variants.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | Order { [INFO] [stdout] | ^^^^^ missing `expire_time`, `iceberg`, `order_type` and 5 other fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/algorithms/manager.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let quantity = child_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/testing/state.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_state_error(&self, e: String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/api/testing_handlers.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | let config = scenario.to_config(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/testing/state.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn handle_state_error(&self, e: String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/testing_handlers.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/api/testing_handlers.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | let config = scenario.to_config(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/position_handlers.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | Err(e) => ( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:154:88 [INFO] [stdout] | [INFO] [stdout] 154 | ...r_order_id: Option, symbol: Option<&str>, start_time: Option>, end_time: Option>, limit: i64) ... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/database/repositories/trade_repository.rs:154:88 [INFO] [stdout] | [INFO] [stdout] 154 | ...r_order_id: Option, symbol: Option<&str>, start_time: Option>, end_time: Option>, limit: i64) ... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_pos` [INFO] [stdout] --> src/market_data/tick_cache.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let read_pos = self.ring_buffer.read_position(0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/market_data/tick_distributor.rs:526:13 [INFO] [stdout] | [INFO] [stdout] 526 | let info = distributor.register_consumer("test".to_string()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_pos` [INFO] [stdout] --> src/market_data/tick_cache.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let read_pos = self.ring_buffer.read_position(0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distributor` [INFO] [stdout] --> src/rabbitmq/bridge.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | distributor: Arc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distributor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_seq` [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distributor` [INFO] [stdout] --> src/rabbitmq/bridge.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | distributor: Arc, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distributor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_seq` [INFO] [stdout] --> src/rabbitmq/bridge.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut next_seq = 0u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realized` [INFO] [stdout] --> src/services/position_service.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | let realized = position.reduce_position(position.quantity, trade.price); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realized` [INFO] [stdout] --> src/services/position_service.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | let realized = position.reduce_position(position.quantity, trade.price); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `broadcaster` is never read [INFO] [stdout] --> src/algorithms/manager.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AlgorithmManager { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | broadcaster: Broadcaster, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `format_security_result_code` is never used [INFO] [stdout] --> src/ctrader_fix/client.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl CTraderFixClient { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 283 | fn format_security_result_code(result_code: u32) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_symbol_name` is never used [INFO] [stdout] --> src/ctrader_fix/ws_bridge.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 21 | impl FixToWebSocketBridge { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | async fn get_symbol_name(&self, symbol_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CACHE_LINE_SIZE` is never used [INFO] [stdout] --> src/disruptor/ring_buffer.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | const CACHE_LINE_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `orders_to_remove` is never read [INFO] [stdout] --> src/engine/matching.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct ProcessingMetadataWithTradesAndPriceLevels { [INFO] [stdout] | ------------------------------------------ field in this struct [INFO] [stdout] 130 | orders_to_remove: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `persist_trade` is never used [INFO] [stdout] --> src/engine/order_book.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl OrderBookEngine { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 374 | fn persist_trade(&self, trade: &Trade) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OrderService` is never used [INFO] [stdout] --> src/services/order_services.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait OrderService : Send + Sync{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TradeService` is never used [INFO] [stdout] --> src/services/trade_service.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait TradeService : Send + Sync{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeServiceImpl` is never constructed [INFO] [stdout] --> src/services/trade_service.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TradeServiceImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `map_error` are never used [INFO] [stdout] --> src/services/trade_service.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TradeServiceImpl { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 23 | pub fn new(repository: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn map_error(result: Result) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `order-book-api` (lib test) due to 3 previous errors; 45 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "3edde176904f548549c30b2c3e4648c19dd60e23dbdad117ed56aa91c1b7ac81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3edde176904f548549c30b2c3e4648c19dd60e23dbdad117ed56aa91c1b7ac81", kill_on_drop: false }` [INFO] [stdout] 3edde176904f548549c30b2c3e4648c19dd60e23dbdad117ed56aa91c1b7ac81