[INFO] cloning repository https://github.com/Bliod-Cook/rota-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bliod-Cook/rota-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBliod-Cook%2Frota-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBliod-Cook%2Frota-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23b2687fc09a09b516d4c0ef7775f6d5e62084a8 [INFO] testing Bliod-Cook/rota-rust against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBliod-Cook%2Frota-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Bliod-Cook/rota-rust [INFO] finished tweaking git repo https://github.com/Bliod-Cook/rota-rust [INFO] tweaked toml for git repo https://github.com/Bliod-Cook/rota-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Bliod-Cook/rota-rust on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Bliod-Cook/rota-rust 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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a37d55d4422458a61275e9455b10fd7286cc08d06349beca01d38a906912d2b6 [INFO] running `Command { std: "docker" "start" "-a" "a37d55d4422458a61275e9455b10fd7286cc08d06349beca01d38a906912d2b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a37d55d4422458a61275e9455b10fd7286cc08d06349beca01d38a906912d2b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a37d55d4422458a61275e9455b10fd7286cc08d06349beca01d38a906912d2b6", kill_on_drop: false }` [INFO] [stdout] a37d55d4422458a61275e9455b10fd7286cc08d06349beca01d38a906912d2b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11972934a00dd705884f27b7dab38711bbb40b356fe854e0f6a5a39e7ccd6c7c [INFO] running `Command { std: "docker" "start" "-a" "11972934a00dd705884f27b7dab38711bbb40b356fe854e0f6a5a39e7ccd6c7c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling zmij v1.0.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling find-msvc-tools v0.1.8 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling cc v1.2.53 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling time-core v0.1.7 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling time-macros v0.2.25 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling raw-cpuid v11.6.0 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling time v0.3.45 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling pem v3.0.6 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling spinning_top v0.3.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling nonzero_ext v0.3.0 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling arc-swap v1.8.0 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling quanta v0.12.6 [INFO] [stderr] Compiling tokio-stream v0.1.18 [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.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling governor v0.6.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling sysinfo v0.30.13 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-socks v0.5.2 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling rota v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AuthenticatedUser` and `Claims` [INFO] [stdout] --> src/api/middleware/mod.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | pub use jwt::{AuthError, AuthenticatedUser, Claims, JwtAuth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logging::RequestLogging` [INFO] [stdout] --> src/api/middleware/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use logging::RequestLogging; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::ProxyHandler` [INFO] [stdout] --> src/proxy/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use handler::ProxyHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `health::HealthChecker` [INFO] [stdout] --> src/proxy/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use health::HealthChecker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProxySelector`, `RotationStrategy`, and `create_selector` [INFO] [stdout] --> src/proxy/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub use rotation::{create_selector, ProxySelector, RotationStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server::ProxyServer` [INFO] [stdout] --> src/proxy/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use server::ProxyServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transport::ProxyTransport` [INFO] [stdout] --> src/proxy/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use transport::ProxyTransport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tunnel::TunnelHandler` [INFO] [stdout] --> src/proxy/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use tunnel::TunnelHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `decoding_key` is never read [INFO] [stdout] --> src/api/middleware/jwt.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct JwtAuth { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 44 | encoding_key: EncodingKey, [INFO] [stdout] 45 | decoding_key: DecodingKey, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JwtAuth` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate_token` and `extract_token` are never used [INFO] [stdout] --> src/api/middleware/jwt.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl JwtAuth { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn validate_token(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn extract_token(authorization: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidToken` and `MissingToken` are never constructed [INFO] [stdout] --> src/api/middleware/jwt.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | InvalidToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 111 | MissingToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` 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 `AuthenticatedUser` is never constructed [INFO] [stdout] --> src/api/middleware/jwt.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct AuthenticatedUser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestLogging` is never constructed [INFO] [stdout] --> src/api/middleware/logging.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RequestLogging; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `log_request` is never used [INFO] [stdout] --> src/api/middleware/logging.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl RequestLogging { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | /// Log request details [INFO] [stdout] 15 | pub async fn log_request(req: Request, next: Next) -> Response { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiServerBuilder` is never constructed [INFO] [stdout] --> src/api/server.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct ApiServerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `config`, `database`, `selector`, `log_sender`, and `build` are never used [INFO] [stdout] --> src/api/server.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl ApiServerBuilder { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 117 | pub fn new(api_config: ApiServerConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn config(mut self, config: Config) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn database(mut self, db: Database) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn build(self) -> ApiServer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `log` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub log: LogConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate_limit_enabled`, `rate_limit_per_second`, `rate_limit_burst`, and `rotation_strategy` are never read [INFO] [stdout] --> src/config.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ProxyServerConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pub rate_limit_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | /// Rate limit requests per second [INFO] [stdout] 41 | pub rate_limit_per_second: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | /// Rate limit burst size [INFO] [stdout] 43 | pub rate_limit_burst: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | /// Rotation strategy (random, round_robin, least_connections, time_based) [INFO] [stdout] 45 | pub rotation_strategy: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `format` are never read [INFO] [stdout] --> src/config.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct LogConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 107 | /// Log level (debug, info, warn, error) [INFO] [stdout] 108 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | /// Output format (json, pretty) [INFO] [stdout] 110 | pub format: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `proxy_addr` and `api_addr` are never used [INFO] [stdout] --> src/config.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Config { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn proxy_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn api_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_pool`, `health_check`, `pool_stats`, and `close` are never used [INFO] [stdout] --> src/database/pool.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Database { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn from_pool(pool: PgPool) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn health_check(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn pool_stats(&self) -> PoolStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub async fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoolStats` is never constructed [INFO] [stdout] --> src/database/pool.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct PoolStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_retention_policy` is never used [INFO] [stdout] --> src/database/timescale.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn add_retention_policy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_compression_policy` is never used [INFO] [stdout] --> src/database/timescale.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | pub async fn add_compression_policy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RotaError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | AllProxiesExhausted { attempts: u32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | ProxyNotFound { id: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | TunnelError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | ConnectFailed(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | InvalidCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | MissingAuthHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | InvalidAuthHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | MissingEnvVar(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | RequestTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | SettingsNotFound { key: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RotaError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_client_error` and `is_server_error` are never used [INFO] [stdout] --> src/error.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl RotaError { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn is_client_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn is_server_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseHealth` is never constructed [INFO] [stdout] --> src/models/dashboard.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct DatabaseHealth { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HealthStatus` is never constructed [INFO] [stdout] --> src/models/dashboard.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct HealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LogLevel` is never used [INFO] [stdout] --> src/models/log.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum LogLevel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str` and `from_str` are never used [INFO] [stdout] --> src/models/log.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl LogLevel { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 18 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level_enum` is never used [INFO] [stdout] --> src/models/log.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Log { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 58 | /// Get the log level enum [INFO] [stdout] 59 | pub fn level_enum(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateLogRequest` is never constructed [INFO] [stdout] --> src/models/log.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct CreateLogRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `info`, `error`, `warning`, `success`, `with_details`, and `with_metadata` are never used [INFO] [stdout] --> src/models/log.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl CreateLogRequest { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 74 | pub fn info(message: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn error(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn warning(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn success(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn with_details(mut self, details: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn with_metadata(mut self, key: impl Into, value: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProxyProtocol` is never used [INFO] [stdout] --> src/models/proxy.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ProxyProtocol { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str`, `from_str`, `is_socks`, and `is_http` are never used [INFO] [stdout] --> src/models/proxy.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ProxyProtocol { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 19 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn is_socks(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_http(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProxyStatus` is never used [INFO] [stdout] --> src/models/proxy.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum ProxyStatus { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str`, `from_str`, and `is_usable` are never used [INFO] [stdout] --> src/models/proxy.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl ProxyStatus { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 70 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_usable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `protocol_enum`, `status_enum`, `is_usable`, `matches_filter`, and `url` are never used [INFO] [stdout] --> src/models/proxy.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl Proxy { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 121 | /// Get the protocol enum [INFO] [stdout] 122 | pub fn protocol_enum(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn status_enum(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn is_usable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn matches_filter(&self, settings: &super::RotationSettings) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn url(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkDeleteProxiesRequest` is never constructed [INFO] [stdout] --> src/models/proxy.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct BulkDeleteProxiesRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password` is never read [INFO] [stdout] --> src/models/settings.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AuthenticationSettings { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthenticationSettings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_enabled` is never used [INFO] [stdout] --> src/proxy/middleware/auth.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ProxyAuth { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_enabled` and `client_count` are never used [INFO] [stdout] --> src/proxy/middleware/rate_limit.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl RateLimiter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn client_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strategy_name` is never used [INFO] [stdout] --> src/proxy/rotation/mod.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub trait ProxySelector: Send + Sync { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 75 | fn strategy_name(&self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/proxy/rotation/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl ConnectionTracker { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_interval` and `get_interval` are never used [INFO] [stdout] --> src/proxy/rotation/time_based.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl TimeBasedSelector { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_interval(&self, interval: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_interval(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyServerBuilder` is never constructed [INFO] [stdout] --> src/proxy/server.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct ProxyServerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `selector`, `database`, `log_sender`, `rate_limiter`, and `build` are never used [INFO] [stdout] --> src/proxy/server.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl ProxyServerBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 204 | pub fn new(config: ProxyServerConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn database(mut self, db_pool: PgPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn rate_limiter(mut self, rate_limiter: RateLimiter) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn build(self) -> ProxyServer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `tunnel_through_proxy`, `tunnel_direct`, `handle_upgraded`, and `handle_upgraded_direct` are never used [INFO] [stdout] --> src/proxy/tunnel.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl TunnelHandler { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn tunnel_through_proxy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn tunnel_direct(target_host: &str, target_port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn handle_upgraded( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn handle_upgraded_direct( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_success_rate_chart` and `get_response_time_chart` are never used [INFO] [stdout] --> src/repository/dashboard.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DashboardRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn get_success_rate_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub async fn get_response_time_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_by_id` is never used [INFO] [stdout] --> src/repository/deleted_proxy.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DeletedProxyRepository { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get_by_id(&self, id: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create` and `get_since` are never used [INFO] [stdout] --> src/repository/log.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl LogRepository { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn create(&self, req: &CreateLogRequest) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn get_since(&self, last_id: i64, limit: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bulk_delete`, `count_by_status`, and `count_total` are never used [INFO] [stdout] --> src/repository/proxy.rs:310:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl ProxyRepository { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn bulk_delete(&self, ids: &[i32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | pub async fn count_by_status(&self, status: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn count_total(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/settings.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl SettingsRepository { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn get(&self, key: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn get_authentication(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub async fn get_rotation(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn get_rate_limit(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn get_healthcheck(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn get_log_retention(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn reset(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 55s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "11972934a00dd705884f27b7dab38711bbb40b356fe854e0f6a5a39e7ccd6c7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11972934a00dd705884f27b7dab38711bbb40b356fe854e0f6a5a39e7ccd6c7c", kill_on_drop: false }` [INFO] [stdout] 11972934a00dd705884f27b7dab38711bbb40b356fe854e0f6a5a39e7ccd6c7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21cd5cc0179f88ff9874a02a567b7dc33def273d9e71fc58f9d872b21cf69051 [INFO] running `Command { std: "docker" "start" "-a" "21cd5cc0179f88ff9874a02a567b7dc33def273d9e71fc58f9d872b21cf69051", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-socks v0.5.2 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tokio-test v0.4.5 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling rota v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AuthenticatedUser` and `Claims` [INFO] [stdout] --> src/api/middleware/mod.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | pub use jwt::{AuthError, AuthenticatedUser, Claims, JwtAuth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `logging::RequestLogging` [INFO] [stdout] --> src/api/middleware/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use logging::RequestLogging; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::ProxyHandler` [INFO] [stdout] --> src/proxy/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use handler::ProxyHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `health::HealthChecker` [INFO] [stdout] --> src/proxy/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use health::HealthChecker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProxySelector`, `RotationStrategy`, and `create_selector` [INFO] [stdout] --> src/proxy/mod.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub use rotation::{create_selector, ProxySelector, RotationStrategy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server::ProxyServer` [INFO] [stdout] --> src/proxy/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use server::ProxyServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transport::ProxyTransport` [INFO] [stdout] --> src/proxy/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use transport::ProxyTransport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tunnel::TunnelHandler` [INFO] [stdout] --> src/proxy/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use tunnel::TunnelHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MissingToken` is never constructed [INFO] [stdout] --> src/api/middleware/jwt.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum AuthError { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 111 | MissingToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticatedUser` is never constructed [INFO] [stdout] --> src/api/middleware/jwt.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct AuthenticatedUser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestLogging` is never constructed [INFO] [stdout] --> src/api/middleware/logging.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RequestLogging; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `log_request` is never used [INFO] [stdout] --> src/api/middleware/logging.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl RequestLogging { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | /// Log request details [INFO] [stdout] 15 | pub async fn log_request(req: Request, next: Next) -> Response { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiServerBuilder` is never constructed [INFO] [stdout] --> src/api/server.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct ApiServerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `config`, `database`, `selector`, `log_sender`, and `build` are never used [INFO] [stdout] --> src/api/server.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl ApiServerBuilder { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 117 | pub fn new(api_config: ApiServerConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn config(mut self, config: Config) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn database(mut self, db: Database) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn build(self) -> ApiServer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `log` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub log: LogConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate_limit_enabled`, `rate_limit_per_second`, and `rate_limit_burst` are never read [INFO] [stdout] --> src/config.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ProxyServerConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pub rate_limit_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | /// Rate limit requests per second [INFO] [stdout] 41 | pub rate_limit_per_second: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | /// Rate limit burst size [INFO] [stdout] 43 | pub rate_limit_burst: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `format` are never read [INFO] [stdout] --> src/config.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct LogConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 107 | /// Log level (debug, info, warn, error) [INFO] [stdout] 108 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | /// Output format (json, pretty) [INFO] [stdout] 110 | pub format: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `health_check`, `pool_stats`, and `close` are never used [INFO] [stdout] --> src/database/pool.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn health_check(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn pool_stats(&self) -> PoolStats { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub async fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoolStats` is never constructed [INFO] [stdout] --> src/database/pool.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct PoolStats { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum RotaError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | AllProxiesExhausted { attempts: u32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | TunnelError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | ConnectFailed(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | InvalidCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | MissingAuthHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | InvalidAuthHeader, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | MissingEnvVar(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | RequestTimeout, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | SettingsNotFound { key: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RotaError` 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 `DatabaseHealth` is never constructed [INFO] [stdout] --> src/models/dashboard.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct DatabaseHealth { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HealthStatus` is never constructed [INFO] [stdout] --> src/models/dashboard.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct HealthStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `warning` is never used [INFO] [stdout] --> src/models/log.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl CreateLogRequest { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn warning(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BulkDeleteProxiesRequest` is never constructed [INFO] [stdout] --> src/models/proxy.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct BulkDeleteProxiesRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_enabled` is never used [INFO] [stdout] --> src/proxy/middleware/auth.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ProxyAuth { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_enabled` is never used [INFO] [stdout] --> src/proxy/middleware/rate_limit.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl RateLimiter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyServerBuilder` is never constructed [INFO] [stdout] --> src/proxy/server.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct ProxyServerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `selector`, `database`, `log_sender`, `rate_limiter`, and `build` are never used [INFO] [stdout] --> src/proxy/server.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl ProxyServerBuilder { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 204 | pub fn new(config: ProxyServerConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn database(mut self, db_pool: PgPool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn rate_limiter(mut self, rate_limiter: RateLimiter) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn build(self) -> ProxyServer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `tunnel_through_proxy`, `tunnel_direct`, `handle_upgraded`, and `handle_upgraded_direct` are never used [INFO] [stdout] --> src/proxy/tunnel.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl TunnelHandler { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn tunnel_through_proxy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn tunnel_direct(target_host: &str, target_port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn handle_upgraded( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn handle_upgraded_direct( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_success_rate_chart` and `get_response_time_chart` are never used [INFO] [stdout] --> src/repository/dashboard.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DashboardRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub async fn get_success_rate_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub async fn get_response_time_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_by_id` is never used [INFO] [stdout] --> src/repository/deleted_proxy.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DeletedProxyRepository { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get_by_id(&self, id: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create` and `get_since` are never used [INFO] [stdout] --> src/repository/log.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl LogRepository { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn create(&self, req: &CreateLogRequest) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn get_since(&self, last_id: i64, limit: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bulk_delete`, `count_by_status`, and `count_total` are never used [INFO] [stdout] --> src/repository/proxy.rs:310:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl ProxyRepository { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 310 | pub async fn bulk_delete(&self, ids: &[i32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | pub async fn count_by_status(&self, status: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn count_total(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/settings.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl SettingsRepository { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn get(&self, key: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn get_authentication(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub async fn get_rotation(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn get_rate_limit(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn get_healthcheck(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn get_log_retention(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn reset(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 59.04s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "21cd5cc0179f88ff9874a02a567b7dc33def273d9e71fc58f9d872b21cf69051", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21cd5cc0179f88ff9874a02a567b7dc33def273d9e71fc58f9d872b21cf69051", kill_on_drop: false }` [INFO] [stdout] 21cd5cc0179f88ff9874a02a567b7dc33def273d9e71fc58f9d872b21cf69051 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d1160d769b451216c83cb8157d577b24a8c8a6eaa0a00448a5c39cbea8b845e8 [INFO] running `Command { std: "docker" "start" "-a" "d1160d769b451216c83cb8157d577b24a8c8a6eaa0a00448a5c39cbea8b845e8", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `AuthenticatedUser` and `Claims` [INFO] [stderr] --> src/api/middleware/mod.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | pub use jwt::{AuthError, AuthenticatedUser, Claims, JwtAuth}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `logging::RequestLogging` [INFO] [stderr] --> src/api/middleware/mod.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use logging::RequestLogging; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `handler::ProxyHandler` [INFO] [stderr] --> src/proxy/mod.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub use handler::ProxyHandler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `health::HealthChecker` [INFO] [stderr] --> src/proxy/mod.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | pub use health::HealthChecker; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ProxySelector`, `RotationStrategy`, and `create_selector` [INFO] [stderr] --> src/proxy/mod.rs:21:20 [INFO] [stderr] | [INFO] [stderr] 21 | pub use rotation::{create_selector, ProxySelector, RotationStrategy}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `server::ProxyServer` [INFO] [stderr] --> src/proxy/mod.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | pub use server::ProxyServer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `transport::ProxyTransport` [INFO] [stderr] --> src/proxy/mod.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | pub use transport::ProxyTransport; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tunnel::TunnelHandler` [INFO] [stderr] --> src/proxy/mod.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub use tunnel::TunnelHandler; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `MissingToken` is never constructed [INFO] [stderr] --> src/api/middleware/jwt.rs:111:5 [INFO] [stderr] | [INFO] [stderr] 107 | pub enum AuthError { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 111 | MissingToken, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `AuthenticatedUser` is never constructed [INFO] [stderr] --> src/api/middleware/jwt.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub struct AuthenticatedUser { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RequestLogging` is never constructed [INFO] [stderr] --> src/api/middleware/logging.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct RequestLogging; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `log_request` is never used [INFO] [stderr] --> src/api/middleware/logging.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 13 | impl RequestLogging { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 14 | /// Log request details [INFO] [stderr] 15 | pub async fn log_request(req: Request, next: Next) -> Response { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ApiServerBuilder` is never constructed [INFO] [stderr] --> src/api/server.rs:108:12 [INFO] [stderr] | [INFO] [stderr] 108 | pub struct ApiServerBuilder { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `config`, `database`, `selector`, `log_sender`, and `build` are never used [INFO] [stderr] --> src/api/server.rs:117:12 [INFO] [stderr] | [INFO] [stderr] 116 | impl ApiServerBuilder { [INFO] [stderr] | --------------------- associated items in this implementation [INFO] [stderr] 117 | pub fn new(api_config: ApiServerConfig) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 127 | pub fn config(mut self, config: Config) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 132 | pub fn database(mut self, db: Database) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 137 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 142 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | pub fn build(self) -> ApiServer { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `log` is never read [INFO] [stderr] --> src/config.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Config { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 17 | pub log: LogConfig, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `rate_limit_enabled`, `rate_limit_per_second`, and `rate_limit_burst` are never read [INFO] [stderr] --> src/config.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct ProxyServerConfig { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 39 | pub rate_limit_enabled: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 40 | /// Rate limit requests per second [INFO] [stderr] 41 | pub rate_limit_per_second: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 42 | /// Rate limit burst size [INFO] [stderr] 43 | pub rate_limit_burst: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ProxyServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `level` and `format` are never read [INFO] [stderr] --> src/config.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 106 | pub struct LogConfig { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 107 | /// Log level (debug, info, warn, error) [INFO] [stderr] 108 | pub level: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 109 | /// Output format (json, pretty) [INFO] [stderr] 110 | pub format: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `health_check`, `pool_stats`, and `close` are never used [INFO] [stderr] --> src/database/pool.rs:51:18 [INFO] [stderr] | [INFO] [stderr] 13 | impl Database { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 51 | pub async fn health_check(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | pub fn pool_stats(&self) -> PoolStats { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 81 | pub async fn close(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PoolStats` is never constructed [INFO] [stderr] --> src/database/pool.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub struct PoolStats { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/error.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum RotaError { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 27 | AllProxiesExhausted { attempts: u32 }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | TunnelError(String), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | ConnectFailed(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | InvalidCredentials, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | MissingAuthHeader, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | InvalidAuthHeader, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | MissingEnvVar(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 80 | RequestTimeout, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | SettingsNotFound { key: String }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RotaError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `DatabaseHealth` is never constructed [INFO] [stderr] --> src/models/dashboard.rs:109:12 [INFO] [stderr] | [INFO] [stderr] 109 | pub struct DatabaseHealth { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `HealthStatus` is never constructed [INFO] [stderr] --> src/models/dashboard.rs:118:12 [INFO] [stderr] | [INFO] [stderr] 118 | pub struct HealthStatus { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `warning` is never used [INFO] [stderr] --> src/models/log.rs:92:12 [INFO] [stderr] | [INFO] [stderr] 73 | impl CreateLogRequest { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn warning(message: impl Into) -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BulkDeleteProxiesRequest` is never constructed [INFO] [stderr] --> src/models/proxy.rs:276:12 [INFO] [stderr] | [INFO] [stderr] 276 | pub struct BulkDeleteProxiesRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_enabled` is never used [INFO] [stderr] --> src/proxy/middleware/auth.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 23 | impl ProxyAuth { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 43 | pub fn is_enabled(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_enabled` is never used [INFO] [stderr] --> src/proxy/middleware/rate_limit.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 58 | impl RateLimiter { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 80 | pub fn is_enabled(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ProxyServerBuilder` is never constructed [INFO] [stderr] --> src/proxy/server.rs:195:12 [INFO] [stderr] | [INFO] [stderr] 195 | pub struct ProxyServerBuilder { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `selector`, `database`, `log_sender`, `rate_limiter`, and `build` are never used [INFO] [stderr] --> src/proxy/server.rs:204:12 [INFO] [stderr] | [INFO] [stderr] 203 | impl ProxyServerBuilder { [INFO] [stderr] | ----------------------- associated items in this implementation [INFO] [stderr] 204 | pub fn new(config: ProxyServerConfig) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 214 | pub fn selector(mut self, selector: Arc) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 219 | pub fn database(mut self, db_pool: PgPool) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 224 | pub fn log_sender(mut self, sender: broadcast::Sender) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 229 | pub fn rate_limiter(mut self, rate_limiter: RateLimiter) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 234 | pub fn build(self) -> ProxyServer { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `tunnel_through_proxy`, `tunnel_direct`, `handle_upgraded`, and `handle_upgraded_direct` are never used [INFO] [stderr] --> src/proxy/tunnel.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 21 | impl TunnelHandler { [INFO] [stderr] | ------------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 24 | pub async fn tunnel_through_proxy( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | pub async fn tunnel_direct(target_host: &str, target_port: u16) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | pub async fn handle_upgraded( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | pub async fn handle_upgraded_direct( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_success_rate_chart` and `get_response_time_chart` are never used [INFO] [stderr] --> src/repository/dashboard.rs:160:18 [INFO] [stderr] | [INFO] [stderr] 12 | impl DashboardRepository { [INFO] [stderr] | ------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 160 | pub async fn get_success_rate_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 227 | pub async fn get_response_time_chart(&self, range: &ChartTimeRange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_by_id` is never used [INFO] [stderr] --> src/repository/deleted_proxy.rs:53:18 [INFO] [stderr] | [INFO] [stderr] 12 | impl DeletedProxyRepository { [INFO] [stderr] | --------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 53 | pub async fn get_by_id(&self, id: i32) -> Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `create` and `get_since` are never used [INFO] [stderr] --> src/repository/log.rs:17:18 [INFO] [stderr] | [INFO] [stderr] 11 | impl LogRepository { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 17 | pub async fn create(&self, req: &CreateLogRequest) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | pub async fn get_since(&self, last_id: i64, limit: i64) -> Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `bulk_delete`, `count_by_status`, and `count_total` are never used [INFO] [stderr] --> src/repository/proxy.rs:310:18 [INFO] [stderr] | [INFO] [stderr] 15 | impl ProxyRepository { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 310 | pub async fn bulk_delete(&self, ids: &[i32]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 491 | pub async fn count_by_status(&self, status: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 501 | pub async fn count_total(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/repository/settings.rs:64:18 [INFO] [stderr] | [INFO] [stderr] 15 | impl SettingsRepository { [INFO] [stderr] | ----------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 64 | pub async fn get(&self, key: &str) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub async fn get_authentication(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub async fn get_rotation(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub async fn get_rate_limit(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 98 | pub async fn get_healthcheck(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub async fn get_log_retention(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 143 | pub async fn reset(&self) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rota` (bin "rota" test) generated 34 warnings (run `cargo fix --bin "rota" -p rota --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rota-5009d50589f3df4c) [INFO] [stdout] [INFO] [stdout] running 91 tests [INFO] [stdout] test api::handlers::health::tests::test_health_check_response_shape ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_generation_and_validation ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_accepts_socks5h_scheme ... ok [INFO] [stdout] test config::tests::test_config_from_env_defaults ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_extract_token ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_empty_origins_allows_localhost ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_defaults_port_by_scheme ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_path ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_fragment ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_http_allows_username_without_password ... ok [INFO] [stdout] test config::tests::test_config_from_env_invalid_port ... ok [INFO] [stdout] test config::tests::test_config_from_env_socks5_egress_proxy_requires_password_if_user_set ... ok [INFO] [stdout] test config::tests::test_config_from_env_overrides ... ok [INFO] [stdout] test config::tests::test_config_from_env_invalid_egress_proxy_url ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_interval_mapping ... ok [INFO] [stdout] test error::tests::test_error_status_code_mapping ... ok [INFO] [stdout] test error::tests::test_error_client_server_helpers ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_start_time_range ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_start_end_override ... ok [INFO] [stdout] test database::timescale::tests::test_add_compression_policy_rejects_unknown_table_name ... ok [INFO] [stdout] test database::timescale::tests::test_add_retention_policy_rejects_unknown_table_name ... ok [INFO] [stdout] test models::log::tests::test_create_log_request_builders ... ok [INFO] [stdout] test models::log::tests::test_log_level_parsing_and_display ... ok [INFO] [stdout] test models::log::tests::test_log_level_enum ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_matches_filter ... ok [INFO] [stdout] test models::proxy::tests::test_paginated_response_total_pages ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_invalid_token ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_protocol_parsing_and_helpers ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_serialization_includes_all_fields ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_status_parsing_and_is_usable ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_success_rate_and_is_usable ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_url_formats ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_url_with_auth ... ok [INFO] [stdout] test models::settings::tests::test_authentication_password_is_write_only ... ok [INFO] [stdout] test api::routes::tests::test_api_v1_login_route_exists ... ok [INFO] [stdout] test models::settings::tests::test_settings_serialization_never_includes_password ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_invalid_credentials ... ok [INFO] [stdout] test proxy::egress::tests::parse_host_port_supports_ipv6 ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_disabled ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_invalid_scheme ... ok [INFO] [stdout] test proxy::egress::tests::connect_via_http_proxy_tunnels_bytes ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_missing_header ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_valid_credentials ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_disabled ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_allows_within_limit ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_client_count ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_apply_settings_uses_clamped_values ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_apply_settings_clears_client_state ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_blocks_over_limit ... ok [INFO] [stdout] test proxy::egress::tests::parse_host_port_rejects_missing_port ... ok [INFO] [stdout] test proxy::egress::tests::connect_via_socks5_proxy_tunnels_bytes ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_per_ip ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_empty ... ok [INFO] [stdout] test proxy::rotation::dynamic::tests::test_dynamic_selector_refresh_propagates ... ok [INFO] [stdout] test proxy::rotation::dynamic::tests::test_dynamic_selector_switch_strategy_preserves_proxies_and_tracking ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_single_proxy ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_multiple_proxies ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_empty ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_release ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_selects_lowest ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_empty ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_order ... ok [INFO] [stdout] test proxy::rotation::tests::test_connection_tracker_counts ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_refresh_resets_index ... ok [INFO] [stdout] test proxy::rotation::tests::test_rotation_strategy_from_str ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_empty ... ok [INFO] [stdout] test proxy::rotation::tests::test_create_selector_strategy_name ... ok [INFO] [stdout] test proxy::rotation::tests::test_rotation_strategy_as_str ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_interval_update ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_refresh_adjusts_index ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_rotates_after_interval ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_defaults ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_host_and_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_explicit_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_invalid_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_missing_host ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_ipv6 ... ok [INFO] [stdout] test services::log_cleanup::tests::test_config_default ... ok [INFO] [stdout] test proxy::tunnel::tests::test_copy_bidirectional ... ok [INFO] [stdout] test repository::dashboard::tests::test_bucket_seconds_mapping ... ok [INFO] [stdout] test services::log_cleanup::tests::test_interval_atomic_update ... ok [INFO] [stdout] test api::routes::tests::test_api_v1_ws_route_is_registered ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_random_secret ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_expired_token ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_with_origins_allows_configured ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_same_proxy_within_interval ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_default_port ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_empty_origins_blocks_other_origins ... ok [INFO] [stdout] test config::tests::test_config_formatters ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_query ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_unsupported_scheme ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 91 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rota-cdf81cf6478d7794) [INFO] [stdout] [INFO] [stdout] running 91 tests [INFO] [stdout] test api::middleware::jwt::tests::test_extract_token ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_invalid_token ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_generation_and_validation ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_random_secret ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_defaults_port_by_scheme ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_http_allows_username_without_password ... ok [INFO] [stdout] test config::tests::test_config_from_env_defaults ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_accepts_socks5h_scheme ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_empty_origins_blocks_other_origins ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_fragment ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_path ... ok [INFO] [stdout] test config::tests::test_config_from_env_invalid_egress_proxy_url ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_unsupported_scheme ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_with_origins_allows_configured ... ok [INFO] [stdout] test config::tests::test_config_formatters ... ok [INFO] [stdout] test config::tests::test_config_from_env_egress_proxy_rejects_query ... ok [INFO] [stdout] test api::middleware::cors::tests::test_cors_empty_origins_allows_localhost ... ok [INFO] [stdout] test config::tests::test_config_from_env_socks5_egress_proxy_requires_password_if_user_set ... ok [INFO] [stdout] test config::tests::test_config_from_env_invalid_port ... ok [INFO] [stdout] test api::routes::tests::test_api_v1_ws_route_is_registered ... ok [INFO] [stdout] test api::routes::tests::test_api_v1_login_route_exists ... ok [INFO] [stdout] test error::tests::test_error_status_code_mapping ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_interval_mapping ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_start_end_override ... ok [INFO] [stdout] test models::log::tests::test_log_level_enum ... ok [INFO] [stdout] test models::dashboard::tests::test_chart_time_range_start_time_range ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_serialization_includes_all_fields ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_url_formats ... ok [INFO] [stdout] test models::log::tests::test_log_level_parsing_and_display ... ok [INFO] [stdout] test error::tests::test_error_client_server_helpers ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_matches_filter ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_url_with_auth ... ok [INFO] [stdout] test models::proxy::tests::test_paginated_response_total_pages ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_success_rate_and_is_usable ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_protocol_parsing_and_helpers ... ok [INFO] [stdout] test models::log::tests::test_create_log_request_builders ... ok [INFO] [stdout] test models::settings::tests::test_settings_serialization_never_includes_password ... ok [INFO] [stdout] test models::settings::tests::test_authentication_password_is_write_only ... ok [INFO] [stdout] test database::timescale::tests::test_add_compression_policy_rejects_unknown_table_name ... ok [INFO] [stdout] test proxy::egress::tests::parse_host_port_rejects_missing_port ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_disabled ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_invalid_credentials ... ok [INFO] [stdout] test api::handlers::health::tests::test_health_check_response_shape ... ok [INFO] [stdout] test proxy::egress::tests::connect_via_socks5_proxy_tunnels_bytes ... ok [INFO] [stdout] test proxy::egress::tests::parse_host_port_supports_ipv6 ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_valid_credentials ... ok [INFO] [stdout] test database::timescale::tests::test_add_retention_policy_rejects_unknown_table_name ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_invalid_scheme ... ok [INFO] [stdout] test proxy::middleware::auth::tests::test_auth_missing_header ... ok [INFO] [stdout] test proxy::egress::tests::connect_via_http_proxy_tunnels_bytes ... ok [INFO] [stdout] test config::tests::test_config_from_env_overrides ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_apply_settings_uses_clamped_values ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_client_count ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_apply_settings_clears_client_state ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_allows_within_limit ... ok [INFO] [stdout] test models::proxy::tests::test_proxy_status_parsing_and_is_usable ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_blocks_over_limit ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_disabled ... ok [INFO] [stdout] test proxy::middleware::rate_limit::tests::test_rate_limiter_per_ip ... ok [INFO] [stdout] test proxy::rotation::dynamic::tests::test_dynamic_selector_refresh_propagates ... ok [INFO] [stdout] test proxy::rotation::dynamic::tests::test_dynamic_selector_switch_strategy_preserves_proxies_and_tracking ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_empty ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_selects_lowest ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_multiple_proxies ... ok [INFO] [stdout] test proxy::rotation::least_conn::tests::test_least_conn_release ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_empty ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_empty ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_order ... ok [INFO] [stdout] test proxy::rotation::round_robin::tests::test_round_robin_refresh_resets_index ... ok [INFO] [stdout] test proxy::rotation::tests::test_connection_tracker_counts ... ok [INFO] [stdout] test proxy::rotation::tests::test_create_selector_strategy_name ... ok [INFO] [stdout] test proxy::rotation::tests::test_rotation_strategy_as_str ... ok [INFO] [stdout] test proxy::rotation::tests::test_rotation_strategy_from_str ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_empty ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_interval_update ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_rotates_after_interval ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_default_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_host_and_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_invalid_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_authority_ipv6 ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_defaults ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_explicit_port ... ok [INFO] [stdout] test proxy::transport::tests::test_parse_target_missing_host ... ok [INFO] [stdout] test proxy::tunnel::tests::test_copy_bidirectional ... ok [INFO] [stdout] test services::log_cleanup::tests::test_config_default ... ok [INFO] [stdout] test repository::dashboard::tests::test_bucket_seconds_mapping ... ok [INFO] [stdout] test services::log_cleanup::tests::test_interval_atomic_update ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_same_proxy_within_interval ... ok [INFO] [stdout] test proxy::rotation::time_based::tests::test_time_based_refresh_adjusts_index ... ok [INFO] [stdout] test proxy::rotation::random::tests::test_random_selector_single_proxy ... ok [INFO] [stdout] test api::middleware::jwt::tests::test_jwt_expired_token ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 91 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] [stderr] Doc-tests rota [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d1160d769b451216c83cb8157d577b24a8c8a6eaa0a00448a5c39cbea8b845e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1160d769b451216c83cb8157d577b24a8c8a6eaa0a00448a5c39cbea8b845e8", kill_on_drop: false }` [INFO] [stdout] d1160d769b451216c83cb8157d577b24a8c8a6eaa0a00448a5c39cbea8b845e8