[INFO] cloning repository https://github.com/jauharianggara/my-axum-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jauharianggara/my-axum-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjauharianggara%2Fmy-axum-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjauharianggara%2Fmy-axum-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 032388d275329c1d839ffd2a9f9ab92f498c781c [INFO] testing jauharianggara/my-axum-app against master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjauharianggara%2Fmy-axum-app" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jauharianggara/my-axum-app [INFO] finished tweaking git repo https://github.com/jauharianggara/my-axum-app [INFO] tweaked toml for git repo https://github.com/jauharianggara/my-axum-app written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jauharianggara/my-axum-app on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jauharianggara/my-axum-app 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" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator_derive v0.18.2 [INFO] [stderr] Downloaded sea-query-derive v0.4.3 [INFO] [stderr] Downloaded sea-orm-migration v1.1.17 [INFO] [stderr] Downloaded generic-array v0.14.9 [INFO] [stderr] Downloaded cc v1.2.43 [INFO] [stderr] Downloaded rust_decimal v1.39.0 [INFO] [stderr] Downloaded ammonia v4.1.2 [INFO] [stderr] Downloaded bigdecimal v0.4.9 [INFO] [stderr] Downloaded web_atoms v0.1.3 [INFO] [stderr] Downloaded htmlescape v0.3.1 [INFO] [stderr] Downloaded cssparser v0.35.0 [INFO] [stderr] Downloaded clap v4.5.50 [INFO] [stderr] Downloaded sea-orm-macros v1.1.17 [INFO] [stderr] Downloaded markup5ever v0.35.0 [INFO] [stderr] Downloaded match_token v0.35.0 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded sea-query-binder v0.7.0 [INFO] [stderr] Downloaded sea-orm-cli v1.1.17 [INFO] [stderr] Downloaded axum-extra v0.9.6 [INFO] [stderr] Downloaded sea-query v0.32.7 [INFO] [stderr] Downloaded sea-schema v0.16.2 [INFO] [stderr] Downloaded clap_builder v4.5.50 [INFO] [stderr] Downloaded openssl v0.10.74 [INFO] [stderr] Downloaded html5ever v0.35.0 [INFO] [stderr] Downloaded sea-orm v1.1.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bed68f67f2994f12447109270957ecfe0952ea5e21a99bb8974f8da099faeff1 [INFO] running `Command { std: "docker" "start" "-a" "bed68f67f2994f12447109270957ecfe0952ea5e21a99bb8974f8da099faeff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bed68f67f2994f12447109270957ecfe0952ea5e21a99bb8974f8da099faeff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bed68f67f2994f12447109270957ecfe0952ea5e21a99bb8974f8da099faeff1", kill_on_drop: false }` [INFO] [stdout] bed68f67f2994f12447109270957ecfe0952ea5e21a99bb8974f8da099faeff1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 80a19991aeff6e83ee30407d25ec625d32ea9a6884dcad0afdc4508ac0a458cd [INFO] running `Command { std: "docker" "start" "-a" "80a19991aeff6e83ee30407d25ec625d32ea9a6884dcad0afdc4508ac0a458cd", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling cc v1.2.43 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bigdecimal v0.4.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling web_atoms v0.1.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling clap_builder v4.5.50 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling dtoa-short v0.3.5 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling headers v0.4.1 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling htmlescape v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling inherent v1.0.13 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Compiling sea-bae v0.2.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling sea-orm-macros v1.1.17 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling ouroboros v0.18.5 [INFO] [stderr] Compiling match_token v0.35.0 [INFO] [stderr] Compiling sea-schema-derive v0.3.0 [INFO] [stderr] Compiling cssparser v0.35.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling sea-query-derive v0.4.3 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling clap v4.5.50 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling markup5ever v0.35.0 [INFO] [stderr] Compiling html5ever v0.35.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling sea-query v0.32.7 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sea-orm-cli v1.1.17 [INFO] [stderr] Compiling ammonia v4.1.2 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling sea-schema v0.16.2 [INFO] [stderr] Compiling sqlx-mysql v0.8.6 [INFO] [stderr] Compiling axum-extra v0.9.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling sea-query-binder v0.7.0 [INFO] [stderr] Compiling sea-orm v1.1.17 [INFO] [stderr] Compiling sea-orm-migration v1.1.17 [INFO] [stderr] Compiling my-axum-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Model as UserModel` [INFO] [stdout] --> src/handlers/auth.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Model as UserModel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `post`, and `put` [INFO] [stdout] --> src/routes/jabatan.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | routing::{get, post, put, delete}, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `user_id` is never read [INFO] [stdout] --> src/handlers/karyawan.rs:267:23 [INFO] [stdout] | [INFO] [stdout] 267 | let mut user_id = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `user_id` is never read [INFO] [stdout] --> src/handlers/karyawan.rs:667:23 [INFO] [stdout] | [INFO] [stdout] 667 | let mut user_id = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/middleware/security.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | headers: HeaderMap, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_safe_html` is never used [INFO] [stdout] --> src/validators/security.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn validate_safe_html(content: &str) -> Result<(), ValidationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password_strength` is never used [INFO] [stdout] --> src/validators/security.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn validate_password_strength(password: &str) -> Result<(), ValidationError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sanitize_html_content` is never used [INFO] [stdout] --> src/validators/security.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl SecurityValidator { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn sanitize_html_content(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rate_limit_layer` is never used [INFO] [stdout] --> src/middleware/security.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rate_limit_layer() -> RateLimitLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_json_input` is never used [INFO] [stdout] --> src/middleware/security.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn validate_json_input( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_html` is never used [INFO] [stdout] --> src/middleware/security.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn sanitize_html(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_username` is never used [INFO] [stdout] --> src/middleware/security.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn sanitize_username(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_request_logger` is never used [INFO] [stdout] --> src/middleware/logger.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn simple_request_logger( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_request_logger` is never used [INFO] [stdout] --> src/middleware/logger.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | pub async fn error_request_logger( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [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 1` [INFO] running `Command { std: "docker" "inspect" "80a19991aeff6e83ee30407d25ec625d32ea9a6884dcad0afdc4508ac0a458cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80a19991aeff6e83ee30407d25ec625d32ea9a6884dcad0afdc4508ac0a458cd", kill_on_drop: false }` [INFO] [stdout] 80a19991aeff6e83ee30407d25ec625d32ea9a6884dcad0afdc4508ac0a458cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5ce5d1923a1a02288102b8d28c3a06bef739993f4ddb6094878ff6559e4b03b [INFO] running `Command { std: "docker" "start" "-a" "c5ce5d1923a1a02288102b8d28c3a06bef739993f4ddb6094878ff6559e4b03b", kill_on_drop: false }` [INFO] [stderr] Compiling my-axum-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Model as UserModel` [INFO] [stdout] --> src/handlers/auth.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Model as UserModel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `post`, and `put` [INFO] [stdout] --> src/routes/jabatan.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | routing::{get, post, put, delete}, [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `user_id` is never read [INFO] [stdout] --> src/handlers/karyawan.rs:267:23 [INFO] [stdout] | [INFO] [stdout] 267 | let mut user_id = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `user_id` is never read [INFO] [stdout] --> src/handlers/karyawan.rs:667:23 [INFO] [stdout] | [INFO] [stdout] 667 | let mut user_id = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/middleware/security.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | headers: HeaderMap, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_safe_html` is never used [INFO] [stdout] --> src/validators/security.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn validate_safe_html(content: &str) -> Result<(), ValidationError> { [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 function `sanitize_html_content` is never used [INFO] [stdout] --> src/validators/security.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl SecurityValidator { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn sanitize_html_content(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rate_limit_layer` is never used [INFO] [stdout] --> src/middleware/security.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rate_limit_layer() -> RateLimitLayer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_json_input` is never used [INFO] [stdout] --> src/middleware/security.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn validate_json_input( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_username` is never used [INFO] [stdout] --> src/middleware/security.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn sanitize_username(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_request_logger` is never used [INFO] [stdout] --> src/middleware/logger.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn simple_request_logger( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_request_logger` is never used [INFO] [stdout] --> src/middleware/logger.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | pub async fn error_request_logger( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.54s [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 1` [INFO] running `Command { std: "docker" "inspect" "c5ce5d1923a1a02288102b8d28c3a06bef739993f4ddb6094878ff6559e4b03b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5ce5d1923a1a02288102b8d28c3a06bef739993f4ddb6094878ff6559e4b03b", kill_on_drop: false }` [INFO] [stdout] c5ce5d1923a1a02288102b8d28c3a06bef739993f4ddb6094878ff6559e4b03b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b5009549197a06da0474b23f23b5a404ace8343d08de985ea0a2986bfce4bd1f [INFO] running `Command { std: "docker" "start" "-a" "b5009549197a06da0474b23f23b5a404ace8343d08de985ea0a2986bfce4bd1f", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Model as UserModel` [INFO] [stderr] --> src/handlers/auth.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | Model as UserModel, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `delete`, `post`, and `put` [INFO] [stderr] --> src/routes/jabatan.rs:2:20 [INFO] [stderr] | [INFO] [stderr] 2 | routing::{get, post, put, delete}, [INFO] [stderr] | ^^^^ ^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `user_id` is never read [INFO] [stderr] --> src/handlers/karyawan.rs:267:23 [INFO] [stderr] | [INFO] [stderr] 267 | let mut user_id = None; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `user_id` is never read [INFO] [stderr] --> src/handlers/karyawan.rs:667:23 [INFO] [stderr] | [INFO] [stderr] 667 | let mut user_id = None; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `headers` [INFO] [stderr] --> src/middleware/security.rs:158:5 [INFO] [stderr] | [INFO] [stderr] 158 | headers: HeaderMap, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `validate_safe_html` is never used [INFO] [stderr] --> src/validators/security.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn validate_safe_html(content: &str) -> Result<(), ValidationError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `sanitize_html_content` is never used [INFO] [stderr] --> src/validators/security.rs:85:12 [INFO] [stderr] | [INFO] [stderr] 72 | impl SecurityValidator { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn sanitize_html_content(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `rate_limit_layer` is never used [INFO] [stderr] --> src/middleware/security.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn rate_limit_layer() -> RateLimitLayer { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `validate_json_input` is never used [INFO] [stderr] --> src/middleware/security.rs:138:14 [INFO] [stderr] | [INFO] [stderr] 138 | pub async fn validate_json_input( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `sanitize_username` is never used [INFO] [stderr] --> src/middleware/security.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn sanitize_username(input: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `simple_request_logger` is never used [INFO] [stderr] --> src/middleware/logger.rs:118:14 [INFO] [stderr] | [INFO] [stderr] 118 | pub async fn simple_request_logger( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `error_request_logger` is never used [INFO] [stderr] --> src/middleware/logger.rs:173:14 [INFO] [stderr] | [INFO] [stderr] 173 | pub async fn error_request_logger( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `my-axum-app` (bin "my-axum-app" test) generated 12 warnings (run `cargo fix --bin "my-axum-app" -p my-axum-app --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [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 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/my_axum_app-1c3454501bf73f53) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test middleware::security::tests::test_html_sanitization ... ok [INFO] [stdout] test validators::security::tests::test_password_strength ... ok [INFO] [stdout] test services::auth::tests::test_invalid_token ... ok [INFO] [stdout] test middleware::security::tests::test_email_validation ... ok [INFO] [stdout] test validators::security::tests::test_email_validation ... ok [INFO] [stdout] test validators::security::tests::test_username_validation ... ok [INFO] [stdout] test services::auth::tests::test_jwt_token ... ok [INFO] [stdout] test validators::security::tests::test_sql_injection_validation ... ok [INFO] [stdout] test middleware::security::tests::test_nosql_injection_detection ... ok [INFO] [stdout] test validators::security::tests::test_nosql_injection_validation ... ok [INFO] [stdout] test validators::security::tests::test_security_validator ... ok [INFO] [stdout] test middleware::security::tests::test_sql_injection_detection ... ok [INFO] [stdout] test services::auth::tests::test_password_hashing ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.16s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b5009549197a06da0474b23f23b5a404ace8343d08de985ea0a2986bfce4bd1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5009549197a06da0474b23f23b5a404ace8343d08de985ea0a2986bfce4bd1f", kill_on_drop: false }` [INFO] [stdout] b5009549197a06da0474b23f23b5a404ace8343d08de985ea0a2986bfce4bd1f