[INFO] cloning repository https://github.com/bast-top-dev/nexus-proxy-pub
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bast-top-dev/nexus-proxy-pub" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbast-top-dev%2Fnexus-proxy-pub", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbast-top-dev%2Fnexus-proxy-pub'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a37f10700ee0b6ab8aea236b204bb98f139213a9
[INFO] checking bast-top-dev/nexus-proxy-pub against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbast-top-dev%2Fnexus-proxy-pub" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/bast-top-dev/nexus-proxy-pub
[INFO] finished tweaking git repo https://github.com/bast-top-dev/nexus-proxy-pub
[INFO] tweaked toml for git repo https://github.com/bast-top-dev/nexus-proxy-pub written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/bast-top-dev/nexus-proxy-pub on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/bast-top-dev/nexus-proxy-pub 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-retry v0.3.0
[INFO] [stderr]   Downloaded procfs-core v0.16.0
[INFO] [stderr]   Downloaded procfs v0.16.0
[INFO] [stderr]   Downloaded hyper-util v0.1.18
[INFO] [stderr]   Downloaded redis v0.24.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 038c8581e893dc6b2533c63781c411a63fc3ee3659ab859e178c8bf0099a7621
[INFO] running `Command { std: "docker" "start" "-a" "038c8581e893dc6b2533c63781c411a63fc3ee3659ab859e178c8bf0099a7621", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "038c8581e893dc6b2533c63781c411a63fc3ee3659ab859e178c8bf0099a7621", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "038c8581e893dc6b2533c63781c411a63fc3ee3659ab859e178c8bf0099a7621", kill_on_drop: false }`
[INFO] [stdout] 038c8581e893dc6b2533c63781c411a63fc3ee3659ab859e178c8bf0099a7621
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8345a32d28868b50657636af74d1f73fff5a4e234425a3378377fab5b829905b
[INFO] running `Command { std: "docker" "start" "-a" "8345a32d28868b50657636af74d1f73fff5a4e234425a3378377fab5b829905b", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]     Checking bytes v1.11.0
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling cc v1.2.46
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]     Checking indexmap v2.12.0
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]     Checking bitflags v2.10.0
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.10.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]     Checking socket2 v0.6.1
[INFO] [stderr]     Checking signal-hook-registry v1.4.6
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling zerocopy v0.8.27
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling syn v2.0.110
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling ref-cast v1.0.25
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.64
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling deranged v0.5.5
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking is-terminal v0.4.17
[INFO] [stderr]    Compiling uncased v0.9.10
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]     Checking serde_json v1.0.145
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]     Checking aho-corasick v1.1.4
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]     Checking inlinable_string v0.1.15
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling time v0.3.44
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]     Checking winnow v0.7.13
[INFO] [stderr]    Compiling home v0.5.12
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]     Checking crc-catalog v2.4.0
[INFO] [stderr]     Checking regex-syntax v0.8.8
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]     Checking crc v3.3.0
[INFO] [stderr]    Compiling stable-pattern v0.1.0
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling figment v0.10.19
[INFO] [stderr]    Compiling protobuf v2.28.0
[INFO] [stderr]    Compiling state v0.6.0
[INFO] [stderr]    Compiling procfs v0.16.0
[INFO] [stderr]     Checking rustix v1.1.2
[INFO] [stderr]     Checking anstyle-parse v0.2.7
[INFO] [stderr]     Checking procfs-core v0.16.0
[INFO] [stderr]     Checking atoi v2.0.0
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling rocket v0.5.1
[INFO] [stderr]    Compiling prometheus v0.13.4
[INFO] [stderr]     Checking colorchoice v1.0.4
[INFO] [stderr]     Checking regex-automata v0.4.13
[INFO] [stderr]     Checking anstyle v1.0.13
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking socket2 v0.4.10
[INFO] [stderr]     Checking num_cpus v1.17.0
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]     Checking arc-swap v1.7.1
[INFO] [stderr]     Checking jiff v0.2.16
[INFO] [stderr]     Checking sha1_smol v1.0.1
[INFO] [stderr]     Checking binascii v0.1.4
[INFO] [stderr]     Checking atomic v0.5.3
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling devise_core v0.4.2
[INFO] [stderr]     Checking regex v1.12.2
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling pear_codegen v0.2.9
[INFO] [stderr]    Compiling ref-cast-impl v1.0.25
[INFO] [stderr]    Compiling devise_codegen v0.4.2
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking pear v0.2.9
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling devise v0.4.2
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking yoke v0.8.1
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]     Checking tempfile v3.23.0
[INFO] [stderr]     Checking env_filter v0.1.4
[INFO] [stderr]     Checking env_logger v0.11.8
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking icu_provider v2.1.1
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking toml_datetime v0.6.11
[INFO] [stderr]     Checking serde_spanned v0.6.9
[INFO] [stderr]     Checking ubyte v0.10.4
[INFO] [stderr]     Checking icu_properties v2.1.1
[INFO] [stderr]     Checking toml_edit v0.22.27
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking dashmap v6.1.0
[INFO] [stderr]    Compiling rocket_http v0.5.1
[INFO] [stderr]     Checking futures-intrusive v0.5.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.7
[INFO] [stderr]     Checking toml v0.8.23
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling rocket_codegen v0.5.1
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking tokio-retry v0.3.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.4.12
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking combine v4.6.7
[INFO] [stderr]     Checking redis v0.24.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]     Checking hyper-util v0.1.18
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking nexus-proxy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/api/stats.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use chrono::Utc;
[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 imports: `Rng` and `random`
[INFO] [stdout]  --> src/proxy.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, random};
[INFO] [stdout]   |            ^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/cache_manager.rs:193:29
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let mut rng = rand::thread_rng();
[INFO] [stdout]     |                             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/session_manager.rs:184:37
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 let mut rng = rand::thread_rng();
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/api/stats.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use chrono::Utc;
[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 imports: `Rng` and `random`
[INFO] [stdout]  --> src/proxy.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, random};
[INFO] [stdout]   |            ^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/cache_manager.rs:193:29
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let mut rng = rand::thread_rng();
[INFO] [stdout]     |                             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/session_manager.rs:184:37
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 let mut rng = rand::thread_rng();
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/cache_manager.rs:194:36
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let mut random_value = rng.gen_range(0.0..total_weight);
[INFO] [stdout]     |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/cache_manager.rs:194:36
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let mut random_value = rng.gen_range(0.0..total_weight);
[INFO] [stdout]     |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/session_manager.rs:185:35
[INFO] [stdout]     |
[INFO] [stdout] 185 |                 format!("{}", rng.gen_range(100000000..999999999))
[INFO] [stdout]     |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `config`
[INFO] [stdout]   --> src/api/admin.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let config = match req.rocket().state::<Arc<ProxyConfig>>() {
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/session_manager.rs:185:35
[INFO] [stdout]     |
[INFO] [stdout] 185 |                 format!("{}", rng.gen_range(100000000..999999999))
[INFO] [stdout]     |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `config`
[INFO] [stdout]   --> src/api/admin.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let config = match req.rocket().state::<Arc<ProxyConfig>>() {
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `interval`
[INFO] [stdout]    --> src/api/stats.rs:286:10
[INFO] [stdout]     |
[INFO] [stdout] 286 |     let (interval, bucket_size) = match period {
[INFO] [stdout]     |          ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket_size`
[INFO] [stdout]    --> src/api/stats.rs:286:20
[INFO] [stdout]     |
[INFO] [stdout] 286 |     let (interval, bucket_size) = match period {
[INFO] [stdout]     |                    ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `interval`
[INFO] [stdout]    --> src/api/stats.rs:286:10
[INFO] [stdout]     |
[INFO] [stdout] 286 |     let (interval, bucket_size) = match period {
[INFO] [stdout]     |          ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket_size`
[INFO] [stdout]    --> src/api/stats.rs:286:20
[INFO] [stdout]     |
[INFO] [stdout] 286 |     let (interval, bucket_size) = match period {
[INFO] [stdout]     |                    ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer_addr`
[INFO] [stdout]    --> src/proxy.rs:196:26
[INFO] [stdout]     |
[INFO] [stdout] 196 |             let (stream, peer_addr) = listener.accept().await?;
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cache_manager`
[INFO] [stdout]    --> src/proxy.rs:252:5
[INFO] [stdout]     |
[INFO] [stdout] 252 |     cache_manager: Arc<CacheManager>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cache_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `retries`
[INFO] [stdout]    --> src/proxy.rs:694:20
[INFO] [stdout]     |
[INFO] [stdout] 694 |     let (upstream, retries, timings, handshake_permit) = match connect_with_handshake_permit(&upstream_addr, &provider_id).await {
[INFO] [stdout]     |                    ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_retries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `timings`
[INFO] [stdout]    --> src/proxy.rs:694:29
[INFO] [stdout]     |
[INFO] [stdout] 694 |     let (upstream, retries, timings, handshake_permit) = match connect_with_handshake_permit(&upstream_addr, &provider_id).await {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tcp_connect_pure_secs` is never read
[INFO] [stdout]     --> src/proxy.rs:1275:37
[INFO] [stdout]      |
[INFO] [stdout] 1275 |     let mut tcp_connect_pure_secs = 0.0;
[INFO] [stdout]      |                                     ^^^
[INFO] [stdout]      |
[INFO] [stdout]      = help: maybe it is overwritten before being read?
[INFO] [stdout]      = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_manager`
[INFO] [stdout]     --> src/proxy.rs:1066:5
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     data_manager: Arc<PostgreSQLDataManager>,
[INFO] [stdout]      |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_manager`
[INFO] [stdout]    --> src/proxy.rs:879:5
[INFO] [stdout]     |
[INFO] [stdout] 879 |     data_manager: Arc<PostgreSQLDataManager>,
[INFO] [stdout]     |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pid`
[INFO] [stdout]    --> src/main.rs:220:19
[INFO] [stdout]     |
[INFO] [stdout] 220 |         if let Ok(pid) = std::process::id().to_string().parse::<i32>() {
[INFO] [stdout]     |                   ^^^ help: if this is intentional, prefix it with an underscore: `_pid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PlanUsageStats` is never constructed
[INFO] [stdout]    --> src/api/stats.rs:345:12
[INFO] [stdout]     |
[INFO] [stdout] 345 | pub struct PlanUsageStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PlansUsageResponse` is never constructed
[INFO] [stdout]    --> src/api/stats.rs:353:12
[INFO] [stdout]     |
[INFO] [stdout] 353 | pub struct PlansUsageResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `resolve_country`, `get_session_ttl`, and `get_plans` are never used
[INFO] [stdout]    --> src/cache_manager.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl CacheManager {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 113 |     pub async fn resolve_country(&self, country_code: &str) -> String {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 267 |     pub async fn get_session_ttl(&self, plan_id: &str) -> i32 {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub async fn get_plans(&self) -> tokio::sync::RwLockReadGuard<'_, std::collections::HashMap<String, crate::models::plan::Plan>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `port` are never read
[INFO] [stdout]  --> src/config.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct ProxyConfig {
[INFO] [stdout]   |            ----------- fields in this struct
[INFO] [stdout] 7 |     pub id: String,
[INFO] [stdout] 8 |     pub name: String,
[INFO] [stdout]   |         ^^^^
[INFO] [stdout] 9 |     pub port: u16,
[INFO] [stdout]   |         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `countries`, `username`, and `password` are never read
[INFO] [stdout]   --> src/config.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct UpstreamProxy {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 15 |     pub countries: Vec<String>,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 16 |     pub upstream_addr: String,
[INFO] [stdout] 17 |     pub username: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 18 |     pub password: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_upstream_proxy_candidates` and `get_upstream_proxy` are never used
[INFO] [stdout]   --> src/config.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 54 | impl ProxyConfig {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] 55 |     fn get_upstream_proxy_candidates(&self, country_code: &str) -> Vec<&UpstreamProxy> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub fn get_upstream_proxy(&self, country_code: &str) -> Option<&UpstreamProxy> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_provider_request` is never used
[INFO] [stdout]    --> src/metrics.rs:686:8
[INFO] [stdout]     |
[INFO] [stdout] 686 | pub fn record_provider_request(provider: &str, success: bool, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider_health` is never used
[INFO] [stdout]    --> src/metrics.rs:697:8
[INFO] [stdout]     |
[INFO] [stdout] 697 | pub fn update_provider_health(provider: &str, is_healthy: bool) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_cache_lock_wait` is never used
[INFO] [stdout]    --> src/metrics.rs:721:8
[INFO] [stdout]     |
[INFO] [stdout] 721 | pub fn record_cache_lock_wait(lock_type: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_cache_evictions` is never used
[INFO] [stdout]    --> src/metrics.rs:728:8
[INFO] [stdout]     |
[INFO] [stdout] 728 | pub fn record_cache_evictions(count: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_cache_size` is never used
[INFO] [stdout]    --> src/metrics.rs:733:8
[INFO] [stdout]     |
[INFO] [stdout] 733 | pub fn set_cache_size(size: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_redis_pool_wait` is never used
[INFO] [stdout]    --> src/metrics.rs:808:8
[INFO] [stdout]     |
[INFO] [stdout] 808 | pub fn record_redis_pool_wait(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_db_pool_acquire` is never used
[INFO] [stdout]    --> src/metrics.rs:849:8
[INFO] [stdout]     |
[INFO] [stdout] 849 | pub fn record_db_pool_acquire(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_db_pool_timeout` is never used
[INFO] [stdout]    --> src/metrics.rs:856:8
[INFO] [stdout]     |
[INFO] [stdout] 856 | pub fn record_db_pool_timeout(operation: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `network_bytes_sent` is never used
[INFO] [stdout]    --> src/metrics.rs:907:8
[INFO] [stdout]     |
[INFO] [stdout] 907 | pub fn network_bytes_sent(provider: &str, bytes: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `network_bytes_received` is never used
[INFO] [stdout]    --> src/metrics.rs:914:8
[INFO] [stdout]     |
[INFO] [stdout] 914 | pub fn network_bytes_received(provider: &str, bytes: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_network_io` is never used
[INFO] [stdout]    --> src/metrics.rs:928:8
[INFO] [stdout]     |
[INFO] [stdout] 928 | pub fn record_network_io(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_provider_response_detailed` is never used
[INFO] [stdout]    --> src/metrics.rs:937:8
[INFO] [stdout]     |
[INFO] [stdout] 937 | pub fn record_provider_response_detailed(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `provider_connection_started` is never used
[INFO] [stdout]    --> src/metrics.rs:963:8
[INFO] [stdout]     |
[INFO] [stdout] 963 | pub fn provider_connection_started(provider: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `provider_connection_ended` is never used
[INFO] [stdout]    --> src/metrics.rs:969:8
[INFO] [stdout]     |
[INFO] [stdout] 969 | pub fn provider_connection_ended(provider: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_pipeline_stage` is never used
[INFO] [stdout]    --> src/metrics.rs:978:8
[INFO] [stdout]     |
[INFO] [stdout] 978 | pub fn record_pipeline_stage(stage: &str, plan: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_stalled_write` is never used
[INFO] [stdout]     --> src/metrics.rs:1009:8
[INFO] [stdout]      |
[INFO] [stdout] 1009 | pub fn record_stalled_write(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connection_stall_started` is never used
[INFO] [stdout]     --> src/metrics.rs:1016:8
[INFO] [stdout]      |
[INFO] [stdout] 1016 | pub fn connection_stall_started(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connection_stall_ended` is never used
[INFO] [stdout]     --> src/metrics.rs:1023:8
[INFO] [stdout]      |
[INFO] [stdout] 1023 | pub fn connection_stall_ended(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_target_countries` is never used
[INFO] [stdout]    --> src/models/country_profile.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl CountryProfile {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_target_countries(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_session_ttl`, `get_provider_ids`, and `get_provider_weight` are never used
[INFO] [stdout]   --> src/models/plan.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Plan {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 64 |     pub fn get_session_ttl(&self) -> i32 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn get_provider_ids(&self) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |     pub fn get_provider_weight(&self, provider_id: &str) -> f64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ProviderCountry` is never constructed
[INFO] [stdout]   --> src/models/provider.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct ProviderCountry {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `update_health`, `log_health_check`, `format_username`, and `format_password` are never used
[INFO] [stdout]    --> src/models/provider.rs:74:18
[INFO] [stdout]     |
[INFO] [stdout]  22 | impl Provider {
[INFO] [stdout]     | ------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  74 |     pub async fn update_health(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  94 |     pub async fn log_health_check(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn format_username(&self, country: &str, session: &str) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn format_password(&self, country: &str, session: &str) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `UPSTREAM_CONNECT_TIMEOUT_SECS` is never used
[INFO] [stdout]     --> src/proxy.rs:1212:7
[INFO] [stdout]      |
[INFO] [stdout] 1212 | const UPSTREAM_CONNECT_TIMEOUT_SECS: u64 = 5; // Max 5 seconds per connect attempt
[INFO] [stdout]      |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `pre_connect_delay_secs` and `total_secs` are never read
[INFO] [stdout]     --> src/proxy.rs:1220:9
[INFO] [stdout]      |
[INFO] [stdout] 1218 | pub struct ConnectTimings {
[INFO] [stdout]      |            -------------- fields in this struct
[INFO] [stdout] 1219 |     pub semaphore_wait_secs: f64,
[INFO] [stdout] 1220 |     pub pre_connect_delay_secs: f64,
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 1221 |     pub tcp_connect_pure_secs: f64,
[INFO] [stdout] 1222 |     pub total_secs: f64,
[INFO] [stdout]      |         ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cleanup_expired` is never used
[INFO] [stdout]    --> src/session_manager.rs:213:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl SessionManager {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 213 |     pub async fn cleanup_expired(&self) -> Result<(usize, u64), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `plan_id` is never read
[INFO] [stdout]   --> src/session_utils.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Session {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     pub plan_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_session` is never used
[INFO] [stdout]   --> src/session_utils.rs:66:8
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub fn format_session(data: &str, session: &Session) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `flush` is never used
[INFO] [stdout]    --> src/usage_batcher.rs:339:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl UsageBatcher {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 339 |     pub async fn flush(&self, data_manager: &PostgreSQLDataManager) {
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer_addr`
[INFO] [stdout]    --> src/proxy.rs:196:26
[INFO] [stdout]     |
[INFO] [stdout] 196 |             let (stream, peer_addr) = listener.accept().await?;
[INFO] [stdout]     |                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cache_manager`
[INFO] [stdout]    --> src/proxy.rs:252:5
[INFO] [stdout]     |
[INFO] [stdout] 252 |     cache_manager: Arc<CacheManager>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cache_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `retries`
[INFO] [stdout]    --> src/proxy.rs:694:20
[INFO] [stdout]     |
[INFO] [stdout] 694 |     let (upstream, retries, timings, handshake_permit) = match connect_with_handshake_permit(&upstream_addr, &provider_id).await {
[INFO] [stdout]     |                    ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_retries`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `timings`
[INFO] [stdout]    --> src/proxy.rs:694:29
[INFO] [stdout]     |
[INFO] [stdout] 694 |     let (upstream, retries, timings, handshake_permit) = match connect_with_handshake_permit(&upstream_addr, &provider_id).await {
[INFO] [stdout]     |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timings`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tcp_connect_pure_secs` is never read
[INFO] [stdout]     --> src/proxy.rs:1275:37
[INFO] [stdout]      |
[INFO] [stdout] 1275 |     let mut tcp_connect_pure_secs = 0.0;
[INFO] [stdout]      |                                     ^^^
[INFO] [stdout]      |
[INFO] [stdout]      = help: maybe it is overwritten before being read?
[INFO] [stdout]      = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_manager`
[INFO] [stdout]     --> src/proxy.rs:1066:5
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     data_manager: Arc<PostgreSQLDataManager>,
[INFO] [stdout]      |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data_manager`
[INFO] [stdout]    --> src/proxy.rs:879:5
[INFO] [stdout]     |
[INFO] [stdout] 879 |     data_manager: Arc<PostgreSQLDataManager>,
[INFO] [stdout]     |     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pid`
[INFO] [stdout]    --> src/main.rs:220:19
[INFO] [stdout]     |
[INFO] [stdout] 220 |         if let Ok(pid) = std::process::id().to_string().parse::<i32>() {
[INFO] [stdout]     |                   ^^^ help: if this is intentional, prefix it with an underscore: `_pid`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PlanUsageStats` is never constructed
[INFO] [stdout]    --> src/api/stats.rs:345:12
[INFO] [stdout]     |
[INFO] [stdout] 345 | pub struct PlanUsageStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PlansUsageResponse` is never constructed
[INFO] [stdout]    --> src/api/stats.rs:353:12
[INFO] [stdout]     |
[INFO] [stdout] 353 | pub struct PlansUsageResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `resolve_country`, `get_session_ttl`, and `get_plans` are never used
[INFO] [stdout]    --> src/cache_manager.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl CacheManager {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 113 |     pub async fn resolve_country(&self, country_code: &str) -> String {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 267 |     pub async fn get_session_ttl(&self, plan_id: &str) -> i32 {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub async fn get_plans(&self) -> tokio::sync::RwLockReadGuard<'_, std::collections::HashMap<String, crate::models::plan::Plan>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_upstream_proxy_candidates` and `get_upstream_proxy` are never used
[INFO] [stdout]   --> src/config.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 54 | impl ProxyConfig {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] 55 |     fn get_upstream_proxy_candidates(&self, country_code: &str) -> Vec<&UpstreamProxy> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub fn get_upstream_proxy(&self, country_code: &str) -> Option<&UpstreamProxy> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_provider_request` is never used
[INFO] [stdout]    --> src/metrics.rs:686:8
[INFO] [stdout]     |
[INFO] [stdout] 686 | pub fn record_provider_request(provider: &str, success: bool, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider_health` is never used
[INFO] [stdout]    --> src/metrics.rs:697:8
[INFO] [stdout]     |
[INFO] [stdout] 697 | pub fn update_provider_health(provider: &str, is_healthy: bool) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_cache_lock_wait` is never used
[INFO] [stdout]    --> src/metrics.rs:721:8
[INFO] [stdout]     |
[INFO] [stdout] 721 | pub fn record_cache_lock_wait(lock_type: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_cache_evictions` is never used
[INFO] [stdout]    --> src/metrics.rs:728:8
[INFO] [stdout]     |
[INFO] [stdout] 728 | pub fn record_cache_evictions(count: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_cache_size` is never used
[INFO] [stdout]    --> src/metrics.rs:733:8
[INFO] [stdout]     |
[INFO] [stdout] 733 | pub fn set_cache_size(size: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_redis_pool_wait` is never used
[INFO] [stdout]    --> src/metrics.rs:808:8
[INFO] [stdout]     |
[INFO] [stdout] 808 | pub fn record_redis_pool_wait(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_db_pool_acquire` is never used
[INFO] [stdout]    --> src/metrics.rs:849:8
[INFO] [stdout]     |
[INFO] [stdout] 849 | pub fn record_db_pool_acquire(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_db_pool_timeout` is never used
[INFO] [stdout]    --> src/metrics.rs:856:8
[INFO] [stdout]     |
[INFO] [stdout] 856 | pub fn record_db_pool_timeout(operation: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `network_bytes_sent` is never used
[INFO] [stdout]    --> src/metrics.rs:907:8
[INFO] [stdout]     |
[INFO] [stdout] 907 | pub fn network_bytes_sent(provider: &str, bytes: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `network_bytes_received` is never used
[INFO] [stdout]    --> src/metrics.rs:914:8
[INFO] [stdout]     |
[INFO] [stdout] 914 | pub fn network_bytes_received(provider: &str, bytes: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_network_io` is never used
[INFO] [stdout]    --> src/metrics.rs:928:8
[INFO] [stdout]     |
[INFO] [stdout] 928 | pub fn record_network_io(operation: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_provider_response_detailed` is never used
[INFO] [stdout]    --> src/metrics.rs:937:8
[INFO] [stdout]     |
[INFO] [stdout] 937 | pub fn record_provider_response_detailed(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `provider_connection_started` is never used
[INFO] [stdout]    --> src/metrics.rs:963:8
[INFO] [stdout]     |
[INFO] [stdout] 963 | pub fn provider_connection_started(provider: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `provider_connection_ended` is never used
[INFO] [stdout]    --> src/metrics.rs:969:8
[INFO] [stdout]     |
[INFO] [stdout] 969 | pub fn provider_connection_ended(provider: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_pipeline_stage` is never used
[INFO] [stdout]    --> src/metrics.rs:978:8
[INFO] [stdout]     |
[INFO] [stdout] 978 | pub fn record_pipeline_stage(stage: &str, plan: &str, duration_secs: f64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `record_stalled_write` is never used
[INFO] [stdout]     --> src/metrics.rs:1009:8
[INFO] [stdout]      |
[INFO] [stdout] 1009 | pub fn record_stalled_write(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connection_stall_started` is never used
[INFO] [stdout]     --> src/metrics.rs:1016:8
[INFO] [stdout]      |
[INFO] [stdout] 1016 | pub fn connection_stall_started(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connection_stall_ended` is never used
[INFO] [stdout]     --> src/metrics.rs:1023:8
[INFO] [stdout]      |
[INFO] [stdout] 1023 | pub fn connection_stall_ended(plan: &str) {
[INFO] [stdout]      |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_target_countries` is never used
[INFO] [stdout]    --> src/models/country_profile.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl CountryProfile {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 100 |     pub fn get_target_countries(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_session_ttl`, `get_provider_ids`, and `get_provider_weight` are never used
[INFO] [stdout]   --> src/models/plan.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Plan {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 64 |     pub fn get_session_ttl(&self) -> i32 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn get_provider_ids(&self) -> Vec<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |     pub fn get_provider_weight(&self, provider_id: &str) -> f64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ProviderCountry` is never constructed
[INFO] [stdout]   --> src/models/provider.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct ProviderCountry {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `update_health`, `log_health_check`, `format_username`, and `format_password` are never used
[INFO] [stdout]    --> src/models/provider.rs:74:18
[INFO] [stdout]     |
[INFO] [stdout]  22 | impl Provider {
[INFO] [stdout]     | ------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  74 |     pub async fn update_health(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  94 |     pub async fn log_health_check(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn format_username(&self, country: &str, session: &str) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn format_password(&self, country: &str, session: &str) -> String {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `UPSTREAM_CONNECT_TIMEOUT_SECS` is never used
[INFO] [stdout]     --> src/proxy.rs:1212:7
[INFO] [stdout]      |
[INFO] [stdout] 1212 | const UPSTREAM_CONNECT_TIMEOUT_SECS: u64 = 5; // Max 5 seconds per connect attempt
[INFO] [stdout]      |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `pre_connect_delay_secs` and `total_secs` are never read
[INFO] [stdout]     --> src/proxy.rs:1220:9
[INFO] [stdout]      |
[INFO] [stdout] 1218 | pub struct ConnectTimings {
[INFO] [stdout]      |            -------------- fields in this struct
[INFO] [stdout] 1219 |     pub semaphore_wait_secs: f64,
[INFO] [stdout] 1220 |     pub pre_connect_delay_secs: f64,
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 1221 |     pub tcp_connect_pure_secs: f64,
[INFO] [stdout] 1222 |     pub total_secs: f64,
[INFO] [stdout]      |         ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cleanup_expired` is never used
[INFO] [stdout]    --> src/session_manager.rs:213:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl SessionManager {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 213 |     pub async fn cleanup_expired(&self) -> Result<(usize, u64), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `plan_id` is never read
[INFO] [stdout]   --> src/session_utils.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Session {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     pub plan_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `flush` is never used
[INFO] [stdout]    --> src/usage_batcher.rs:339:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl UsageBatcher {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 339 |     pub async fn flush(&self, data_manager: &PostgreSQLDataManager) {
[INFO] [stdout]     |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 40s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4`
[INFO] running `Command { std: "docker" "inspect" "8345a32d28868b50657636af74d1f73fff5a4e234425a3378377fab5b829905b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8345a32d28868b50657636af74d1f73fff5a4e234425a3378377fab5b829905b", kill_on_drop: false }`
[INFO] [stdout] 8345a32d28868b50657636af74d1f73fff5a4e234425a3378377fab5b829905b
