[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] testing NakaSato/poc-simple-api against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [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-codec v0.6.2 [INFO] [stderr] Downloaded compio-runtime v0.8.1 [INFO] [stderr] Downloaded ntex-rt v0.4.32 [INFO] [stderr] Downloaded aligned-array v1.0.1 [INFO] [stderr] Downloaded oneshot v0.1.11 [INFO] [stderr] Downloaded ntex-macros v0.1.4 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded ntex-compio v0.4.0 [INFO] [stderr] Downloaded redox_syscall v0.5.15 [INFO] [stderr] Downloaded ntex-service v3.5.0 [INFO] [stderr] Downloaded nanorand v0.8.0 [INFO] [stderr] Downloaded compio-net v0.8.0 [INFO] [stderr] Downloaded ntex-server v2.8.1 [INFO] [stderr] Downloaded jsonwebtoken v8.3.0 [INFO] [stderr] Downloaded ntex-io v2.13.3 [INFO] [stderr] Downloaded ntex-bytes v0.1.29 [INFO] [stderr] Downloaded compio-driver v0.8.1 [INFO] [stderr] Downloaded ntex-tls v2.5.0 [INFO] [stderr] Downloaded ntex-h2 v1.12.0 [INFO] [stderr] Downloaded polling v3.8.0 [INFO] [stderr] Downloaded compio-io v0.7.0 [INFO] [stderr] Downloaded ntex-util v2.12.1 [INFO] [stderr] Downloaded ntex v2.15.0 [INFO] [stderr] Downloaded ntex-http v0.1.14 [INFO] [stderr] Downloaded ntex-net v2.7.0 [INFO] [stderr] Downloaded ntex-router v0.5.3 [INFO] [stderr] Downloaded compio-buf v0.6.0 [INFO] [stderr] Downloaded core_affinity v0.8.3 [INFO] [stderr] Downloaded io_uring_buf_ring v0.2.1 [INFO] [stderr] Downloaded ring v0.17.14 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc2190a7dee3b30271db700321d7f1da274c9cc3e638e4431ea5ae6f0acdf90c [INFO] running `Command { std: "docker" "start" "-a" "bc2190a7dee3b30271db700321d7f1da274c9cc3e638e4431ea5ae6f0acdf90c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc2190a7dee3b30271db700321d7f1da274c9cc3e638e4431ea5ae6f0acdf90c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc2190a7dee3b30271db700321d7f1da274c9cc3e638e4431ea5ae6f0acdf90c", kill_on_drop: false }` [INFO] [stdout] bc2190a7dee3b30271db700321d7f1da274c9cc3e638e4431ea5ae6f0acdf90c [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55f0ae8fe4cebd449117d55400692ea5b3371fc9bd18e1de4b5ebd0e63efb0dd [INFO] running `Command { std: "docker" "start" "-a" "55f0ae8fe4cebd449117d55400692ea5b3371fc9bd18e1de4b5ebd0e63efb0dd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling io-uring v0.7.8 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling compio-driver v0.8.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling ntex-service v3.5.0 [INFO] [stderr] Compiling ntex-rt v0.4.32 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling oneshot v0.1.11 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling compio-log v0.1.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling compio-buf v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling core_affinity v0.8.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling nanorand v0.8.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling polling v3.8.0 [INFO] [stderr] Compiling io_uring_buf_ring v0.2.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [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 regex v1.11.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling ntex-macros v0.1.4 [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 serde v1.0.219 [INFO] [stderr] Compiling compio-io v0.7.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling compio-runtime v0.8.1 [INFO] [stderr] Compiling compio-net v0.8.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.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-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling h2 v0.3.27 [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 ntex-codec v0.6.2 [INFO] [stderr] Compiling ntex-util v2.12.1 [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 hyper v0.14.32 [INFO] [stderr] Compiling ntex-compio v0.4.0 [INFO] [stderr] Compiling ntex-net v2.7.0 [INFO] [stderr] Compiling ntex-h2 v1.12.0 [INFO] [stderr] Compiling ntex-server v2.8.1 [INFO] [stderr] Compiling ntex-tls v2.5.0 [INFO] [stderr] Compiling ntex v2.15.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 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 30s [INFO] running `Command { std: "docker" "inspect" "55f0ae8fe4cebd449117d55400692ea5b3371fc9bd18e1de4b5ebd0e63efb0dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55f0ae8fe4cebd449117d55400692ea5b3371fc9bd18e1de4b5ebd0e63efb0dd", kill_on_drop: false }` [INFO] [stdout] 55f0ae8fe4cebd449117d55400692ea5b3371fc9bd18e1de4b5ebd0e63efb0dd [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec49c004cbded776dd010cd27111cbc9c9ed358d169a8ddf5652660cbd205173 [INFO] running `Command { std: "docker" "start" "-a" "ec49c004cbded776dd010cd27111cbc9c9ed358d169a8ddf5652660cbd205173", 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.49s [INFO] running `Command { std: "docker" "inspect" "ec49c004cbded776dd010cd27111cbc9c9ed358d169a8ddf5652660cbd205173", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec49c004cbded776dd010cd27111cbc9c9ed358d169a8ddf5652660cbd205173", kill_on_drop: false }` [INFO] [stdout] ec49c004cbded776dd010cd27111cbc9c9ed358d169a8ddf5652660cbd205173 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 63a34bda3a14153a64aaf69d80c69a33d9b12e6965672d0ac7a9a3c0bc90cac6 [INFO] running `Command { std: "docker" "start" "-a" "63a34bda3a14153a64aaf69d80c69a33d9b12e6965672d0ac7a9a3c0bc90cac6", kill_on_drop: false }` [INFO] [stderr] warning: type `Claims` is more private than the item `SecurityUtils::validate_jwt` [INFO] [stderr] --> src/bridge_client.rs:258:5 [INFO] [stderr] | [INFO] [stderr] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `SecurityUtils::validate_jwt` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `Claims` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/bridge_client.rs:36:1 [INFO] [stderr] | [INFO] [stderr] 36 | struct Claims { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `get_account_info` is never used [INFO] [stderr] --> src/bridge_client.rs:200:18 [INFO] [stderr] | [INFO] [stderr] 65 | impl BridgeClient { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 200 | pub async fn get_account_info(&self, account_id: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `hash_data` and `validate_jwt` are never used [INFO] [stderr] --> src/bridge_client.rs:250:12 [INFO] [stderr] | [INFO] [stderr] 224 | impl SecurityUtils { [INFO] [stderr] | ------------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 250 | pub fn hash_data(data: &str, salt: &str) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 258 | pub fn validate_jwt(token: &str, secret: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `jwt_secret`, `rate_limit_per_minute`, `require_signatures`, and `allowed_ips` are never read [INFO] [stderr] --> src/security.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct SecurityConfig { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | pub jwt_secret: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 15 | /// Rate limit: requests per minute [INFO] [stderr] 16 | pub rate_limit_per_minute: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 17 | /// Enable request signature validation [INFO] [stderr] 18 | pub require_signatures: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 19 | /// Allowed IP addresses (empty = allow all) [INFO] [stderr] 20 | pub allowed_ips: Vec, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SecurityConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `RateLimitEntry` is never constructed [INFO] [stderr] --> src/security.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | struct RateLimitEntry { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `validate_jwt_token`, `check_rate_limit`, `validate_signature`, and `is_ip_allowed` are never used [INFO] [stderr] --> src/security.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 65 | impl SecurityMiddleware { [INFO] [stderr] | ----------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 81 | pub fn validate_jwt_token(&self, req: &HttpRequest) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 104 | pub fn check_rate_limit(&self, client_id: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 130 | pub fn validate_signature(&self, req: &HttpRequest, body: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 170 | pub fn is_ip_allowed(&self, req: &HttpRequest) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `auth_middleware` is never used [INFO] [stderr] --> src/security.rs:220:14 [INFO] [stderr] | [INFO] [stderr] 220 | pub async fn auth_middleware( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `OrderRequest` is never constructed [INFO] [stderr] --> src/models.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct OrderRequest { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `poc-simple-api` (bin "poc-simple-api" test) generated 8 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/poc_simple_api-4337ce733772a482) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test security::tests::test_api_key_validation ... ok [INFO] [stdout] test security::tests::test_jwt_generation_and_validation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "63a34bda3a14153a64aaf69d80c69a33d9b12e6965672d0ac7a9a3c0bc90cac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63a34bda3a14153a64aaf69d80c69a33d9b12e6965672d0ac7a9a3c0bc90cac6", kill_on_drop: false }` [INFO] [stdout] 63a34bda3a14153a64aaf69d80c69a33d9b12e6965672d0ac7a9a3c0bc90cac6