[INFO] cloning repository https://github.com/NakaSato/poc-simple-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NakaSato/poc-simple-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-simple-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-simple-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b53026e93042db30ea1ddcd464d514209bbe4d33 [INFO] building NakaSato/poc-simple-api against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-simple-api" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NakaSato/poc-simple-api [INFO] finished tweaking git repo https://github.com/NakaSato/poc-simple-api [INFO] tweaked toml for git repo https://github.com/NakaSato/poc-simple-api written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NakaSato/poc-simple-api 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 git repo https://github.com/NakaSato/poc-simple-api 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] Downloading crates ... [INFO] [stderr] Downloaded compio-log v0.1.0 [INFO] [stderr] Downloaded ntex-util v2.12.1 [INFO] [stderr] Downloaded ntex-codec v0.6.2 [INFO] [stderr] Downloaded nanorand v0.8.0 [INFO] [stderr] Downloaded ntex-macros v0.1.4 [INFO] [stderr] Downloaded ntex-server v2.8.1 [INFO] [stderr] Downloaded ntex-bytes v0.1.29 [INFO] [stderr] Downloaded ntex-net v2.7.0 [INFO] [stderr] Downloaded ntex v2.15.0 [INFO] [stderr] Downloaded ntex-h2 v1.12.0 [INFO] [stderr] Downloaded ntex-tls v2.5.0 [INFO] [stderr] Downloaded compio-driver v0.8.1 [INFO] [stderr] Downloaded compio-runtime v0.8.1 [INFO] [stderr] Downloaded core_affinity v0.8.3 [INFO] [stderr] Downloaded ctrlc v3.4.7 [INFO] [stderr] Downloaded nix v0.30.1 [INFO] [stderr] Downloaded compio-io v0.7.0 [INFO] [stderr] Downloaded compio-net v0.8.0 [INFO] [stderr] Downloaded ntex-compio v0.4.0 [INFO] [stderr] Downloaded ntex-http v0.1.14 [INFO] [stderr] Downloaded ntex-service v3.5.0 [INFO] [stderr] Downloaded ntex-router v0.5.3 [INFO] [stderr] Downloaded aligned-array v1.0.1 [INFO] [stderr] Downloaded compio-buf v0.6.0 [INFO] [stderr] Downloaded io_uring_buf_ring v0.2.1 [INFO] [stderr] Downloaded ntex-rt v0.4.32 [INFO] [stderr] Downloaded variadics_please v1.1.0 [INFO] [stderr] Downloaded ntex-io v2.13.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 4e37446d06be7be28409c8f5e8badfd0f2222ad2a1179d17014d73bcbc34b43b [INFO] running `Command { std: "docker" "start" "-a" "4e37446d06be7be28409c8f5e8badfd0f2222ad2a1179d17014d73bcbc34b43b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e37446d06be7be28409c8f5e8badfd0f2222ad2a1179d17014d73bcbc34b43b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e37446d06be7be28409c8f5e8badfd0f2222ad2a1179d17014d73bcbc34b43b", kill_on_drop: false }` [INFO] [stdout] 4e37446d06be7be28409c8f5e8badfd0f2222ad2a1179d17014d73bcbc34b43b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 296a1be59ce0370a6db48c2dbd6a42ba9c5d23850c0897829de97c98742ab8b6 [INFO] running `Command { std: "docker" "start" "-a" "296a1be59ce0370a6db48c2dbd6a42ba9c5d23850c0897829de97c98742ab8b6", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling io-uring v0.7.8 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling compio-driver v0.8.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling compio-buf v0.6.0 [INFO] [stderr] Compiling compio-log v0.1.0 [INFO] [stderr] Compiling ntex-service v3.5.0 [INFO] [stderr] Compiling ntex-rt v0.4.32 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling core_affinity v0.8.3 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling nanorand v0.8.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ntex-macros v0.1.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling variadics_please v1.1.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling io_uring_buf_ring v0.2.1 [INFO] [stderr] Compiling polling v3.8.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling compio-io v0.7.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling compio-runtime v0.8.1 [INFO] [stderr] Compiling compio-net v0.8.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling ntex-bytes v0.1.29 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling ntex-util v2.12.1 [INFO] [stderr] Compiling ntex-codec v0.6.2 [INFO] [stderr] Compiling ntex-http v0.1.14 [INFO] [stderr] Compiling ntex-router v0.5.3 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling ntex-io v2.13.3 [INFO] [stderr] Compiling ntex-compio v0.4.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling ntex-net v2.7.0 [INFO] [stderr] Compiling ntex-server v2.8.1 [INFO] [stderr] Compiling ntex-tls v2.5.0 [INFO] [stderr] Compiling ntex-h2 v1.12.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling ntex v2.15.0 [INFO] [stderr] Compiling poc-simple-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Claims` is more private than the item `SecurityUtils::validate_jwt` [INFO] [stdout] --> src/bridge_client.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `SecurityUtils::validate_jwt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Claims` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/bridge_client.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | struct Claims { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_account_info` is never used [INFO] [stdout] --> src/bridge_client.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 65 | impl BridgeClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub async fn get_account_info(&self, account_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `hash_data` and `validate_jwt` are never used [INFO] [stdout] --> src/bridge_client.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl SecurityUtils { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn hash_data(data: &str, salt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jwt_secret`, `rate_limit_per_minute`, `require_signatures`, and `allowed_ips` are never read [INFO] [stdout] --> src/security.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub jwt_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | /// Rate limit: requests per minute [INFO] [stdout] 16 | pub rate_limit_per_minute: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | /// Enable request signature validation [INFO] [stdout] 18 | pub require_signatures: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | /// Allowed IP addresses (empty = allow all) [INFO] [stdout] 20 | pub allowed_ips: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RateLimitEntry` is never constructed [INFO] [stdout] --> src/security.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct RateLimitEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiClaims` is never constructed [INFO] [stdout] --> src/security.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct ApiClaims { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate_jwt_token`, `check_rate_limit`, `validate_signature`, and `is_ip_allowed` are never used [INFO] [stdout] --> src/security.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl SecurityMiddleware { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn validate_jwt_token(&self, req: &HttpRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn check_rate_limit(&self, client_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn validate_signature(&self, req: &HttpRequest, body: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn is_ip_allowed(&self, req: &HttpRequest) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/security.rs:220:14 [INFO] [stdout] | [INFO] [stdout] 220 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_test_jwt` is never used [INFO] [stdout] --> src/security.rs:266:8 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn generate_test_jwt(secret: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderRequest` is never constructed [INFO] [stdout] --> src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "296a1be59ce0370a6db48c2dbd6a42ba9c5d23850c0897829de97c98742ab8b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "296a1be59ce0370a6db48c2dbd6a42ba9c5d23850c0897829de97c98742ab8b6", kill_on_drop: false }` [INFO] [stdout] 296a1be59ce0370a6db48c2dbd6a42ba9c5d23850c0897829de97c98742ab8b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 5e8381d9e6afd95104b6c415ad48ffabff3ee9946f690ecadba6370dae827ab5 [INFO] running `Command { std: "docker" "start" "-a" "5e8381d9e6afd95104b6c415ad48ffabff3ee9946f690ecadba6370dae827ab5", kill_on_drop: false }` [INFO] [stderr] Compiling poc-simple-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Claims` is more private than the item `SecurityUtils::validate_jwt` [INFO] [stdout] --> src/bridge_client.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `SecurityUtils::validate_jwt` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Claims` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/bridge_client.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | struct Claims { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_account_info` is never used [INFO] [stdout] --> src/bridge_client.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 65 | impl BridgeClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub async fn get_account_info(&self, account_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `hash_data` and `validate_jwt` are never used [INFO] [stdout] --> src/bridge_client.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl SecurityUtils { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn hash_data(data: &str, salt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jwt_secret`, `rate_limit_per_minute`, `require_signatures`, and `allowed_ips` are never read [INFO] [stdout] --> src/security.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub jwt_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | /// Rate limit: requests per minute [INFO] [stdout] 16 | pub rate_limit_per_minute: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | /// Enable request signature validation [INFO] [stdout] 18 | pub require_signatures: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | /// Allowed IP addresses (empty = allow all) [INFO] [stdout] 20 | pub allowed_ips: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RateLimitEntry` is never constructed [INFO] [stdout] --> src/security.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct RateLimitEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate_jwt_token`, `check_rate_limit`, `validate_signature`, and `is_ip_allowed` are never used [INFO] [stdout] --> src/security.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl SecurityMiddleware { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn validate_jwt_token(&self, req: &HttpRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn check_rate_limit(&self, client_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn validate_signature(&self, req: &HttpRequest, body: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn is_ip_allowed(&self, req: &HttpRequest) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/security.rs:220:14 [INFO] [stdout] | [INFO] [stdout] 220 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderRequest` is never constructed [INFO] [stdout] --> src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.80s [INFO] running `Command { std: "docker" "inspect" "5e8381d9e6afd95104b6c415ad48ffabff3ee9946f690ecadba6370dae827ab5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e8381d9e6afd95104b6c415ad48ffabff3ee9946f690ecadba6370dae827ab5", kill_on_drop: false }` [INFO] [stdout] 5e8381d9e6afd95104b6c415ad48ffabff3ee9946f690ecadba6370dae827ab5