[INFO] cloning repository https://github.com/seemueller-io/zitadel-session-worker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seemueller-io/zitadel-session-worker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseemueller-io%2Fzitadel-session-worker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseemueller-io%2Fzitadel-session-worker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0493f32f3cca52931415eb5036d1448af012beb6 [INFO] building seemueller-io/zitadel-session-worker against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseemueller-io%2Fzitadel-session-worker" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seemueller-io/zitadel-session-worker [INFO] finished tweaking git repo https://github.com/seemueller-io/zitadel-session-worker [INFO] tweaked toml for git repo https://github.com/seemueller-io/zitadel-session-worker written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seemueller-io/zitadel-session-worker on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seemueller-io/zitadel-session-worker 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.allow-unsafe [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/tower-rs/tower-http` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-sessions-core v0.13.0 [INFO] [stderr] Downloaded tower-sessions-memory-store v0.13.0 [INFO] [stderr] Downloaded tracing-web v0.1.3 [INFO] [stderr] Downloaded tower-sessions v0.13.0 [INFO] [stderr] Downloaded openid v0.16.1 [INFO] [stderr] Downloaded custom_error v1.9.2 [INFO] [stderr] Downloaded worker-sys v0.5.0 [INFO] [stderr] Downloaded validator_derive v0.19.0 [INFO] [stderr] Downloaded biscuit v0.7.0 [INFO] [stderr] Downloaded validator v0.19.0 [INFO] [stderr] Downloaded dyn-clone v1.0.18 [INFO] [stderr] Downloaded worker-kv v0.7.0 [INFO] [stderr] Downloaded worker v0.5.0 [INFO] [stderr] Downloaded worker-macros v0.5.0 [INFO] [stderr] Downloaded openidconnect v3.5.0 [INFO] [stderr] Downloaded worker-kv v0.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 043898d51cd2936438467c86f1f3403b40717737a789bb15b7a494b850ae86c2 [INFO] running `Command { std: "docker" "start" "-a" "043898d51cd2936438467c86f1f3403b40717737a789bb15b7a494b850ae86c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "043898d51cd2936438467c86f1f3403b40717737a789bb15b7a494b850ae86c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "043898d51cd2936438467c86f1f3403b40717737a789bb15b7a494b850ae86c2", kill_on_drop: false }` [INFO] [stdout] 043898d51cd2936438467c86f1f3403b40717737a789bb15b7a494b850ae86c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea86ad2d92c708cf411235ed1271506c00596d4d9a8fd91f0f8d1b583801bd76 [INFO] running `Command { std: "docker" "start" "-a" "ea86ad2d92c708cf411235ed1271506c00596d4d9a8fd91f0f8d1b583801bd76", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.allow-unsafe [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling cc v1.2.11 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling openssl v0.10.69 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling ff v0.13.0 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling mini-moka v0.10.3 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling uuid v1.12.1 [INFO] [stderr] Compiling dyn-clone v1.0.18 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling custom_error v1.9.2 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling p384 v0.13.0 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [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 thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling validator_derive v0.19.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling rsa v0.9.7 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling axum-core v0.5.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower-http v0.6.2 (https://github.com/tower-rs/tower-http#45ce10bb) [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling serde-wasm-bindgen v0.5.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_plain v1.0.2 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 [INFO] [stderr] Compiling axum v0.8.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling worker-kv v0.7.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling worker-kv v0.8.0 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling biscuit v0.7.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling worker-sys v0.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tower-sessions-core v0.13.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling wasm-streams v0.4.2 [INFO] [stderr] Compiling worker-macros v0.5.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tower-sessions-memory-store v0.13.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling validator v0.19.0 [INFO] [stderr] Compiling tower-cookies v0.10.0 [INFO] [stderr] Compiling tower-sessions v0.13.0 [INFO] [stderr] Compiling tracing-web v0.1.3 [INFO] [stderr] Compiling oauth2 v5.0.0 [INFO] [stderr] Compiling openid v0.16.1 [INFO] [stderr] Compiling worker v0.5.0 [INFO] [stderr] Compiling axum-extra v0.10.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling openidconnect v3.5.0 [INFO] [stderr] Compiling zitadel-session-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tower::Layer` [INFO] [stdout] --> src/api/public.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tower::Layer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/api/public.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/api/public.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (!org_scope.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if (!org_scope.is_empty()) { [INFO] [stdout] 112 + if !org_scope.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/api/public.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (!project_scope.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (!project_scope.is_empty()) { [INFO] [stdout] 115 + if !project_scope.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::Layer` [INFO] [stdout] --> src/api/authenticated.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tower::Layer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/api/authenticated.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::authenticated::AuthenticatedApi` [INFO] [stdout] --> src/api/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::api::authenticated::AuthenticatedApi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::public::PublicApi` [INFO] [stdout] --> src/api/router.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::api::public::PublicApi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any` [INFO] [stdout] --> src/api/router.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use axum::routing::{any, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/api/router.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/api/router.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestPartsExt` [INFO] [stdout] --> src/axum_introspector/introspection/user.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::{Json, RequestPartsExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `worker::console_log` [INFO] [stdout] --> src/axum_introspector/introspection/user.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use worker::console_log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntrospectionStateBuilderError` [INFO] [stdout] --> src/axum_introspector/introspection/mod.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub use state_builder::{IntrospectionStateBuilder, IntrospectionStateBuilderError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntrospectionGuardError` [INFO] [stdout] --> src/axum_introspector/introspection/mod.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | pub use user::{IntrospectedUser, IntrospectionGuardError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `service_account::*` [INFO] [stdout] --> src/credentials/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use service_account::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Debug` and `Formatter` [INFO] [stdout] --> src/oidc/introspection/cache/cloudflare.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/session_storage/cloudflare.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::instrument::WithSubscriber` [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use tracing::instrument::WithSubscriber; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/api/public.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn login_page(session: Session, request: Request) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/public.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut auth_session = [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: variable does not need to be mutable [INFO] [stdout] --> src/api/public.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | mut session: tower_sessions::Session, [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/api/authenticated.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn proxy(session: tower_sessions::Session, State(state): State, user: IntrospectedUser, mut request: Request) -> ... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/api/authenticated.rs:13:89 [INFO] [stdout] | [INFO] [stdout] 13 | ...State(state): State, user: IntrospectedUser, mut request: Request) -> impl IntoResponse { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/authenticated.rs:13:113 [INFO] [stdout] | [INFO] [stdout] 13 | ...ate(state): State, user: IntrospectedUser, mut request: Request) -> impl IntoResponse { [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/api/router.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | mut response: axum_core::response::Response, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/session_storage/cloudflare.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if let Err(err) = request.execute().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/session_storage/cloudflare.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 75 | if let Err(err) = request.execute().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/lib.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | session: tower_sessions::Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_session_header_value` [INFO] [stdout] --> src/lib.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let x_session_header_value = response [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_session_header_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | mut response: axum_core::response::Response, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::prelude` [INFO] [stdout] --> src/lib.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | use tracing_subscriber::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | Some((response, expires_at)) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestConfig` is never constructed [INFO] [stdout] --> src/api/router.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct TestConfig { [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 `session_store` is never read [INFO] [stdout] --> src/api/router.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct TestAppState { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 45 | pub introspection_state: IntrospectionState, [INFO] [stdout] 46 | pub session_store: MemoryStore, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestAppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_router` is never used [INFO] [stdout] --> src/api/router.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn create_router(config: TestConfig) -> Router { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `whoami` is never used [INFO] [stdout] --> src/api/router.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 177 | async fn whoami() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `public_test_route` is never used [INFO] [stdout] --> src/api/router.rs:181:10 [INFO] [stdout] | [INFO] [stdout] 181 | async fn public_test_route() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `protected_test_route` is never used [INFO] [stdout] --> src/api/router.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | async fn protected_test_route() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_jwt_profile` is never used [INFO] [stdout] --> src/axum_introspector/introspection/state_builder.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl IntrospectionStateBuilder { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_jwt_profile(&mut self, application: Application) -> &mut IntrospectionStateBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `load_from_file` and `load_from_json` are never used [INFO] [stdout] --> src/credentials/application.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Application { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 26 | pub fn load_from_file>(file_path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn load_from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceAccount` is never constructed [INFO] [stdout] --> src/credentials/service_account.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ServiceAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationOptions` is never constructed [INFO] [stdout] --> src/credentials/service_account.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AuthenticationOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load_from_file`, `load_from_json`, `authenticate`, `authenticate_with_options`, and `create_signed_jwt` are never used [INFO] [stdout] --> src/credentials/service_account.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl ServiceAccount { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 54 | pub fn load_from_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn load_from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn authenticate(&self, audience: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn authenticate_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn create_signed_jwt(&self, audience: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_scopes` is never used [INFO] [stdout] --> src/credentials/service_account.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 132 | impl AuthenticationOptions { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 133 | fn create_scopes(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JWTProfile` is never constructed [INFO] [stdout] --> src/oidc/introspection/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum AuthorityAuthentication { [INFO] [stdout] | ----------------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 63 | JWTProfile { application: Application }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthorityAuthentication` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/oidc/introspection/cache/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait IntrospectionCache: Send + Sync + std::fmt::Debug { [INFO] [stdout] | ------------------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 17 | async fn clear(&self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Response` is never used [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Response = super::super::ZitadelIntrospectionResponse; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryIntrospectionCache` is never constructed [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct InMemoryIntrospectionCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl InMemoryIntrospectionCache { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OidcMetadata` is never constructed [INFO] [stdout] --> src/zitadel_http.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct OidcMetadata { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_oidc_metadata` is never used [INFO] [stdout] --> src/zitadel_http.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn fetch_oidc_metadata(issuer_url: &str) -> OidcMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "ea86ad2d92c708cf411235ed1271506c00596d4d9a8fd91f0f8d1b583801bd76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea86ad2d92c708cf411235ed1271506c00596d4d9a8fd91f0f8d1b583801bd76", kill_on_drop: false }` [INFO] [stdout] ea86ad2d92c708cf411235ed1271506c00596d4d9a8fd91f0f8d1b583801bd76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fd9c798372cf397cc7d092c434c433dc7cf6508810e46bbe5edd2d03b7c793a [INFO] running `Command { std: "docker" "start" "-a" "2fd9c798372cf397cc7d092c434c433dc7cf6508810e46bbe5edd2d03b7c793a", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: profile.release.allow-unsafe [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tower-sessions-core v0.13.0 [INFO] [stderr] Compiling axum v0.8.1 [INFO] [stderr] Compiling tower-http v0.6.2 (https://github.com/tower-rs/tower-http#45ce10bb) [INFO] [stderr] Compiling tower-sessions-memory-store v0.13.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower-sessions v0.13.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling openid v0.16.1 [INFO] [stderr] Compiling oauth2 v5.0.0 [INFO] [stderr] Compiling axum-extra v0.10.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling worker v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling openidconnect v3.5.0 [INFO] [stderr] Compiling zitadel-session-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tower::Layer` [INFO] [stdout] --> src/api/public.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tower::Layer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/api/public.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/api/public.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (!org_scope.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if (!org_scope.is_empty()) { [INFO] [stdout] 112 + if !org_scope.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/api/public.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (!project_scope.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (!project_scope.is_empty()) { [INFO] [stdout] 115 + if !project_scope.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower::Layer` [INFO] [stdout] --> src/api/authenticated.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tower::Layer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/api/authenticated.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::authenticated::AuthenticatedApi` [INFO] [stdout] --> src/api/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::api::authenticated::AuthenticatedApi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::public::PublicApi` [INFO] [stdout] --> src/api/router.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::api::public::PublicApi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any` [INFO] [stdout] --> src/api/router.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use axum::routing::{any, get}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/api/router.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/api/router.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestPartsExt` [INFO] [stdout] --> src/axum_introspector/introspection/user.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::{Json, RequestPartsExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `worker::console_log` [INFO] [stdout] --> src/axum_introspector/introspection/user.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use worker::console_log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntrospectionStateBuilderError` [INFO] [stdout] --> src/axum_introspector/introspection/mod.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub use state_builder::{IntrospectionStateBuilder, IntrospectionStateBuilderError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntrospectionGuardError` [INFO] [stdout] --> src/axum_introspector/introspection/mod.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | pub use user::{IntrospectedUser, IntrospectionGuardError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `service_account::*` [INFO] [stdout] --> src/credentials/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use service_account::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Debug` and `Formatter` [INFO] [stdout] --> src/oidc/introspection/cache/cloudflare.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/session_storage/cloudflare.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceExt` [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use axum::{Router, ServiceExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_service::Service` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use tower_service::Service; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::instrument::WithSubscriber` [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use tracing::instrument::WithSubscriber; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/api/public.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn login_page(session: Session, request: Request) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/public.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut auth_session = [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: variable does not need to be mutable [INFO] [stdout] --> src/api/public.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | mut session: tower_sessions::Session, [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/api/authenticated.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn proxy(session: tower_sessions::Session, State(state): State, user: IntrospectedUser, mut request: Request) -> ... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/api/authenticated.rs:13:89 [INFO] [stdout] | [INFO] [stdout] 13 | ...State(state): State, user: IntrospectedUser, mut request: Request) -> impl IntoResponse { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/authenticated.rs:13:113 [INFO] [stdout] | [INFO] [stdout] 13 | ...ate(state): State, user: IntrospectedUser, mut request: Request) -> impl IntoResponse { [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/api/router.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | mut response: axum_core::response::Response, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/session_storage/cloudflare.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if let Err(err) = request.execute().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/session_storage/cloudflare.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 75 | if let Err(err) = request.execute().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/lib.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | session: tower_sessions::Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_session_header_value` [INFO] [stdout] --> src/lib.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let x_session_header_value = response [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_session_header_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | mut response: axum_core::response::Response, [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::prelude` [INFO] [stdout] --> src/lib.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | use tracing_subscriber::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/axum_introspector/introspection/user.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:345:13 [INFO] [stdout] | [INFO] [stdout] 345 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:499:17 [INFO] [stdout] | [INFO] [stdout] 499 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [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/axum_introspector/introspection/user.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | let mut session = tower_sessions::Session::new(None, Arc::new(tower_sessions::MemoryStore::default()), None); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/oidc/introspection/cache/in_memory.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | Some((response, expires_at)) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestConfig` is never constructed [INFO] [stdout] --> src/api/router.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct TestConfig { [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 `session_store` is never read [INFO] [stdout] --> src/api/router.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct TestAppState { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 45 | pub introspection_state: IntrospectionState, [INFO] [stdout] 46 | pub session_store: MemoryStore, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestAppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_router` is never used [INFO] [stdout] --> src/api/router.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn create_router(config: TestConfig) -> Router { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `whoami` is never used [INFO] [stdout] --> src/api/router.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 177 | async fn whoami() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `public_test_route` is never used [INFO] [stdout] --> src/api/router.rs:181:10 [INFO] [stdout] | [INFO] [stdout] 181 | async fn public_test_route() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `protected_test_route` is never used [INFO] [stdout] --> src/api/router.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | async fn protected_test_route() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationOptions` is never constructed [INFO] [stdout] --> src/credentials/service_account.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AuthenticationOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `authenticate` and `authenticate_with_options` are never used [INFO] [stdout] --> src/credentials/service_account.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 53 | impl ServiceAccount { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn authenticate(&self, audience: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn authenticate_with_options( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_scopes` is never used [INFO] [stdout] --> src/credentials/service_account.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 132 | impl AuthenticationOptions { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] 133 | fn create_scopes(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OidcMetadata` is never constructed [INFO] [stdout] --> src/zitadel_http.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct OidcMetadata { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_oidc_metadata` is never used [INFO] [stdout] --> src/zitadel_http.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn fetch_oidc_metadata(issuer_url: &str) -> OidcMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 49.18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "2fd9c798372cf397cc7d092c434c433dc7cf6508810e46bbe5edd2d03b7c793a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd9c798372cf397cc7d092c434c433dc7cf6508810e46bbe5edd2d03b7c793a", kill_on_drop: false }` [INFO] [stdout] 2fd9c798372cf397cc7d092c434c433dc7cf6508810e46bbe5edd2d03b7c793a