[INFO] cloning repository https://github.com/a-rookie-of-C-language/AI_Gateway
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a-rookie-of-C-language/AI_Gateway" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-rookie-of-C-language%2FAI_Gateway", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-rookie-of-C-language%2FAI_Gateway'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3fd9662636e2f5dc0f6789c1834638cc8fdee011
[INFO] checking a-rookie-of-C-language/AI_Gateway against try#b28cc4eb48a6415b914e8ad0308be255ff8d73ed for pr-156508
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-rookie-of-C-language%2FAI_Gateway" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/a-rookie-of-C-language/AI_Gateway
[INFO] finished tweaking git repo https://github.com/a-rookie-of-C-language/AI_Gateway
[INFO] tweaked toml for git repo https://github.com/a-rookie-of-C-language/AI_Gateway written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/a-rookie-of-C-language/AI_Gateway on toolchain b28cc4eb48a6415b914e8ad0308be255ff8d73ed
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/a-rookie-of-C-language/AI_Gateway 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" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9a7de78b56c25ce8235b033ed384c5884e58235573d89dd93a46402d5b543bdc
[INFO] running `Command { std: "docker" "start" "-a" "9a7de78b56c25ce8235b033ed384c5884e58235573d89dd93a46402d5b543bdc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9a7de78b56c25ce8235b033ed384c5884e58235573d89dd93a46402d5b543bdc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9a7de78b56c25ce8235b033ed384c5884e58235573d89dd93a46402d5b543bdc", kill_on_drop: false }`
[INFO] [stdout] 9a7de78b56c25ce8235b033ed384c5884e58235573d89dd93a46402d5b543bdc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b28cc4eb48a6415b914e8ad0308be255ff8d73ed" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 11eff82203fe760587524006814cf371e127b8be39d9ec9df40b2901b975f02e
[INFO] running `Command { std: "docker" "start" "-a" "11eff82203fe760587524006814cf371e127b8be39d9ec9df40b2901b975f02e", kill_on_drop: false }`
[INFO] [stderr]    Compiling cc v1.2.61
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]     Checking slab v0.4.12
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]    Compiling typenum v1.20.0
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling writeable v0.6.3
[INFO] [stderr]    Compiling zerofrom v0.1.7
[INFO] [stderr]    Compiling litemap v0.8.2
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling yoke v0.8.2
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling tinyvec v1.11.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]     Checking tokio v1.52.1
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling zmij v1.0.21
[INFO] [stderr]    Compiling crc-catalog v2.5.0
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling hashbrown v0.17.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]     Checking rand_core v0.10.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling bitflags v2.11.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling indexmap v2.14.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling linux-raw-sys v0.12.1
[INFO] [stderr]    Compiling rustls v0.23.40
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]     Checking minimal-lexical v0.2.1
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]    Compiling unicode-segmentation v1.13.2
[INFO] [stderr]     Checking cpufeatures v0.3.0
[INFO] [stderr]    Compiling home v0.5.12
[INFO] [stderr]    Compiling fastrand v2.4.1
[INFO] [stderr]     Checking chacha20 v0.10.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking hashlink v0.8.4
[INFO] [stderr]     Checking regex-syntax v0.8.10
[INFO] [stderr]     Checking hyper v1.9.0
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]    Compiling tempfile v3.27.0
[INFO] [stderr]     Checking tokio-stream v0.1.18
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]     Checking rand v0.10.1
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking base64ct v1.8.3
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]     Checking iri-string v0.7.12
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking password-hash v0.5.0
[INFO] [stderr]     Checking tokio-retry v0.3.1
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking combine v4.6.7
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking sha1_smol v1.0.1
[INFO] [stderr]     Checking argon2 v0.5.3
[INFO] [stderr]     Checking uuid v1.23.1
[INFO] [stderr]     Checking rustls-webpki v0.103.13
[INFO] [stderr]     Checking tower-http v0.6.8
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking sqlx-core v0.7.4
[INFO] [stderr]     Checking redis v0.26.1
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking sqlx-postgres v0.7.4
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]     Checking sqlx v0.7.4
[INFO] [stderr]     Checking aigateway v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `RedisConnection`
[INFO] [stdout]  --> src/infrastructure/dao/ratelimit/RedisRateLimitDao.rs:5:53
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::infrastructure::redis::pool::{RedisPool, RedisConnection};
[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: `redis::AsyncCommands`
[INFO] [stdout]  --> src/infrastructure/redis/pool.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use redis::AsyncCommands;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shared::response`
[INFO] [stdout]   --> src/interfaces/http/chat_stream.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::shared::response;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RedisConnection`
[INFO] [stdout]  --> src/infrastructure/dao/ratelimit/RedisRateLimitDao.rs:5:53
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::infrastructure::redis::pool::{RedisPool, RedisConnection};
[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: `redis::AsyncCommands`
[INFO] [stdout]  --> src/infrastructure/redis/pool.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use redis::AsyncCommands;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::shared::response`
[INFO] [stdout]   --> src/interfaces/http/chat_stream.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::shared::response;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::domain::core::gateway_orchestration::ChatGateway::ChatGateway`
[INFO] [stdout]   --> src/infrastructure/http/AppState.rs:89:13
[INFO] [stdout]    |
[INFO] [stdout] 89 |         use crate::domain::core::gateway_orchestration::ChatGateway::ChatGateway;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::domain::core::gateway_orchestration::ChatGateway::ChatGateway`
[INFO] [stdout]   --> src/infrastructure/http/AppState.rs:89:13
[INFO] [stdout]    |
[INFO] [stdout] 89 |         use crate::domain::core::gateway_orchestration::ChatGateway::ChatGateway;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `app_name` is never read
[INFO] [stdout]   --> src/config.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct Config {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 39 |     pub app_name: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_PROVIDER_RETRIES` is never used
[INFO] [stdout]   --> src/constants.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const MAX_PROVIDER_RETRIES: u32 = 3;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_MODEL_PARSE_BODY_BYTES` is never used
[INFO] [stdout]   --> src/constants.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub const MAX_MODEL_PARSE_BODY_BYTES: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REDIS_POOL_MAX_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:37:11
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub const REDIS_POOL_MAX_SIZE: usize = 15;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_policy` is never used
[INFO] [stdout]  --> src/domain/core/quota_billing/QuotaPolicyDao.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait QuotaPolicyDao: Send + Sync {
[INFO] [stdout]   |           -------------- method in this trait
[INFO] [stdout] 7 |     async fn get_policy(&self, tenant_id: &str, app_id: &str) -> anyhow::Result<Option<QuotaPolicy>>;
[INFO] [stdout] 8 |     async fn set_policy(&self, tenant_id: &str, app_id: &str, policy: &QuotaPolicy) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `aggregate`, `list`, and `purge_before` are never used
[INFO] [stdout]   --> src/domain/core/quota_billing/TokenUsageDao.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub trait TokenUsageDao: Send + Sync {
[INFO] [stdout]    |           ------------- methods in this trait
[INFO] [stdout]  9 |     async fn insert(&self, usage: &TokenUsage) -> anyhow::Result<()>;
[INFO] [stdout] 10 |     async fn aggregate(&self, query: &UsageQuery) -> anyhow::Result<Vec<UsageSummary>>;
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 11 |     async fn list(&self, query: &UsageQuery) -> anyhow::Result<Vec<TokenUsage>>;
[INFO] [stdout]    |              ^^^^
[INFO] [stdout] 12 |     async fn purge_before(&self, before: chrono::DateTime<chrono::Utc>) -> anyhow::Result<u64>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageQuery` is never constructed
[INFO] [stdout]  --> src/domain/core/quota_billing/UsageQuery.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct UsageQuery {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageSummary` is never constructed
[INFO] [stdout]  --> src/domain/core/quota_billing/UsageSummary.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct UsageSummary {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `GroupByDimension` is never used
[INFO] [stdout]  --> src/domain/core/quota_billing/GroupByDimension.rs:2:10
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum GroupByDimension {
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `insert` is never used
[INFO] [stdout]  --> src/domain/core/tenant_access_control/TenantDao.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait TenantDao: Send + Sync {
[INFO] [stdout]   |           --------- method in this trait
[INFO] [stdout] 7 |     async fn find_by_api_key_id(&self, api_key_id: &str) -> anyhow::Result<Option<Tenant>>;
[INFO] [stdout] 8 |     async fn insert(&self, tenant: &Tenant) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `insert` is never used
[INFO] [stdout]  --> src/domain/supporting/observability_audit/AuditLogDao.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait AuditLogDao: Send + Sync {
[INFO] [stdout]   |           ----------- method in this trait
[INFO] [stdout] 7 |     async fn insert(&self, log: &AuditLog) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `span_id` is never read
[INFO] [stdout]  --> src/domain/supporting/observability_audit/TraceRecord.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct TraceRecord {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 8 |     pub span_id: Option<String>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `TraceRecord` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuditLog` is never constructed
[INFO] [stdout]   --> src/domain/supporting/observability_audit/TraceRecord.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct AuditLog {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `build_where_clause` is never used
[INFO] [stdout]   --> src/infrastructure/dao/billing/PostgresTokenUsageDao.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl PostgresTokenUsageDao {
[INFO] [stdout]    | -------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     fn build_where_clause(query: &UsageQuery) -> (String, usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageSummaryRow` is never constructed
[INFO] [stdout]    --> src/infrastructure/dao/billing/PostgresTokenUsageDao.rs:208:8
[INFO] [stdout]     |
[INFO] [stdout] 208 | struct UsageSummaryRow {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pool` is never read
[INFO] [stdout]  --> src/infrastructure/dao/audit/PostgresAuditLogDao.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct PostgresAuditLogDao {
[INFO] [stdout]   |            ------------------- field in this struct
[INFO] [stdout] 8 |     pool: PgPool,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `audit_log_dao` is never read
[INFO] [stdout]   --> src/infrastructure/http/AppState.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct AppState {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub audit_log_dao: Option<Arc<dyn AuditLogDao>>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MockChatGateway` is never constructed
[INFO] [stdout]   --> src/infrastructure/provider/MockChatGateway.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct MockChatGateway;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/interfaces/http/middleware/rate_limit.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct ExtractedModel(pub String);
[INFO] [stdout]    |            -------------- ^^^^^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            field in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing this field
[INFO] [stdout]    = note: `ExtractedModel` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `into_inner` is never used
[INFO] [stdout]   --> src/shared/json_extractor.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl<T> UnifiedJson<T> {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] 14 |     pub fn into_inner(self) -> T {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `app_name` is never read
[INFO] [stdout]   --> src/config.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct Config {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 39 |     pub app_name: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_PROVIDER_RETRIES` is never used
[INFO] [stdout]   --> src/constants.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const MAX_PROVIDER_RETRIES: u32 = 3;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_MODEL_PARSE_BODY_BYTES` is never used
[INFO] [stdout]   --> src/constants.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub const MAX_MODEL_PARSE_BODY_BYTES: usize = 1024 * 1024; // 1MB
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REDIS_POOL_MAX_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:37:11
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub const REDIS_POOL_MAX_SIZE: usize = 15;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_policy` is never used
[INFO] [stdout]  --> src/domain/core/quota_billing/QuotaPolicyDao.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait QuotaPolicyDao: Send + Sync {
[INFO] [stdout]   |           -------------- method in this trait
[INFO] [stdout] 7 |     async fn get_policy(&self, tenant_id: &str, app_id: &str) -> anyhow::Result<Option<QuotaPolicy>>;
[INFO] [stdout] 8 |     async fn set_policy(&self, tenant_id: &str, app_id: &str, policy: &QuotaPolicy) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `aggregate`, `list`, and `purge_before` are never used
[INFO] [stdout]   --> src/domain/core/quota_billing/TokenUsageDao.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub trait TokenUsageDao: Send + Sync {
[INFO] [stdout]    |           ------------- methods in this trait
[INFO] [stdout]  9 |     async fn insert(&self, usage: &TokenUsage) -> anyhow::Result<()>;
[INFO] [stdout] 10 |     async fn aggregate(&self, query: &UsageQuery) -> anyhow::Result<Vec<UsageSummary>>;
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 11 |     async fn list(&self, query: &UsageQuery) -> anyhow::Result<Vec<TokenUsage>>;
[INFO] [stdout]    |              ^^^^
[INFO] [stdout] 12 |     async fn purge_before(&self, before: chrono::DateTime<chrono::Utc>) -> anyhow::Result<u64>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageQuery` is never constructed
[INFO] [stdout]  --> src/domain/core/quota_billing/UsageQuery.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct UsageQuery {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageSummary` is never constructed
[INFO] [stdout]  --> src/domain/core/quota_billing/UsageSummary.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct UsageSummary {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `GroupByDimension` is never used
[INFO] [stdout]  --> src/domain/core/quota_billing/GroupByDimension.rs:2:10
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum GroupByDimension {
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `insert` is never used
[INFO] [stdout]  --> src/domain/core/tenant_access_control/TenantDao.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait TenantDao: Send + Sync {
[INFO] [stdout]   |           --------- method in this trait
[INFO] [stdout] 7 |     async fn find_by_api_key_id(&self, api_key_id: &str) -> anyhow::Result<Option<Tenant>>;
[INFO] [stdout] 8 |     async fn insert(&self, tenant: &Tenant) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `insert` is never used
[INFO] [stdout]  --> src/domain/supporting/observability_audit/AuditLogDao.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait AuditLogDao: Send + Sync {
[INFO] [stdout]   |           ----------- method in this trait
[INFO] [stdout] 7 |     async fn insert(&self, log: &AuditLog) -> anyhow::Result<()>;
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `span_id` is never read
[INFO] [stdout]  --> src/domain/supporting/observability_audit/TraceRecord.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct TraceRecord {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 8 |     pub span_id: Option<String>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `TraceRecord` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuditLog` is never constructed
[INFO] [stdout]   --> src/domain/supporting/observability_audit/TraceRecord.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct AuditLog {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `build_where_clause` is never used
[INFO] [stdout]   --> src/infrastructure/dao/billing/PostgresTokenUsageDao.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl PostgresTokenUsageDao {
[INFO] [stdout]    | -------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     fn build_where_clause(query: &UsageQuery) -> (String, usize) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UsageSummaryRow` is never constructed
[INFO] [stdout]    --> src/infrastructure/dao/billing/PostgresTokenUsageDao.rs:208:8
[INFO] [stdout]     |
[INFO] [stdout] 208 | struct UsageSummaryRow {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pool` is never read
[INFO] [stdout]  --> src/infrastructure/dao/audit/PostgresAuditLogDao.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct PostgresAuditLogDao {
[INFO] [stdout]   |            ------------------- field in this struct
[INFO] [stdout] 8 |     pool: PgPool,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `audit_log_dao` is never read
[INFO] [stdout]   --> src/infrastructure/http/AppState.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct AppState {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub audit_log_dao: Option<Arc<dyn AuditLogDao>>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MockChatGateway` is never constructed
[INFO] [stdout]   --> src/infrastructure/provider/MockChatGateway.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct MockChatGateway;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/interfaces/http/middleware/rate_limit.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct ExtractedModel(pub String);
[INFO] [stdout]    |            -------------- ^^^^^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            field in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing this field
[INFO] [stdout]    = note: `ExtractedModel` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `into_inner` is never used
[INFO] [stdout]   --> src/shared/json_extractor.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl<T> UnifiedJson<T> {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] 14 |     pub fn into_inner(self) -> T {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "11eff82203fe760587524006814cf371e127b8be39d9ec9df40b2901b975f02e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "11eff82203fe760587524006814cf371e127b8be39d9ec9df40b2901b975f02e", kill_on_drop: false }`
[INFO] [stdout] 11eff82203fe760587524006814cf371e127b8be39d9ec9df40b2901b975f02e
