[INFO] cloning repository https://github.com/Z-zg/mqtoy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Z-zg/mqtoy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca785542cd09029f79b297b68672cf04461a0dcd [INFO] checking Z-zg/mqtoy against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Z-zg/mqtoy [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Z-zg/mqtoy [INFO] tweaked toml for git repo https://github.com/Z-zg/mqtoy written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Z-zg/mqtoy on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 310 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding getrandom v0.2.16 (available: v0.3.3) [INFO] [stderr] Adding prometheus v0.13.4 (available: v0.14.0) [INFO] [stderr] Adding prost v0.12.6 (available: v0.14.1) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding tonic v0.10.2 (available: v0.14.1) [INFO] [stderr] Adding tonic-build v0.10.2 (available: v0.14.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02df4d32641f6af4b78657e62894bf17760a2cb410186f1b2cd06e0c2683ab52 [INFO] running `Command { std: "docker" "start" "-a" "02df4d32641f6af4b78657e62894bf17760a2cb410186f1b2cd06e0c2683ab52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02df4d32641f6af4b78657e62894bf17760a2cb410186f1b2cd06e0c2683ab52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02df4d32641f6af4b78657e62894bf17760a2cb410186f1b2cd06e0c2683ab52", kill_on_drop: false }` [INFO] [stdout] 02df4d32641f6af4b78657e62894bf17760a2cb410186f1b2cd06e0c2683ab52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 029c51455bda35c972fc081b5eb23f5c645151bfb83e5148c34506daa92ce499 [INFO] running `Command { std: "docker" "start" "-a" "029c51455bda35c972fc081b5eb23f5c645151bfb83e5148c34506daa92ce499", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking clap_builder v4.5.44 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking clap v4.5.45 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling tonic-build v0.10.2 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-io-timeout v1.2.1 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking uuid v1.18.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Compiling mq v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.10.2 [INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64` [INFO] [stdout] --> src/message_queue.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/server.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> src/client.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/client.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/client.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/monitoring.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/monitoring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts` [INFO] [stdout] --> src/metrics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry, [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/metrics.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/metrics.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64` [INFO] [stdout] --> src/message_queue.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/monitoring.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/monitoring.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/monitoring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts` [INFO] [stdout] --> src/metrics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry, [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `storage` is never read [INFO] [stdout] --> src/message_queue.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct MessageQueue { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | topics: Arc>>, [INFO] [stdout] 190 | storage: Arc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `consumer_id` is never read [INFO] [stdout] --> src/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct MQClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 20 | client: MessageQueueServiceClient, [INFO] [stdout] 21 | consumer_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `sleep` [INFO] [stdout] --> src/bin/client.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{sleep, Duration}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64` [INFO] [stdout] --> src/message_queue.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/monitoring.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/monitoring.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/monitoring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts` [INFO] [stdout] --> src/metrics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry, [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `sleep` [INFO] [stdout] --> src/bin/client.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{sleep, Duration}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `received_count` [INFO] [stdout] --> examples/client_example.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | received_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64` [INFO] [stdout] --> src/message_queue.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc` [INFO] [stdout] --> src/server.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use tokio::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicBool` [INFO] [stdout] --> src/client.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/client.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/client.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Topic` [INFO] [stdout] --> src/monitoring.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/monitoring.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts` [INFO] [stdout] --> src/metrics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry, [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/metrics.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/metrics.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `storage` is never read [INFO] [stdout] --> src/message_queue.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct MessageQueue { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | topics: Arc>>, [INFO] [stdout] 190 | storage: Arc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `consumer_id` is never read [INFO] [stdout] --> src/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct MQClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 20 | client: MessageQueueServiceClient, [INFO] [stdout] 21 | consumer_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `data_dir` are never read [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | data_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeInfo` is never constructed [INFO] [stdout] --> src/coordinator/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NodeInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coordinator` is never constructed [INFO] [stdout] --> src/coordinator/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Coordinator { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_node`, `elect_leader`, `get_leader`, and `get_nodes` are never used [INFO] [stdout] --> src/coordinator/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Coordinator { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn register_node(&self, node_id: Uuid, address: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn elect_leader(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn get_leader(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub async fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StorageError` is never used [INFO] [stdout] --> src/storage/mod.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum StorageError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/storage/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageStatus` is never used [INFO] [stdout] --> src/storage/mod.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum MessageStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageStorage` is never constructed [INFO] [stdout] --> src/storage/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct MessageStorage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `store_message`, `get_message`, and `update_message_status` are never used [INFO] [stdout] --> src/storage/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl MessageStorage { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 37 | pub fn new(path: impl AsRef) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn store_message(&self, message: &Message) -> Result<(), StorageError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_message(&self, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn update_message_status(&self, id: Uuid, status: MessageStatus) -> Result<(), StorageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionManager` is never constructed [INFO] [stdout] --> src/transaction/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_checking`, `check_pending_messages`, `prepare_message`, `commit_message`, and `rollback_message` are never used [INFO] [stdout] --> src/transaction/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl TransactionManager { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(storage: MessageStorage, check_interval: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn start_checking(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | async fn check_pending_messages(&self) -> Result<(), StorageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn prepare_message(&self, topic: String, body: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn commit_message(&self, id: Uuid) -> Result<(), StorageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn rollback_message(&self, id: Uuid) -> Result<(), StorageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConsumerGroupNotFound` and `EncryptionError` are never constructed [INFO] [stdout] --> src/message_queue.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum MQError { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | ConsumerGroupNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | EncryptionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MQError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encrypt`, and `decrypt` are never used [INFO] [stdout] --> src/message_queue.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Message { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 45 | pub fn new(topic: String, payload: Vec, headers: HashMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn encrypt(&mut self, key: &[u8]) -> Result<(), MQError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn decrypt(&mut self, key: &[u8]) -> Result<(), MQError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsumerGroup` is never constructed [INFO] [stdout] --> src/message_queue.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct ConsumerGroup { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/message_queue.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Partition { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 168 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` 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 `storage` is never read [INFO] [stdout] --> src/message_queue.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct MessageQueue { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | topics: Arc>>, [INFO] [stdout] 190 | storage: Arc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_topic`, `publish_dlq`, `replay_from_offset`, and `replay_from_timestamp` are never used [INFO] [stdout] --> src/message_queue.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 193 | impl MessageQueue { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn create_topic(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn publish_dlq(&self, topic: &str, message: Message) -> Result<(), MQError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub async fn replay_from_offset(&self, topic: &str, partition: usize, offset: usize) -> Result, MQError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub async fn replay_from_timestamp(&self, topic: &str, partition: usize, timestamp: i64) -> Result, MQError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MQClient` is never constructed [INFO] [stdout] --> src/client.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct MQClient { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_encryption_key`, `create_topic`, `publish`, `subscribe`, and `commit_offset` are never used [INFO] [stdout] --> src/client.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl MQClient { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 26 | pub async fn new(addr: String) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_encryption_key(&mut self, key: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn create_topic(&mut self, name: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn publish( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub async fn subscribe( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn commit_offset( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/metrics.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Metrics { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub messages_per_topic: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub publish_operations: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub subscribe_operations: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub publish_latency: Histogram, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub subscribe_latency: Histogram, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub publish_errors: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub subscribe_errors: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub compression_errors: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub encryption_errors: IntCounter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Metrics` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_publish`, `record_subscribe`, `record_publish_error`, `record_subscribe_error`, `record_compression_error`, and `record_encryption_error` are never used [INFO] [stdout] --> src/metrics.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl Metrics { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn record_publish(&self, latency: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn record_subscribe(&self, latency: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn record_publish_error(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn record_subscribe_error(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn record_compression_error(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn record_encryption_error(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `addr` and `data_dir` are never read [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | addr: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | data_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConsumerGroupNotFound` is never constructed [INFO] [stdout] --> src/message_queue.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum MQError { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | ConsumerGroupNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MQError` 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 `ConsumerGroup` is never constructed [INFO] [stdout] --> src/message_queue.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct ConsumerGroup { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/message_queue.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Partition { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 168 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partition` 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 `storage` is never read [INFO] [stdout] --> src/message_queue.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct MessageQueue { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | topics: Arc>>, [INFO] [stdout] 190 | storage: Arc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `publish_dlq`, `replay_from_offset`, and `replay_from_timestamp` are never used [INFO] [stdout] --> src/message_queue.rs:261:18 [INFO] [stdout] | [INFO] [stdout] 193 | impl MessageQueue { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn publish_dlq(&self, topic: &str, message: Message) -> Result<(), MQError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub async fn replay_from_offset(&self, topic: &str, partition: usize, offset: usize) -> Result, MQError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub async fn replay_from_timestamp(&self, topic: &str, partition: usize, timestamp: i64) -> Result, MQError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `consumer_id` is never read [INFO] [stdout] --> src/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct MQClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 20 | client: MessageQueueServiceClient, [INFO] [stdout] 21 | consumer_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `messages_per_topic` is never read [INFO] [stdout] --> src/metrics.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Metrics { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub messages_per_topic: IntGauge, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Metrics` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "029c51455bda35c972fc081b5eb23f5c645151bfb83e5148c34506daa92ce499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "029c51455bda35c972fc081b5eb23f5c645151bfb83e5148c34506daa92ce499", kill_on_drop: false }` [INFO] [stdout] 029c51455bda35c972fc081b5eb23f5c645151bfb83e5148c34506daa92ce499