[INFO] fetching crate noveum-ai-gateway 1.0.1... [INFO] building noveum-ai-gateway-1.0.1 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate noveum-ai-gateway 1.0.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate noveum-ai-gateway 1.0.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate noveum-ai-gateway 1.0.1 [INFO] tweaked toml for crates.io crate noveum-ai-gateway 1.0.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate noveum-ai-gateway 1.0.1 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate noveum-ai-gateway 1.0.1 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.39 [INFO] [stderr] Downloaded thread_local v1.1.8 [INFO] [stderr] Downloaded tokio-retry v0.3.0 [INFO] [stderr] Downloaded tracing-serde v0.2.0 [INFO] [stderr] Downloaded uuid v1.15.1 [INFO] [stderr] Downloaded test-log-macros v0.2.17 [INFO] [stderr] Downloaded sdd v3.0.7 [INFO] [stderr] Downloaded tempfile v3.18.0 [INFO] [stderr] Downloaded test-log v0.2.17 [INFO] [stderr] Downloaded windows-link v0.1.0 [INFO] [stderr] Downloaded uuid v0.8.2 [INFO] [stderr] Downloaded async-trait v0.1.87 [INFO] [stderr] Downloaded outref v0.5.2 [INFO] [stderr] Downloaded litemap v0.7.5 [INFO] [stderr] Downloaded time-macros v0.2.20 [INFO] [stderr] Downloaded aws-credential-types v1.2.1 [INFO] [stderr] Downloaded async-compression v0.4.20 [INFO] [stderr] Downloaded rustix v1.0.0 [INFO] [stderr] Downloaded scc v2.3.3 [INFO] [stderr] Downloaded aws-smithy-http v0.60.12 [INFO] [stderr] Downloaded aws-smithy-async v1.2.4 [INFO] [stderr] Downloaded aws-sigv4 v1.2.9 [INFO] [stderr] Downloaded openssl-sys v0.9.106 [INFO] [stderr] Downloaded dotenv v0.15.0 [INFO] [stderr] Downloaded opentelemetry v0.27.1 [INFO] [stderr] Downloaded elasticsearch v8.16.0-alpha.1 [INFO] [stderr] Downloaded nom v5.1.3 [INFO] [stderr] Downloaded ring v0.17.13 [INFO] [stderr] Downloaded lexical-core v0.7.6 [INFO] [stderr] Downloaded aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Downloaded aws-smithy-types v1.2.13 [INFO] [stderr] Downloaded axum v0.7.9 [INFO] [stderr] Downloaded chrono v0.4.40 [INFO] [stderr] Downloaded metrics v0.24.1 [INFO] [stderr] Downloaded env_logger v0.11.6 [INFO] [stderr] Downloaded openssl v0.10.71 [INFO] [stderr] Downloaded h2 v0.4.8 [INFO] [stderr] Downloaded tinyvec v1.9.0 [INFO] [stderr] Downloaded portable-atomic v1.11.0 [INFO] [stderr] Downloaded tower-http v0.6.2 [INFO] [stderr] Downloaded time v0.3.39 [INFO] [stderr] Downloaded syn v2.0.99 [INFO] [stderr] Downloaded serial_test_derive v3.2.0 [INFO] [stderr] Downloaded serial_test v3.2.0 [INFO] [stderr] Downloaded vsimd v0.8.0 [INFO] [stderr] Downloaded base64-simd v0.8.0 [INFO] [stderr] Downloaded bytes-utils v0.1.4 [INFO] [stderr] Downloaded axum-core v0.4.5 [INFO] [stderr] Downloaded matchit v0.7.3 [INFO] [stderr] Downloaded colored v2.2.0 [INFO] [stderr] Downloaded dyn-clone v1.0.19 [INFO] [stderr] Downloaded deranged v0.3.11 [INFO] [stderr] Downloaded time-core v0.1.3 [INFO] [stderr] Downloaded aws_event_stream_parser v0.1.2 [INFO] [stderr] Downloaded linux-raw-sys v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d7c656c1a8c2e734b76e5d69aa9276ccd7ff0690d4e4361b6713c43a4f7de37f [INFO] running `Command { std: "docker" "start" "-a" "d7c656c1a8c2e734b76e5d69aa9276ccd7ff0690d4e4361b6713c43a4f7de37f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7c656c1a8c2e734b76e5d69aa9276ccd7ff0690d4e4361b6713c43a4f7de37f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7c656c1a8c2e734b76e5d69aa9276ccd7ff0690d4e4361b6713c43a4f7de37f", kill_on_drop: false }` [INFO] [stdout] d7c656c1a8c2e734b76e5d69aa9276ccd7ff0690d4e4361b6713c43a4f7de37f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e936293bacbc4361092d191f9a208e2a715333c6f069861e60cb25efeebbb27b [INFO] running `Command { std: "docker" "start" "-a" "e936293bacbc4361092d191f9a208e2a715333c6f069861e60cb25efeebbb27b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v7.2.3 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling rustls v0.23.23 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling time-core v0.1.3 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling brotli-decompressor v4.0.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling build_const v0.2.2 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling webpki-roots v0.26.8 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling time v0.3.39 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling elasticsearch v8.16.0-alpha.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling dyn-clone v1.0.19 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling ring v0.17.13 [INFO] [stderr] Compiling zstd-sys v2.0.14+zstd.1.5.7 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling metrics v0.24.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling opentelemetry v0.27.1 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling uuid v1.15.1 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling aws-smithy-types v1.2.13 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling async-compression v0.4.20 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling aws_event_stream_parser v0.1.2 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling aws-smithy-http v0.60.12 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling aws-sigv4 v1.2.9 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling noveum-ai-gateway v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Extension` and `extract::connect_info::ConnectInfo` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | extract::connect_info::ConnectInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body` and `Request` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Request}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::SocketAddr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeaderValue` [INFO] [stdout] --> src/providers/bedrock.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | http::{HeaderMap, HeaderValue, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/bedrock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/providers/fireworks.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | body::{Body, Bytes}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/fireworks.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | http::transport::{Transport, TransportBuilder, SingleNodeConnectionPool}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid` [INFO] [stdout] --> src/telemetry/middleware.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use uuid; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `context::RequestContext`, `health_check`, and `proxy_request` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | context::RequestContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | handlers::{health_check, proxy_request}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | mut request: Request, [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: `provider` [INFO] [stdout] --> src/proxy/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | provider: &Box, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/proxy/mod.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let request_id = request_id.to_string(); // Clone for use in async block [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/telemetry/middleware.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | mut req: Request, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/providers/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | method: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/providers/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | url: &str, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | body: &[u8], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/providers/mod.rs:47:36 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:47:57 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/providers/bedrock.rs:390:30 [INFO] [stdout] | [INFO] [stdout] 390 | fn transform_path(&self, path: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_keepalive_interval` and `tcp_nodelay` are never read [INFO] [stdout] --> src/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub tcp_keepalive_interval: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub tcp_nodelay: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cloudwatch_enabled` is never read [INFO] [stdout] --> src/config.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct TelemetryConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | pub cloudwatch_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TelemetryConfig` 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 `RequestContext` is never constructed [INFO] [stdout] --> src/context.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RequestContext { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl RequestContext { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(model: String, request_body: Value, headers: HeaderMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidMethod`, `UnsupportedModel`, and `RequestError` are never constructed [INFO] [stdout] --> src/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | InvalidMethod, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | UnsupportedModel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | RequestError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name`, `sign_request`, and `get_signing_host` are never used [INFO] [stdout] --> src/providers/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Provider: Send + Sync { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | async fn sign_request( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn get_signing_host(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_FALLBACK_MODEL` is never used [INFO] [stdout] --> src/providers/bedrock.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_FALLBACK_MODEL: &str = "mistral.mistral-7b-instruct-v0:2"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_model_name` is never used [INFO] [stdout] --> src/providers/bedrock.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl BedrockProvider { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_model_name(&self, path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/telemetry/plugins/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TelemetryPlugin: Send + Sync { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 7 | async fn export(&self, metrics: &RequestMetrics) -> Result<(), Box>; [INFO] [stdout] 8 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `estimate_tokens_from_text` and `create_partial_metrics` are never used [INFO] [stdout] --> src/telemetry/provider_metrics.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ProviderMetrics { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn estimate_tokens_from_text(text: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn create_partial_metrics(model: String, accumulated_text: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `Command { std: "docker" "inspect" "e936293bacbc4361092d191f9a208e2a715333c6f069861e60cb25efeebbb27b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e936293bacbc4361092d191f9a208e2a715333c6f069861e60cb25efeebbb27b", kill_on_drop: false }` [INFO] [stdout] e936293bacbc4361092d191f9a208e2a715333c6f069861e60cb25efeebbb27b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2ad8a16a4afb4471813f9cda994b9339ae522d231f65bcc30ee93523a14ee0d [INFO] running `Command { std: "docker" "start" "-a" "e2ad8a16a4afb4471813f9cda994b9339ae522d231f65bcc30ee93523a14ee0d", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling sdd v3.0.7 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Compiling test-log-macros v0.2.17 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling scc v2.3.3 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling test-log v0.2.17 [INFO] [stderr] Compiling serial_test v3.2.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.4 [INFO] [stderr] Compiling async-compression v0.4.20 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling aws_event_stream_parser v0.1.2 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling aws-smithy-http v0.60.12 [INFO] [stderr] Compiling aws-sigv4 v1.2.9 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling elasticsearch v8.16.0-alpha.1 [INFO] [stderr] Compiling noveum-ai-gateway v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/openai_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/openai_test.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | header::{HeaderMap, HeaderValue}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/openai_test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/openai_test.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/anthropic_test.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, header::{HeaderMap, HeaderValue}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/anthropic_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/anthropic_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/anthropic_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/groq_test.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, header::{HeaderMap, HeaderValue}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/groq_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/groq_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/groq_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/fireworks_test.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, header::{HeaderMap, HeaderValue}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/fireworks_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/fireworks_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/fireworks_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/together_test.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, header::{HeaderMap, HeaderValue}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/together_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/together_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/together_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap` and `HeaderValue` [INFO] [stdout] --> tests/integration/bedrock_test.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, header::{HeaderMap, HeaderValue}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/integration/bedrock_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> tests/integration/bedrock_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> tests/integration/bedrock_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `init_test_env` [INFO] [stdout] --> tests/integration/bedrock_test.rs:8:85 [INFO] [stdout] | [INFO] [stdout] 8 | use super::common::{ProviderTestConfig, run_non_streaming_test, run_streaming_test, init_test_env}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> tests/integration/common.rs:110:58 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn setup_test_headers(provider: &str, api_key: &str, request_id: &str) -> HeaderMap { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/openai_test.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn generate_request_id() -> 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: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/openai_test.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/anthropic_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn generate_request_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/anthropic_test.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/groq_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn generate_request_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/groq_test.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/fireworks_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn generate_request_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/fireworks_test.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/together_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn generate_request_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/together_test.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_id` is never used [INFO] [stdout] --> tests/integration/bedrock_test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn generate_request_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_elasticsearch` is never used [INFO] [stdout] --> tests/integration/bedrock_test.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn search_elasticsearch(request_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `extract::connect_info::ConnectInfo` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | extract::connect_info::ConnectInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body` and `Request` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Request}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::SocketAddr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeaderValue` [INFO] [stdout] --> src/providers/bedrock.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | http::{HeaderMap, HeaderValue, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/bedrock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/providers/fireworks.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | body::{Body, Bytes}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/fireworks.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | http::transport::{Transport, TransportBuilder, SingleNodeConnectionPool}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid` [INFO] [stdout] --> src/telemetry/middleware.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use uuid; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `context::RequestContext`, `health_check`, and `proxy_request` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | context::RequestContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | handlers::{health_check, proxy_request}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `extract::connect_info::ConnectInfo` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | extract::connect_info::ConnectInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Extension, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body` and `Request` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper::{Body, Request}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::SocketAddr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HeaderValue` [INFO] [stdout] --> src/providers/bedrock.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | http::{HeaderMap, HeaderValue, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/bedrock.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/providers/fireworks.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | body::{Body, Bytes}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/providers/fireworks.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transport` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | http::transport::{Transport, TransportBuilder, SingleNodeConnectionPool}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid` [INFO] [stdout] --> src/telemetry/middleware.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use uuid; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `context::RequestContext`, `health_check`, and `proxy_request` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | context::RequestContext, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | handlers::{health_check, proxy_request}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | mut request: Request, [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: `provider` [INFO] [stdout] --> src/proxy/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | provider: &Box, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/proxy/mod.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let request_id = request_id.to_string(); // Clone for use in async block [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/telemetry/middleware.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | mut req: Request, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | mut request: Request, [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: `provider` [INFO] [stdout] --> src/proxy/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | provider: &Box, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/proxy/mod.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> src/telemetry/plugins/elasticsearch.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let request_id = request_id.to_string(); // Clone for use in async block [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/telemetry/middleware.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | mut req: Request, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/providers/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | method: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/providers/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | url: &str, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | body: &[u8], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/providers/mod.rs:47:36 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:47:57 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/providers/bedrock.rs:390:30 [INFO] [stdout] | [INFO] [stdout] 390 | fn transform_path(&self, path: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/providers/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | method: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> src/providers/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | url: &str, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | body: &[u8], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/providers/mod.rs:47:36 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/providers/mod.rs:47:57 [INFO] [stdout] | [INFO] [stdout] 47 | async fn before_request(&self, headers: &HeaderMap, body: &Bytes) -> Result<(), AppError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/providers/bedrock.rs:390:30 [INFO] [stdout] | [INFO] [stdout] 390 | fn transform_path(&self, path: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_keepalive_interval` and `tcp_nodelay` are never read [INFO] [stdout] --> src/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub tcp_keepalive_interval: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub tcp_nodelay: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cloudwatch_enabled` is never read [INFO] [stdout] --> src/config.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct TelemetryConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | pub cloudwatch_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TelemetryConfig` 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 `RequestContext` is never constructed [INFO] [stdout] --> src/context.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RequestContext { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl RequestContext { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(model: String, request_body: Value, headers: HeaderMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidMethod`, `UnsupportedModel`, and `RequestError` are never constructed [INFO] [stdout] --> src/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | InvalidMethod, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | UnsupportedModel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | RequestError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name`, `sign_request`, and `get_signing_host` are never used [INFO] [stdout] --> src/providers/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Provider: Send + Sync { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | async fn sign_request( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn get_signing_host(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_FALLBACK_MODEL` is never used [INFO] [stdout] --> src/providers/bedrock.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_FALLBACK_MODEL: &str = "mistral.mistral-7b-instruct-v0:2"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_model_name` is never used [INFO] [stdout] --> src/providers/bedrock.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl BedrockProvider { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_model_name(&self, path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/telemetry/plugins/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TelemetryPlugin: Send + Sync { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 7 | async fn export(&self, metrics: &RequestMetrics) -> Result<(), Box>; [INFO] [stdout] 8 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `estimate_tokens_from_text` and `create_partial_metrics` are never used [INFO] [stdout] --> src/telemetry/provider_metrics.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ProviderMetrics { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn estimate_tokens_from_text(text: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn create_partial_metrics(model: String, accumulated_text: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_keepalive_interval` and `tcp_nodelay` are never read [INFO] [stdout] --> src/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub tcp_keepalive_interval: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub tcp_nodelay: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cloudwatch_enabled` is never read [INFO] [stdout] --> src/config.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct TelemetryConfig { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | pub cloudwatch_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TelemetryConfig` 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 `RequestContext` is never constructed [INFO] [stdout] --> src/context.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RequestContext { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl RequestContext { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(model: String, request_body: Value, headers: HeaderMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidMethod`, `UnsupportedModel`, and `RequestError` are never constructed [INFO] [stdout] --> src/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | InvalidMethod, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | UnsupportedModel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | RequestError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name`, `sign_request`, and `get_signing_host` are never used [INFO] [stdout] --> src/providers/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Provider: Send + Sync { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | async fn sign_request( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn get_signing_host(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_FALLBACK_MODEL` is never used [INFO] [stdout] --> src/providers/bedrock.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const DEFAULT_FALLBACK_MODEL: &str = "mistral.mistral-7b-instruct-v0:2"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_model_name` is never used [INFO] [stdout] --> src/providers/bedrock.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl BedrockProvider { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_model_name(&self, path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/telemetry/plugins/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait TelemetryPlugin: Send + Sync { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 7 | async fn export(&self, metrics: &RequestMetrics) -> Result<(), Box>; [INFO] [stdout] 8 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `estimate_tokens_from_text` and `create_partial_metrics` are never used [INFO] [stdout] --> src/telemetry/provider_metrics.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ProviderMetrics { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn estimate_tokens_from_text(text: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn create_partial_metrics(model: String, accumulated_text: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 57.01s [INFO] running `Command { std: "docker" "inspect" "e2ad8a16a4afb4471813f9cda994b9339ae522d231f65bcc30ee93523a14ee0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ad8a16a4afb4471813f9cda994b9339ae522d231f65bcc30ee93523a14ee0d", kill_on_drop: false }` [INFO] [stdout] e2ad8a16a4afb4471813f9cda994b9339ae522d231f65bcc30ee93523a14ee0d