[INFO] cloning repository https://github.com/differs/kukuapi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/differs/kukuapi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiffers%2Fkukuapi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiffers%2Fkukuapi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10940c9438eccae7c34b374a3f4fa914714f0a94 [INFO] checking differs/kukuapi/10940c9438eccae7c34b374a3f4fa914714f0a94 against c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40 for pr-160391-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiffers%2Fkukuapi" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/differs/kukuapi [INFO] finished tweaking git repo https://github.com/differs/kukuapi [INFO] tweaked toml for git repo https://github.com/differs/kukuapi written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/differs/kukuapi on toolchain c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/differs/kukuapi 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" "+c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa [INFO] running `Command { std: "docker" "start" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa" "/opt/rustwide/cargo-home/bin/cargo" "+c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa" "/opt/rustwide/cargo-home/bin/cargo" "+c319ab3d7cf6bd67099fd3635f0e3c0fccb07e40" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.8.2 [INFO] [stderr] Checking bytes v1.12.0 [INFO] [stderr] Checking log v0.4.33 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling typenum v1.20.1 [INFO] [stderr] Compiling aws-lc-rs v1.17.1 [INFO] [stderr] Checking bitflags v2.13.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking alloc-stdlib v0.2.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling rustls v0.23.41 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling zerocopy v0.8.52 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking http v1.4.2 [INFO] [stderr] Compiling cc v1.2.65 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Compiling tinyvec v1.11.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling openssl v0.10.81 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling chrono v0.4.45 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking getrandom v0.4.3 [INFO] [stderr] Checking brotli-decompressor v5.0.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling uuid v1.23.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking brotli v8.0.4 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling time-macros v0.2.31 [INFO] [stderr] Checking num-bigint v0.4.7 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling aws-lc-sys v0.42.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling openssl-sys v0.9.117 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Checking smallvec v1.15.2 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Checking unicase v2.9.0 [INFO] [stderr] Checking data-encoding v2.11.0 [INFO] [stderr] Checking time v0.3.53 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking tungstenite v0.29.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Checking fastrand v2.4.1 [INFO] [stderr] Checking base64ct v1.8.3 [INFO] [stderr] Compiling schemars v0.8.22 [INFO] [stderr] Checking unicode-segmentation v1.13.3 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Compiling rust_decimal v1.42.1 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking backon v1.6.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking async-lock v3.4.2 [INFO] [stderr] Checking arc-swap v1.9.2 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking predicates v3.1.4 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking brotli-decompressor v4.0.3 [INFO] [stderr] Compiling rustls-webpki v0.103.13 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Compiling schemars_derive v0.8.22 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling pin-project-internal v1.1.13 [INFO] [stderr] Compiling axum-macros v0.5.1 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking fragile v2.1.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking base32 v0.5.1 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking totp-rs v5.7.2 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking brotli v7.0.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking moka v0.12.15 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking regex v1.12.4 [INFO] [stderr] Checking pin-project v1.1.13 [INFO] [stderr] Checking dashmap v6.2.1 [INFO] [stderr] Checking clap v4.6.1 [INFO] [stderr] Checking mockall v0.13.1 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.29.0 [INFO] [stderr] Checking h2 v0.4.15 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking compression-codecs v0.4.38 [INFO] [stderr] Checking async-compression v0.4.42 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking hyper v1.10.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking redis v0.28.2 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking axum v0.8.9 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking kukuapi-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ChatDelta` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | ChatCompletionsRequest, ChatCompletionsResponse, ChatChoice, ChatDelta, ChatFunction, [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: `AnthropicOutputConfig` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | AnthropicUsage, AnthropicThinking, AnthropicOutputConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatChoice`, `ChatMessage as OpenAIMessage`, and `ChatToolCall` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | ChatCompletionsRequest, ChatCompletionsResponse, ChatMessage as OpenAIMessage, ChatToolCall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ChatChoice, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatFunctionCall` and `ChatToolCall` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatToolCall, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatFunctionCall` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiStreamChunk` [INFO] [stdout] --> src/gateway/mod.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | ApiRequest, ApiResponse, ApiStreamChunk, OutputFormat, Platform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middleware::api_key_auth::AuthenticatedKey` [INFO] [stdout] --> src/gateway/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::middleware::api_key_auth::AuthenticatedKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatCompletionsChunk` [INFO] [stdout] --> src/gateway/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::openai::{ChatCompletionsRequest, ChatCompletionsResponse, ChatCompletionsChunk, ResponsesRequest, ResponsesResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeepSeekChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::deepseek::{DeepSeekChatRequest, DeepSeekChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AgnesChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::types::agnes::{AgnesChatRequest, AgnesChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> src/gateway/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info`, and `warn` [INFO] [stdout] --> src/gateway/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/middleware/api_key_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/models/oauth_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oauth_state::*` [INFO] [stdout] --> src/db/models/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use oauth_state::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> src/db/mod.rs:14:45 [INFO] [stdout] | [INFO] [stdout] 14 | use sqlx::postgres::{PgPool, PgPoolOptions, PgConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/db/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/db/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::log::LevelFilter` [INFO] [stdout] --> src/db/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::log::LevelFilter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OAuthProviderConfig` [INFO] [stdout] --> src/oauth/claude.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::oauth::{OAuthCredentials, OAuthProviderConfig, TokenResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/oauth/claude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/oauth/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserSubscription` [INFO] [stdout] --> src/billing/mod.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::models::{User, ApiKey, UserSubscription}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/admin/users.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/admin/users.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::db::models::{User, CreateUser}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tls_fingerprint/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatDelta` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | ChatCompletionsRequest, ChatCompletionsResponse, ChatChoice, ChatDelta, ChatFunction, [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: `AnthropicOutputConfig` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | AnthropicUsage, AnthropicThinking, AnthropicOutputConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatChoice`, `ChatMessage as OpenAIMessage`, and `ChatToolCall` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | ChatCompletionsRequest, ChatCompletionsResponse, ChatMessage as OpenAIMessage, ChatToolCall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ChatChoice, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatFunctionCall` and `ChatToolCall` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatToolCall, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatFunctionCall` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiStreamChunk` [INFO] [stdout] --> src/gateway/mod.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | ApiRequest, ApiResponse, ApiStreamChunk, OutputFormat, Platform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middleware::api_key_auth::AuthenticatedKey` [INFO] [stdout] --> src/gateway/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::middleware::api_key_auth::AuthenticatedKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatCompletionsChunk` [INFO] [stdout] --> src/gateway/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::openai::{ChatCompletionsRequest, ChatCompletionsResponse, ChatCompletionsChunk, ResponsesRequest, ResponsesResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeepSeekChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::deepseek::{DeepSeekChatRequest, DeepSeekChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AgnesChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::types::agnes::{AgnesChatRequest, AgnesChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> src/gateway/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info`, and `warn` [INFO] [stdout] --> src/gateway/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/middleware/api_key_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/models/oauth_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oauth_state::*` [INFO] [stdout] --> src/db/models/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use oauth_state::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> src/db/mod.rs:14:45 [INFO] [stdout] | [INFO] [stdout] 14 | use sqlx::postgres::{PgPool, PgPoolOptions, PgConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/db/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/db/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::log::LevelFilter` [INFO] [stdout] --> src/db/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::log::LevelFilter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OAuthProviderConfig` [INFO] [stdout] --> src/oauth/claude.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::oauth::{OAuthCredentials, OAuthProviderConfig, TokenResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/oauth/claude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/oauth/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserSubscription` [INFO] [stdout] --> src/billing/mod.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::models::{User, ApiKey, UserSubscription}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/admin/users.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/admin/users.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::db::models::{User, CreateUser}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tls_fingerprint/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> src/db/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> src/db/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | Value::String(s) => tc.clone(), // "auto", "any", "none" pass through [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let mut tool_calls = msg.tool_calls.clone().unwrap_or_default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | Value::String(s) => tc.clone(), // "auto", "any", "none" pass through [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let mut tool_calls = msg.tool_calls.clone().unwrap_or_default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:141:33 [INFO] [stdout] | [INFO] [stdout] 141 | (ApiResponse::Anthropic(resp), OutputFormat::Anthropic) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | (ApiResponse::OpenAIChat(resp), OutputFormat::OpenAIChat) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | (ApiResponse::DeepSeek(resp), OutputFormat::DeepSeek) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | (ApiResponse::Agnes(resp), OutputFormat::Agnes) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:141:33 [INFO] [stdout] | [INFO] [stdout] 141 | (ApiResponse::Anthropic(resp), OutputFormat::Anthropic) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | (ApiResponse::OpenAIChat(resp), OutputFormat::OpenAIChat) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | (ApiResponse::DeepSeek(resp), OutputFormat::DeepSeek) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | (ApiResponse::Agnes(resp), OutputFormat::Agnes) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/gateway/mod.rs:587:44 [INFO] [stdout] | [INFO] [stdout] 587 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/gateway/mod.rs:587:44 [INFO] [stdout] | [INFO] [stdout] 587 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_store` [INFO] [stdout] --> src/middleware/api_key_auth.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let key_store = match key_store { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_store` [INFO] [stdout] --> src/middleware/api_key_auth.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let key_store = match key_store { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/billing/mod.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | model: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/admin/api_keys.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/billing/mod.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | model: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/admin/users.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 81 | struct BalanceAdjustment { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 82 | amount: f64, [INFO] [stdout] 83 | reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/admin/api_keys.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/admin/users.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 81 | struct BalanceAdjustment { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 82 | amount: f64, [INFO] [stdout] 83 | reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kukuapi_rs` [INFO] [stdout] --> tests/integration_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use kukuapi_rs; [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: `HeaderValue` [INFO] [stdout] --> tests/integration_tests.rs:275:31 [INFO] [stdout] | [INFO] [stdout] 275 | use axum::http::{Request, HeaderValue}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> tests/integration_tests.rs:438:9 [INFO] [stdout] | [INFO] [stdout] 438 | use axum::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatDelta` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | ChatCompletionsRequest, ChatCompletionsResponse, ChatChoice, ChatDelta, ChatFunction, [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: `AnthropicOutputConfig` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | AnthropicUsage, AnthropicThinking, AnthropicOutputConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatChoice`, `ChatMessage as OpenAIMessage`, and `ChatToolCall` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | ChatCompletionsRequest, ChatCompletionsResponse, ChatMessage as OpenAIMessage, ChatToolCall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ChatChoice, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatFunctionCall` and `ChatToolCall` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatToolCall, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatFunctionCall` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiStreamChunk` [INFO] [stdout] --> src/gateway/mod.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | ApiRequest, ApiResponse, ApiStreamChunk, OutputFormat, Platform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middleware::api_key_auth::AuthenticatedKey` [INFO] [stdout] --> src/gateway/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::middleware::api_key_auth::AuthenticatedKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatCompletionsChunk` [INFO] [stdout] --> src/gateway/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::openai::{ChatCompletionsRequest, ChatCompletionsResponse, ChatCompletionsChunk, ResponsesRequest, ResponsesResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeepSeekChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::deepseek::{DeepSeekChatRequest, DeepSeekChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AgnesChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::types::agnes::{AgnesChatRequest, AgnesChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> src/gateway/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info`, and `warn` [INFO] [stdout] --> src/gateway/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/middleware/api_key_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/models/oauth_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::settings::OAuthState` [INFO] [stdout] --> src/db/models/oauth_state.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use super::settings::OAuthState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oauth_state::*` [INFO] [stdout] --> src/db/models/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use oauth_state::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> src/db/mod.rs:14:45 [INFO] [stdout] | [INFO] [stdout] 14 | use sqlx::postgres::{PgPool, PgPoolOptions, PgConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/db/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/db/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::log::LevelFilter` [INFO] [stdout] --> src/db/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::log::LevelFilter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OAuthProviderConfig` [INFO] [stdout] --> src/oauth/claude.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::oauth::{OAuthCredentials, OAuthProviderConfig, TokenResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/oauth/claude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/oauth/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserSubscription` [INFO] [stdout] --> src/billing/mod.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::models::{User, ApiKey, UserSubscription}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/admin/users.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/admin/users.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::db::models::{User, CreateUser}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tls_fingerprint/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::routes::register_common_routes` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::routes::register_common_routes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use axum::Router; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatDelta` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:9:66 [INFO] [stdout] | [INFO] [stdout] 9 | ChatCompletionsRequest, ChatCompletionsResponse, ChatChoice, ChatDelta, ChatFunction, [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: `AnthropicOutputConfig` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | AnthropicUsage, AnthropicThinking, AnthropicOutputConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatChoice`, `ChatMessage as OpenAIMessage`, and `ChatToolCall` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:10:54 [INFO] [stdout] | [INFO] [stdout] 10 | ChatCompletionsRequest, ChatCompletionsResponse, ChatMessage as OpenAIMessage, ChatToolCall, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | ChatChoice, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChatFunctionCall` and `ChatToolCall` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatToolCall, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatFunctionCall` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | ChatDelta, ChatMessage, ChatTool, ChatFunction, ChatFunctionCall, ChatUsage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/apicompat/agnes_compat.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiStreamChunk` [INFO] [stdout] --> src/gateway/mod.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | ApiRequest, ApiResponse, ApiStreamChunk, OutputFormat, Platform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middleware::api_key_auth::AuthenticatedKey` [INFO] [stdout] --> src/gateway/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::middleware::api_key_auth::AuthenticatedKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ChatCompletionsChunk` [INFO] [stdout] --> src/gateway/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::types::openai::{ChatCompletionsRequest, ChatCompletionsResponse, ChatCompletionsChunk, ResponsesRequest, ResponsesResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeepSeekChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::types::deepseek::{DeepSeekChatRequest, DeepSeekChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AgnesChatResponse` [INFO] [stdout] --> src/gateway/mod.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::types::agnes::{AgnesChatRequest, AgnesChatResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::Stream` [INFO] [stdout] --> src/gateway/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use futures::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `info`, and `warn` [INFO] [stdout] --> src/gateway/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use tracing::{info, warn, error, debug}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/middleware/api_key_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/models/oauth_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::settings::OAuthState` [INFO] [stdout] --> src/db/models/oauth_state.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use super::settings::OAuthState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `oauth_state::*` [INFO] [stdout] --> src/db/models/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use oauth_state::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> src/db/mod.rs:14:45 [INFO] [stdout] | [INFO] [stdout] 14 | use sqlx::postgres::{PgPool, PgPoolOptions, PgConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/db/mod.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/db/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::log::LevelFilter` [INFO] [stdout] --> src/db/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::log::LevelFilter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OAuthProviderConfig` [INFO] [stdout] --> src/oauth/claude.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::oauth::{OAuthCredentials, OAuthProviderConfig, TokenResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/oauth/claude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/oauth/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserSubscription` [INFO] [stdout] --> src/billing/mod.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::models::{User, ApiKey, UserSubscription}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/admin/users.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/admin/users.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::db::models::{User, CreateUser}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/tls_fingerprint/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::routes::register_common_routes` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::routes::register_common_routes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use axum::Router; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> src/db/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> src/db/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use sqlx::{ Pool, Postgres, ConnectOptions }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | Value::String(s) => tc.clone(), // "auto", "any", "none" pass through [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let mut tool_calls = msg.tool_calls.clone().unwrap_or_default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:141:33 [INFO] [stdout] | [INFO] [stdout] 141 | (ApiResponse::Anthropic(resp), OutputFormat::Anthropic) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | (ApiResponse::OpenAIChat(resp), OutputFormat::OpenAIChat) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | (ApiResponse::DeepSeek(resp), OutputFormat::DeepSeek) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | (ApiResponse::Agnes(resp), OutputFormat::Agnes) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/gateway/mod.rs:587:44 [INFO] [stdout] | [INFO] [stdout] 587 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/apicompat/anthropic_to_openai.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | Value::String(s) => tc.clone(), // "auto", "any", "none" pass through [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_store` [INFO] [stdout] --> src/middleware/api_key_auth.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let key_store = match key_store { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/apicompat/openai_to_anthropic.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let mut tool_calls = msg.tool_calls.clone().unwrap_or_default(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:141:33 [INFO] [stdout] | [INFO] [stdout] 141 | (ApiResponse::Anthropic(resp), OutputFormat::Anthropic) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | (ApiResponse::OpenAIChat(resp), OutputFormat::OpenAIChat) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | (ApiResponse::DeepSeek(resp), OutputFormat::DeepSeek) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> src/apicompat/mod.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | (ApiResponse::Agnes(resp), OutputFormat::Agnes) => Ok(response.clone()), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/gateway/mod.rs:587:44 [INFO] [stdout] | [INFO] [stdout] 587 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_store` [INFO] [stdout] --> src/middleware/api_key_auth.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let key_store = match key_store { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_store` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/billing/mod.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | model: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/admin/api_keys.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnthropicStreamEvent` is never constructed [INFO] [stdout] --> src/types/anthropic.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct AnthropicStreamEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_json` is never used [INFO] [stdout] --> src/types/anthropic.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl AnthropicStreamEvent { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 173 | /// Parse a raw SSE "data:" line into an event. [INFO] [stdout] 174 | pub fn from_json(value: &Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionsChunk` is never constructed [INFO] [stdout] --> src/types/openai.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatChunkChoice` is never constructed [INFO] [stdout] --> src/types/openai.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct ChatChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsesStreamEvent` is never constructed [INFO] [stdout] --> src/types/openai.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 347 | pub struct ResponsesStreamEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeepSeekChatChunk` is never constructed [INFO] [stdout] --> src/types/deepseek.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DeepSeekChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeepSeekChunkChoice` is never constructed [INFO] [stdout] --> src/types/deepseek.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct DeepSeekChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEEPSEEK_MODELS` is never used [INFO] [stdout] --> src/types/deepseek.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | pub const DEEPSEEK_MODELS: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_deepseek_model` is never used [INFO] [stdout] --> src/types/deepseek.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn normalize_deepseek_model(model: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AgnesChatChunk` is never constructed [INFO] [stdout] --> src/types/agnes.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct AgnesChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AgnesChunkChoice` is never constructed [INFO] [stdout] --> src/types/agnes.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct AgnesChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ApiRequest { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | OpenAIResponses(crate::types::openai::ResponsesRequest), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiRequest` 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: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ApiResponse { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | OpenAIResponses(crate::types::openai::ResponsesResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiResponse` 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: enum `ApiStreamChunk` is never used [INFO] [stdout] --> src/apicompat/mod.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum ApiStreamChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Gemini` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum Platform { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 77 | Gemini, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Platform` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_stream_event` is never used [INFO] [stdout] --> src/apicompat/mod.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn convert_stream_event( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 199 | pub enum OutputFormat { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 202 | OpenAIResponses, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OutputFormat` 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 `as_str` is never used [INFO] [stdout] --> src/apicompat/mod.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 207 | impl OutputFormat { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 208 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deepseek_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn deepseek_chunk_to_openai_chunk(chunk: &DeepSeekChatChunk) -> ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_deepseek_chunk` is never used [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn openai_chunk_to_deepseek_chunk(chunk: &ChatCompletionsChunk) -> DeepSeekChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_to_agnes` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn openai_to_agnes(req: &ChatCompletionsRequest) -> AgnesChatRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `agnes_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn agnes_chunk_to_openai_chunk(chunk: &AgnesChatChunk) -> ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_agnes_chunk` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn openai_chunk_to_agnes_chunk(chunk: &ChatCompletionsChunk) -> AgnesChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anthropic_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/streaming.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn anthropic_chunk_to_openai_chunk( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_anthropic_chunk` is never used [INFO] [stdout] --> src/apicompat/streaming.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn openai_chunk_to_anthropic_chunk( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub redis: RedisConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | pub jwt: JWTConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | pub gateway: GatewayConfig, [INFO] [stdout] 16 | pub rate_limit: RateLimitConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub cors: CORSConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub security: SecurityConfig, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub billing: BillingConfig, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub log: LogConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub default_settings: DefaultSettings, [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: field `max_request_body_size` is never read [INFO] [stdout] --> src/config/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ServerConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub max_request_body_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_idle_conns` is never read [INFO] [stdout] --> src/config/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub max_idle_conns: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` 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 `connection_url` is never used [INFO] [stdout] --> src/config/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl DatabaseConfig { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 45 | pub fn connection_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host`, `port`, `password`, `db`, and `enable_tls` are never read [INFO] [stdout] --> src/config/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct RedisConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 55 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | pub db: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 59 | pub enable_tls: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisConfig` 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 `connection_url` is never used [INFO] [stdout] --> src/config/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl RedisConfig { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 63 | pub fn connection_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret` and `expire_hours` are never read [INFO] [stdout] --> src/config/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct JWTConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 77 | pub secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 78 | pub expire_hours: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JWTConfig` 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 `max_body_size`, `connection_pool_size`, `max_account_switches`, `stream_keepalive_interval_ms`, and `tls_fingerprint_enabled` are never read [INFO] [stdout] --> src/config/mod.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct GatewayConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 83 | pub response_header_timeout_ms: u64, [INFO] [stdout] 84 | pub max_body_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 85 | pub connection_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 86 | pub max_account_switches: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | pub stream_keepalive_interval_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | pub tls_fingerprint_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayConfig` 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 `requests_per_minute` and `burst_size` are never read [INFO] [stdout] --> src/config/mod.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct RateLimitConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 114 | pub requests_per_minute: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | pub burst_size: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RateLimitConfig` 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 `allowed_origins` and `allow_credentials` are never read [INFO] [stdout] --> src/config/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CORSConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 120 | pub allowed_origins: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 121 | pub allow_credentials: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CORSConfig` 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 `url_allowlist` and `csp_frame_src` are never read [INFO] [stdout] --> src/config/mod.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 126 | pub url_allowlist: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub csp_frame_src: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` 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 `circuit_breaker_enabled`, `circuit_breaker_threshold`, and `circuit_breaker_timeout_secs` are never read [INFO] [stdout] --> src/config/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct BillingConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 132 | pub circuit_breaker_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | pub circuit_breaker_threshold: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 134 | pub circuit_breaker_timeout_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BillingConfig` 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`, `output`, and `format` are never read [INFO] [stdout] --> src/config/mod.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct LogConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 139 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 140 | pub output: String, // "stdout", "file" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 141 | pub format: String, // "json", "console" [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: fields `user_concurrency`, `user_balance`, `api_key_prefix`, and `rate_multiplier` are never read [INFO] [stdout] --> src/config/mod.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DefaultSettings { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 146 | pub user_concurrency: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 147 | pub user_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 148 | pub api_key_prefix: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 149 | pub rate_multiplier: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DefaultSettings` 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 `config` and `key_store` are never read [INFO] [stdout] --> src/gateway/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GatewayState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 33 | pub service: Arc, [INFO] [stdout] 34 | pub config: GatewayConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub key_store: KeyStore, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `model` is never used [INFO] [stdout] --> src/gateway/mod.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl IncomingRequest { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 52 | pub fn model(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `get_user_keys` are never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl KeyStore { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_user_keys(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_api_key` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn extract_api_key(request: &Request) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_ip_restrictions` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn check_ip_restrictions(ip: &str, whitelist: Option<&Vec>, blacklist: Option<&Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ip_matches_pattern` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn ip_matches_pattern(ip: &str, pattern: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MiddlewareState` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct MiddlewareState { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_key_auth` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn api_key_auth( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:262:8 [INFO] [stdout] | [INFO] [stdout] 262 | struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiError` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | struct ApiError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proxy_url`, `tls_fingerprint_enabled`, `concurrency`, `rpm_count`, and `rpm_reset_at` are never read [INFO] [stdout] --> src/proxy/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct UpstreamAccount { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub proxy_url: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | pub tls_fingerprint_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub enabled: bool, [INFO] [stdout] 30 | pub concurrency: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | pub current_concurrency: AtomicU32, [INFO] [stdout] 32 | pub rpm_count: AtomicU32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | pub rpm_reset_at: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamAccount` 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 `ProxyConfig` is never constructed [INFO] [stdout] --> src/proxy/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ProxyConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward_with_failover` is never used [INFO] [stdout] --> src/proxy/mod.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 53 | impl GatewayService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn forward_with_failover( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headers`, `is_streaming`, and `account_id` are never read [INFO] [stdout] --> src/proxy/mod.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct ForwardResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 252 | pub status: reqwest::StatusCode, [INFO] [stdout] 253 | pub headers: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 254 | pub body: Option>, [INFO] [stdout] 255 | pub is_streaming: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 256 | pub account_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoAccounts` and `UpstreamError` are never constructed [INFO] [stdout] --> src/proxy/mod.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub enum ForwardError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 264 | NoAccounts, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | UpstreamError(reqwest::StatusCode, String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForwardError` 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: struct `User` is never constructed [INFO] [stdout] --> src/db/models/user.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUser` is never constructed [INFO] [stdout] --> src/db/models/user.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CreateUser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateUser` is never constructed [INFO] [stdout] --> src/db/models/user.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct UpdateUser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiKey` is never constructed [INFO] [stdout] --> src/db/models/api_key.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ApiKey { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateApiKey` is never constructed [INFO] [stdout] --> src/db/models/api_key.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CreateApiKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Group` is never constructed [INFO] [stdout] --> src/db/models/group.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Group { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/db/models/group.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountGroup` is never constructed [INFO] [stdout] --> src/db/models/group.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct AccountGroup { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionPlan` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SubscriptionPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserSubscription` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserSubscription { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentOrder` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct PaymentOrder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageLog` is never constructed [INFO] [stdout] --> src/db/models/usage.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UsageLog { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageDailySummary` is never constructed [INFO] [stdout] --> src/db/models/usage.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct UsageDailySummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Setting` is never constructed [INFO] [stdout] --> src/db/models/settings.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Setting { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OAuthState` is never constructed [INFO] [stdout] --> src/db/models/settings.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OAuthState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_by_id`, `find_by_email`, `create`, `update`, `list`, and `count` are never used [INFO] [stdout] --> src/db/repositories/user_repo.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl UserRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn find_by_id(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn find_by_email(&self, email: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn create(&self, input: &CreateUser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn update(&self, id: Uuid, input: &UpdateUser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn list(&self, offset: i64, limit: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn count(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/api_key_repo.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ApiKeyRepository { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiKeyRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db/repositories/api_key_repo.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl ApiKeyRepository { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn find_by_key(&self, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn find_by_id(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn find_by_user(&self, user_id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn create(&self, input: &CreateApiKey) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn update_quota_used(&self, id: Uuid, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn increment_rpm(&self, id: Uuid) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageRepository` is never constructed [INFO] [stdout] --> src/db/repositories/usage_repo.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UsageRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `get_user_usage`, and `get_user_total_tokens` are never used [INFO] [stdout] --> src/db/repositories/usage_repo.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl UsageRepository { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn insert(&self, usage: &UsageLog) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn get_user_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn get_user_total_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/billing_repo.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BillingRepository { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 7 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BillingRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db/repositories/billing_repo.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl BillingRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn list_plans(&self, for_sale: Option) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn find_active_subscription(&self, user_id: Uuid, group_id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn create_subscription(&self, sub: &UserSubscription) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn deduct_quota(&self, sub_id: Uuid, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn create_order(&self, order: &PaymentOrder) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn find_order(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn find_order_by_no(&self, order_no: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn update_order_status(&self, id: Uuid, status: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/settings_repo.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SettingsRepository { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 6 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SettingsRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set`, `get_all`, and `delete` are never used [INFO] [stdout] --> src/db/repositories/settings_repo.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl SettingsRepository { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub async fn get(&self, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn set(&self, key: &str, value: &str) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn delete(&self, key: &str) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenResponse` is never constructed [INFO] [stdout] --> src/oauth/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `cache` are never read [INFO] [stdout] --> src/oauth/mod.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct TokenManager { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 51 | client: reqwest::Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | config: std::collections::HashMap, [INFO] [stdout] 53 | cache: moka::future::Cache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_credentials` and `refresh_token` are never used [INFO] [stdout] --> src/oauth/mod.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 56 | impl TokenManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | async fn refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OAuthError` is never used [INFO] [stdout] --> src/oauth/mod.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub enum OAuthError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exchange_code` is never used [INFO] [stdout] --> src/oauth/claude.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn exchange_code( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_CLIENT_ID` is never used [INFO] [stdout] --> src/oauth/openai.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const OPENAI_CLIENT_ID: &str = "app_EMoamEEZ73f0CkXaXp7hrann"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_AUTHORIZE_URL` is never used [INFO] [stdout] --> src/oauth/openai.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const OPENAI_AUTHORIZE_URL: &str = "https://github.com/login/oauth/authorize"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_TOKEN_URL` is never used [INFO] [stdout] --> src/oauth/openai.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const OPENAI_TOKEN_URL: &str = "https://api.openai.com/oauth/token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_authorize_url` is never used [INFO] [stdout] --> src/oauth/openai.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn build_authorize_url(state: &str, redirect_uri: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exchange_code` is never used [INFO] [stdout] --> src/oauth/openai.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn exchange_code( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_token_response` is never used [INFO] [stdout] --> src/oauth/openai.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_token_response(body: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_CLIENT_ID` is never used [INFO] [stdout] --> src/oauth/gemini.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const GEMINI_CLIENT_ID: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_AUTHORIZE_URL` is never used [INFO] [stdout] --> src/oauth/gemini.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GEMINI_AUTHORIZE_URL: &str = "https://accounts.google.com/o/oauth2/v2/auth"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_TOKEN_URL` is never used [INFO] [stdout] --> src/oauth/gemini.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const GEMINI_TOKEN_URL: &str = "https://oauth2.googleapis.com/token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_SCOPES` is never used [INFO] [stdout] --> src/oauth/gemini.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GEMINI_SCOPES: &str = "openid email profile https://www.googleapis.com/auth/cloud-platform"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_gemini_token` is never used [INFO] [stdout] --> src/oauth/gemini.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn parse_gemini_token(account: &Account) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/oauth/gemini.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BillingCheck` is never used [INFO] [stdout] --> src/billing/mod.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum BillingCheck { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BillingService` is never constructed [INFO] [stdout] --> src/billing/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BillingService { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_eligibility`, `deduct`, and `record_usage` are never used [INFO] [stdout] --> src/billing/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BillingService { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 32 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn check_eligibility( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn deduct(&self, _check: &BillingCheck, _cost: f64) -> Result<(), BillingError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn record_usage( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BillingError` is never used [INFO] [stdout] --> src/billing/mod.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum BillingError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_cost` is never used [INFO] [stdout] --> src/billing/mod.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn calculate_cost( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AdminState` is never constructed [INFO] [stdout] --> src/admin/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AdminState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_admin_routes` is never used [INFO] [stdout] --> src/admin/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn register_admin_routes(state: AdminState) -> Router { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/users.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_users` is never used [INFO] [stdout] --> src/admin/users.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | async fn list_users( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user` is never used [INFO] [stdout] --> src/admin/users.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn get_user( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserPayload` is never constructed [INFO] [stdout] --> src/admin/users.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct CreateUserPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user` is never used [INFO] [stdout] --> src/admin/users.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | async fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalanceAdjustment` is never constructed [INFO] [stdout] --> src/admin/users.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct BalanceAdjustment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adjust_balance` is never used [INFO] [stdout] --> src/admin/users.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | async fn adjust_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/api_keys.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_keys` is never used [INFO] [stdout] --> src/admin/api_keys.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn list_keys( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateKeyPayload` is never constructed [INFO] [stdout] --> src/admin/api_keys.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct CreateKeyPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_key` is never used [INFO] [stdout] --> src/admin/api_keys.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | async fn create_key( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_key` is never used [INFO] [stdout] --> src/admin/api_keys.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | async fn delete_key( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/dashboard.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dashboard_stats` is never used [INFO] [stdout] --> src/admin/dashboard.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | async fn dashboard_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_metrics` is never used [INFO] [stdout] --> src/admin/dashboard.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn realtime_metrics() -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/settings.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_settings` is never used [INFO] [stdout] --> src/admin/settings.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn list_settings( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SettingPayload` is never constructed [INFO] [stdout] --> src/admin/settings.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct SettingPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_setting` is never used [INFO] [stdout] --> src/admin/settings.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | async fn update_setting( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ws_upgrade` is never used [INFO] [stdout] --> src/ws/mod.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn handle_ws_upgrade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ws_connection` is never used [INFO] [stdout] --> src/ws/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn handle_ws_connection(ws: WebSocket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_upstream_ws_url` is never used [INFO] [stdout] --> src/ws/mod.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn build_upstream_ws_url(model: &str, token: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `cipher_suites`, `curves`, `signature_algorithms`, and `enable_grease` are never read [INFO] [stdout] --> src/tls_fingerprint/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TlsProfile { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 13 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub cipher_suites: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub curves: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub signature_algorithms: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub alpn_protocols: Vec, [INFO] [stdout] 18 | pub enable_grease: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TlsProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_tls_client` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn create_tls_client(profile: &Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_claude_code_client` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn create_claude_code_client() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modern` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn modern() -> TlsProfile { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/billing/mod.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | model: &str, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/admin/api_keys.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnthropicStreamEvent` is never constructed [INFO] [stdout] --> src/types/anthropic.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct AnthropicStreamEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_json` is never used [INFO] [stdout] --> src/types/anthropic.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl AnthropicStreamEvent { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 173 | /// Parse a raw SSE "data:" line into an event. [INFO] [stdout] 174 | pub fn from_json(value: &Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionsChunk` is never constructed [INFO] [stdout] --> src/types/openai.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatChunkChoice` is never constructed [INFO] [stdout] --> src/types/openai.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct ChatChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponsesStreamEvent` is never constructed [INFO] [stdout] --> src/types/openai.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 347 | pub struct ResponsesStreamEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeepSeekChatChunk` is never constructed [INFO] [stdout] --> src/types/deepseek.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DeepSeekChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeepSeekChunkChoice` is never constructed [INFO] [stdout] --> src/types/deepseek.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct DeepSeekChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEEPSEEK_MODELS` is never used [INFO] [stdout] --> src/types/deepseek.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | pub const DEEPSEEK_MODELS: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_deepseek_model` is never used [INFO] [stdout] --> src/types/deepseek.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn normalize_deepseek_model(model: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AgnesChatChunk` is never constructed [INFO] [stdout] --> src/types/agnes.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct AgnesChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AgnesChunkChoice` is never constructed [INFO] [stdout] --> src/types/agnes.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct AgnesChunkChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ApiRequest { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | OpenAIResponses(crate::types::openai::ResponsesRequest), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiRequest` 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: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ApiResponse { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | OpenAIResponses(crate::types::openai::ResponsesResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiResponse` 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: enum `ApiStreamChunk` is never used [INFO] [stdout] --> src/apicompat/mod.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum ApiStreamChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Gemini` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum Platform { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 77 | Gemini, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Platform` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_stream_event` is never used [INFO] [stdout] --> src/apicompat/mod.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn convert_stream_event( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OpenAIResponses` is never constructed [INFO] [stdout] --> src/apicompat/mod.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 199 | pub enum OutputFormat { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 202 | OpenAIResponses, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OutputFormat` 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 `as_str` is never used [INFO] [stdout] --> src/apicompat/mod.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 207 | impl OutputFormat { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 208 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deepseek_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn deepseek_chunk_to_openai_chunk(chunk: &DeepSeekChatChunk) -> ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_deepseek_chunk` is never used [INFO] [stdout] --> src/apicompat/deepseek_compat.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn openai_chunk_to_deepseek_chunk(chunk: &ChatCompletionsChunk) -> DeepSeekChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_to_agnes` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn openai_to_agnes(req: &ChatCompletionsRequest) -> AgnesChatRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `agnes_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn agnes_chunk_to_openai_chunk(chunk: &AgnesChatChunk) -> ChatCompletionsChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_agnes_chunk` is never used [INFO] [stdout] --> src/apicompat/agnes_compat.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn openai_chunk_to_agnes_chunk(chunk: &ChatCompletionsChunk) -> AgnesChatChunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anthropic_chunk_to_openai_chunk` is never used [INFO] [stdout] --> src/apicompat/streaming.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn anthropic_chunk_to_openai_chunk( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_chunk_to_anthropic_chunk` is never used [INFO] [stdout] --> src/apicompat/streaming.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn openai_chunk_to_anthropic_chunk( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub redis: RedisConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | pub jwt: JWTConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | pub gateway: GatewayConfig, [INFO] [stdout] 16 | pub rate_limit: RateLimitConfig, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub cors: CORSConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub security: SecurityConfig, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub billing: BillingConfig, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub log: LogConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub default_settings: DefaultSettings, [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: field `max_request_body_size` is never read [INFO] [stdout] --> src/config/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct ServerConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub max_request_body_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_idle_conns` is never read [INFO] [stdout] --> src/config/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub max_idle_conns: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` 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 `connection_url` is never used [INFO] [stdout] --> src/config/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl DatabaseConfig { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 45 | pub fn connection_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `host`, `port`, `password`, `db`, and `enable_tls` are never read [INFO] [stdout] --> src/config/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct RedisConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 55 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | pub db: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 59 | pub enable_tls: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RedisConfig` 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 `connection_url` is never used [INFO] [stdout] --> src/config/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl RedisConfig { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 63 | pub fn connection_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret` and `expire_hours` are never read [INFO] [stdout] --> src/config/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct JWTConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 77 | pub secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 78 | pub expire_hours: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JWTConfig` 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 `max_body_size`, `connection_pool_size`, `max_account_switches`, `stream_keepalive_interval_ms`, and `tls_fingerprint_enabled` are never read [INFO] [stdout] --> src/config/mod.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct GatewayConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 83 | pub response_header_timeout_ms: u64, [INFO] [stdout] 84 | pub max_body_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 85 | pub connection_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 86 | pub max_account_switches: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | pub stream_keepalive_interval_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | pub tls_fingerprint_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayConfig` 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 `requests_per_minute` and `burst_size` are never read [INFO] [stdout] --> src/config/mod.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct RateLimitConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 114 | pub requests_per_minute: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | pub burst_size: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RateLimitConfig` 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 `allowed_origins` and `allow_credentials` are never read [INFO] [stdout] --> src/config/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CORSConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 120 | pub allowed_origins: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 121 | pub allow_credentials: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CORSConfig` 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 `url_allowlist` and `csp_frame_src` are never read [INFO] [stdout] --> src/config/mod.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 126 | pub url_allowlist: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 127 | pub csp_frame_src: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` 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 `circuit_breaker_enabled`, `circuit_breaker_threshold`, and `circuit_breaker_timeout_secs` are never read [INFO] [stdout] --> src/config/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct BillingConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 132 | pub circuit_breaker_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | pub circuit_breaker_threshold: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 134 | pub circuit_breaker_timeout_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BillingConfig` 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`, `output`, and `format` are never read [INFO] [stdout] --> src/config/mod.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct LogConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 139 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 140 | pub output: String, // "stdout", "file" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 141 | pub format: String, // "json", "console" [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: fields `user_concurrency`, `user_balance`, `api_key_prefix`, and `rate_multiplier` are never read [INFO] [stdout] --> src/config/mod.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DefaultSettings { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 146 | pub user_concurrency: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 147 | pub user_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 148 | pub api_key_prefix: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 149 | pub rate_multiplier: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DefaultSettings` 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 `config` and `key_store` are never read [INFO] [stdout] --> src/gateway/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GatewayState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 33 | pub service: Arc, [INFO] [stdout] 34 | pub config: GatewayConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub key_store: KeyStore, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `model` is never used [INFO] [stdout] --> src/gateway/mod.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl IncomingRequest { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 52 | pub fn model(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `get_user_keys` are never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl KeyStore { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get(&self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn get_user_keys(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_api_key` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn extract_api_key(request: &Request) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_ip_restrictions` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn check_ip_restrictions(ip: &str, whitelist: Option<&Vec>, blacklist: Option<&Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ip_matches_pattern` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn ip_matches_pattern(ip: &str, pattern: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MiddlewareState` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct MiddlewareState { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_key_auth` is never used [INFO] [stdout] --> src/middleware/api_key_auth.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | pub async fn api_key_auth( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:262:8 [INFO] [stdout] | [INFO] [stdout] 262 | struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiError` is never constructed [INFO] [stdout] --> src/middleware/api_key_auth.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | struct ApiError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proxy_url`, `tls_fingerprint_enabled`, `concurrency`, `rpm_count`, and `rpm_reset_at` are never read [INFO] [stdout] --> src/proxy/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct UpstreamAccount { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub proxy_url: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | pub tls_fingerprint_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub enabled: bool, [INFO] [stdout] 30 | pub concurrency: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 31 | pub current_concurrency: AtomicU32, [INFO] [stdout] 32 | pub rpm_count: AtomicU32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | pub rpm_reset_at: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamAccount` 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 `ProxyConfig` is never constructed [INFO] [stdout] --> src/proxy/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ProxyConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward_with_failover` is never used [INFO] [stdout] --> src/proxy/mod.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 53 | impl GatewayService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn forward_with_failover( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headers`, `is_streaming`, and `account_id` are never read [INFO] [stdout] --> src/proxy/mod.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct ForwardResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 252 | pub status: reqwest::StatusCode, [INFO] [stdout] 253 | pub headers: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 254 | pub body: Option>, [INFO] [stdout] 255 | pub is_streaming: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 256 | pub account_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoAccounts` and `UpstreamError` are never constructed [INFO] [stdout] --> src/proxy/mod.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub enum ForwardError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 264 | NoAccounts, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | UpstreamError(reqwest::StatusCode, String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForwardError` 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: struct `User` is never constructed [INFO] [stdout] --> src/db/models/user.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUser` is never constructed [INFO] [stdout] --> src/db/models/user.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CreateUser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateUser` is never constructed [INFO] [stdout] --> src/db/models/user.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct UpdateUser { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiKey` is never constructed [INFO] [stdout] --> src/db/models/api_key.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ApiKey { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateApiKey` is never constructed [INFO] [stdout] --> src/db/models/api_key.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CreateApiKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Group` is never constructed [INFO] [stdout] --> src/db/models/group.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Group { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/db/models/group.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountGroup` is never constructed [INFO] [stdout] --> src/db/models/group.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct AccountGroup { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionPlan` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SubscriptionPlan { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserSubscription` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UserSubscription { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentOrder` is never constructed [INFO] [stdout] --> src/db/models/subscription.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct PaymentOrder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageLog` is never constructed [INFO] [stdout] --> src/db/models/usage.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UsageLog { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageDailySummary` is never constructed [INFO] [stdout] --> src/db/models/usage.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct UsageDailySummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Setting` is never constructed [INFO] [stdout] --> src/db/models/settings.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Setting { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OAuthState` is never constructed [INFO] [stdout] --> src/db/models/settings.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OAuthState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_by_id`, `find_by_email`, `create`, `update`, `list`, and `count` are never used [INFO] [stdout] --> src/db/repositories/user_repo.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl UserRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn find_by_id(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn find_by_email(&self, email: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn create(&self, input: &CreateUser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn update(&self, id: Uuid, input: &UpdateUser) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn list(&self, offset: i64, limit: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn count(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/api_key_repo.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ApiKeyRepository { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiKeyRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db/repositories/api_key_repo.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl ApiKeyRepository { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn find_by_key(&self, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn find_by_id(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn find_by_user(&self, user_id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn create(&self, input: &CreateApiKey) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn update_quota_used(&self, id: Uuid, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn increment_rpm(&self, id: Uuid) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsageRepository` is never constructed [INFO] [stdout] --> src/db/repositories/usage_repo.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UsageRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `get_user_usage`, and `get_user_total_tokens` are never used [INFO] [stdout] --> src/db/repositories/usage_repo.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl UsageRepository { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn insert(&self, usage: &UsageLog) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn get_user_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn get_user_total_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/billing_repo.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BillingRepository { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 7 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BillingRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db/repositories/billing_repo.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl BillingRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn list_plans(&self, for_sale: Option) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn find_active_subscription(&self, user_id: Uuid, group_id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn create_subscription(&self, sub: &UserSubscription) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn deduct_quota(&self, sub_id: Uuid, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn create_order(&self, order: &PaymentOrder) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn find_order(&self, id: Uuid) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn find_order_by_no(&self, order_no: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn update_order_status(&self, id: Uuid, status: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/db/repositories/settings_repo.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SettingsRepository { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 6 | pool: PgPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SettingsRepository` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set`, `get_all`, and `delete` are never used [INFO] [stdout] --> src/db/repositories/settings_repo.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl SettingsRepository { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub async fn get(&self, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn set(&self, key: &str, value: &str) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn delete(&self, key: &str) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenResponse` is never constructed [INFO] [stdout] --> src/oauth/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `cache` are never read [INFO] [stdout] --> src/oauth/mod.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct TokenManager { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 51 | client: reqwest::Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | config: std::collections::HashMap, [INFO] [stdout] 53 | cache: moka::future::Cache, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_credentials` and `refresh_token` are never used [INFO] [stdout] --> src/oauth/mod.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 56 | impl TokenManager { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn get_credentials( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | async fn refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OAuthError` is never used [INFO] [stdout] --> src/oauth/mod.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub enum OAuthError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_verifier` is never used [INFO] [stdout] --> src/oauth/claude.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn generate_code_verifier() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_challenge` is never used [INFO] [stdout] --> src/oauth/claude.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn generate_code_challenge(verifier: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_authorize_url` is never used [INFO] [stdout] --> src/oauth/claude.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn build_authorize_url(state: &str, code_verifier: &str, redirect_uri: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exchange_code` is never used [INFO] [stdout] --> src/oauth/claude.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn exchange_code( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_CLIENT_ID` is never used [INFO] [stdout] --> src/oauth/openai.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const OPENAI_CLIENT_ID: &str = "app_EMoamEEZ73f0CkXaXp7hrann"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_AUTHORIZE_URL` is never used [INFO] [stdout] --> src/oauth/openai.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const OPENAI_AUTHORIZE_URL: &str = "https://github.com/login/oauth/authorize"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPENAI_TOKEN_URL` is never used [INFO] [stdout] --> src/oauth/openai.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const OPENAI_TOKEN_URL: &str = "https://api.openai.com/oauth/token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_authorize_url` is never used [INFO] [stdout] --> src/oauth/openai.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn build_authorize_url(state: &str, redirect_uri: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exchange_code` is never used [INFO] [stdout] --> src/oauth/openai.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn exchange_code( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_token_response` is never used [INFO] [stdout] --> src/oauth/openai.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn parse_token_response(body: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_CLIENT_ID` is never used [INFO] [stdout] --> src/oauth/gemini.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const GEMINI_CLIENT_ID: &str = ""; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_AUTHORIZE_URL` is never used [INFO] [stdout] --> src/oauth/gemini.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GEMINI_AUTHORIZE_URL: &str = "https://accounts.google.com/o/oauth2/v2/auth"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_TOKEN_URL` is never used [INFO] [stdout] --> src/oauth/gemini.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const GEMINI_TOKEN_URL: &str = "https://oauth2.googleapis.com/token"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_SCOPES` is never used [INFO] [stdout] --> src/oauth/gemini.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GEMINI_SCOPES: &str = "openid email profile https://www.googleapis.com/auth/cloud-platform"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_gemini_token` is never used [INFO] [stdout] --> src/oauth/gemini.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn parse_gemini_token(account: &Account) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/oauth/gemini.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BillingCheck` is never used [INFO] [stdout] --> src/billing/mod.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum BillingCheck { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BillingService` is never constructed [INFO] [stdout] --> src/billing/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BillingService { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check_eligibility`, `deduct`, and `record_usage` are never used [INFO] [stdout] --> src/billing/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl BillingService { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 32 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn check_eligibility( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn deduct(&self, _check: &BillingCheck, _cost: f64) -> Result<(), BillingError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn record_usage( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BillingError` is never used [INFO] [stdout] --> src/billing/mod.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum BillingError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_cost` is never used [INFO] [stdout] --> src/billing/mod.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn calculate_cost( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AdminState` is never constructed [INFO] [stdout] --> src/admin/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AdminState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_admin_routes` is never used [INFO] [stdout] --> src/admin/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn register_admin_routes(state: AdminState) -> Router { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/users.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_users` is never used [INFO] [stdout] --> src/admin/users.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | async fn list_users( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user` is never used [INFO] [stdout] --> src/admin/users.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn get_user( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserPayload` is never constructed [INFO] [stdout] --> src/admin/users.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct CreateUserPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user` is never used [INFO] [stdout] --> src/admin/users.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | async fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalanceAdjustment` is never constructed [INFO] [stdout] --> src/admin/users.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct BalanceAdjustment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adjust_balance` is never used [INFO] [stdout] --> src/admin/users.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | async fn adjust_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/api_keys.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_keys` is never used [INFO] [stdout] --> src/admin/api_keys.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn list_keys( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateKeyPayload` is never constructed [INFO] [stdout] --> src/admin/api_keys.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct CreateKeyPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_key` is never used [INFO] [stdout] --> src/admin/api_keys.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | async fn create_key( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_key` is never used [INFO] [stdout] --> src/admin/api_keys.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | async fn delete_key( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/dashboard.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dashboard_stats` is never used [INFO] [stdout] --> src/admin/dashboard.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | async fn dashboard_stats( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_metrics` is never used [INFO] [stdout] --> src/admin/dashboard.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn realtime_metrics() -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/admin/settings.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn routes() -> Router { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_settings` is never used [INFO] [stdout] --> src/admin/settings.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn list_settings( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SettingPayload` is never constructed [INFO] [stdout] --> src/admin/settings.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct SettingPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_setting` is never used [INFO] [stdout] --> src/admin/settings.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | async fn update_setting( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ws_upgrade` is never used [INFO] [stdout] --> src/ws/mod.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn handle_ws_upgrade( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ws_connection` is never used [INFO] [stdout] --> src/ws/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn handle_ws_connection(ws: WebSocket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_upstream_ws_url` is never used [INFO] [stdout] --> src/ws/mod.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn build_upstream_ws_url(model: &str, token: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TlsProfile` is never constructed [INFO] [stdout] --> src/tls_fingerprint/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TlsProfile { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_client_config` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn build_client_config(profile: &TlsProfile) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_tls_client` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn create_tls_client(profile: &Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_claude_code_client` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn create_claude_code_client() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `claude_code_cli` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn claude_code_cli() -> TlsProfile { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `modern` is never used [INFO] [stdout] --> src/tls_fingerprint/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn modern() -> TlsProfile { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `async-stream` [INFO] [stderr] --> Cargo.toml:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | async-stream = "0.3" [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `async-stream` [INFO] [stderr] warning: unused dependency `brotli` [INFO] [stderr] --> Cargo.toml:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | brotli = "7" [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `brotli` [INFO] [stderr] warning: unused dependency `jsonwebtoken` [INFO] [stderr] --> Cargo.toml:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | jsonwebtoken = "9" [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `jsonwebtoken` [INFO] [stderr] warning: unused dependency `mockall` [INFO] [stderr] --> Cargo.toml:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | mockall = "0.13" [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `mockall` [INFO] [stderr] warning: unused dependency `pin-project` [INFO] [stderr] --> Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | pin-project = "1" [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `pin-project` [INFO] [stderr] warning: unused dependency `redis` [INFO] [stderr] --> Cargo.toml:56:15 [INFO] [stderr] | [INFO] [stderr] 56 | [dependencies.redis] [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `redis` [INFO] [stderr] warning: unused dependency `regex` [INFO] [stderr] --> Cargo.toml:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | regex = "1" [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `regex` [INFO] [stderr] warning: unused dependency `rust_decimal` [INFO] [stderr] --> Cargo.toml:64:15 [INFO] [stderr] | [INFO] [stderr] 64 | [dependencies.rust_decimal] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `rust_decimal` [INFO] [stderr] warning: unused dependency `schemars` [INFO] [stderr] --> Cargo.toml:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | schemars = "0.8" [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `schemars` [INFO] [stderr] warning: unused dependency `totp-rs` [INFO] [stderr] --> Cargo.toml:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | [dependencies.totp-rs] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `totp-rs` [INFO] [stderr] warning: `kukuapi-rs` (manifest) generated 10 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 11s [INFO] running `Command { std: "docker" "inspect" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa", kill_on_drop: false }` [INFO] [stdout] 7cd53b0c39910cddc3c2f5dd5a00577405eb0a2c8ba5b9ba60bac5c3806c45fa