[INFO] cloning repository https://github.com/balljul/chronos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/balljul/chronos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fballjul%2Fchronos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fballjul%2Fchronos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d85146c7f422f553ed55b7a473c64328a72e02b4 [INFO] checking balljul/chronos/d85146c7f422f553ed55b7a473c64328a72e02b4 against master#c797096598b80ba4a40397ad7e91584fcd3df5f1 for pr-146377 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fballjul%2Fchronos" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/balljul/chronos [INFO] finished tweaking git repo https://github.com/balljul/chronos [INFO] tweaked toml for git repo https://github.com/balljul/chronos written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/balljul/chronos on toolchain c797096598b80ba4a40397ad7e91584fcd3df5f1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/balljul/chronos 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" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_core v1.0.223 [INFO] [stderr] Downloaded serde_derive v1.0.223 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded tower_governor v0.8.0 [INFO] [stderr] Downloaded jsonwebtoken v10.0.0 [INFO] [stderr] Downloaded serde_path_to_error v0.1.19 [INFO] [stderr] Downloaded serde v1.0.223 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66395945304dc7dc80bb6f8702c4589609319145e7421049d6bc95772c2d5f31 [INFO] running `Command { std: "docker" "start" "-a" "66395945304dc7dc80bb6f8702c4589609319145e7421049d6bc95772c2d5f31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66395945304dc7dc80bb6f8702c4589609319145e7421049d6bc95772c2d5f31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66395945304dc7dc80bb6f8702c4589609319145e7421049d6bc95772c2d5f31", kill_on_drop: false }` [INFO] [stdout] 66395945304dc7dc80bb6f8702c4589609319145e7421049d6bc95772c2d5f31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 007c17efc8a6a7366522f2de66caeb44aec12ccaeb5e5303a367c9e5d0d5bdfa [INFO] running `Command { std: "docker" "start" "-a" "007c17efc8a6a7366522f2de66caeb44aec12ccaeb5e5303a367c9e5d0d5bdfa", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.223 [INFO] [stderr] Compiling serde_core v1.0.223 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking indexmap v2.11.3 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Compiling time v0.3.43 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking serde_path_to_error v0.1.19 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking regex-automata v0.4.11 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking spinning_top v0.3.0 [INFO] [stderr] Checking nonempty v0.7.0 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Compiling chronos v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking quanta v0.12.6 [INFO] [stderr] Compiling tokio-stream v0.1.17 [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] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.11.3 [INFO] [stderr] Compiling serde_derive v1.0.223 [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 tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking forwarded-header-value v0.1.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking rsa v0.9.8 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking governor v0.10.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking jsonwebtoken v10.0.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking tonic v0.14.2 [INFO] [stderr] Checking tower_governor v0.8.0 [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / sqlx::query!( [INFO] [stdout] 19 | | r#" [INFO] [stdout] 20 | | INSERT INTO login_attempts (id, ip_address, email, user_id, success, failure_reason, user_agent, created_at) [INFO] [stdout] 21 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 30 | | attempt.created_at [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT COUNT(*) as count [INFO] [stdout] 47 | | FROM login_attempts [INFO] [stdout] ... | [INFO] [stdout] 51 | | since [INFO] [stdout] 52 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 66 | | r#" [INFO] [stdout] 67 | | SELECT COUNT(*) as count [INFO] [stdout] 68 | | FROM login_attempts [INFO] [stdout] ... | [INFO] [stdout] 72 | | since [INFO] [stdout] 73 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | let attempts = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 87 | | LoginAttempt, [INFO] [stdout] 88 | | r#" [INFO] [stdout] 89 | | SELECT id, ip_address, email, user_id, success, failure_reason, user_agent, created_at [INFO] [stdout] ... | [INFO] [stdout] 96 | | limit as i64 [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 107 | | "DELETE FROM login_attempts WHERE created_at < $1", [INFO] [stdout] 108 | | older_than [INFO] [stdout] 109 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | / sqlx::query!( [INFO] [stdout] 130 | | r#" [INFO] [stdout] 131 | | INSERT INTO account_lockouts (id, user_id, locked_until, failed_attempts, locked_at, unlocked_at) [INFO] [stdout] 132 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 139 | | lockout.unlocked_at [INFO] [stdout] 140 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | let lockout = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 150 | | AccountLockout, [INFO] [stdout] 151 | | r#" [INFO] [stdout] 152 | | SELECT id, user_id, locked_until, failed_attempts, locked_at, unlocked_at [INFO] [stdout] ... | [INFO] [stdout] 158 | | user_id [INFO] [stdout] 159 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | / sqlx::query!( [INFO] [stdout] 169 | | r#" [INFO] [stdout] 170 | | UPDATE account_lockouts [INFO] [stdout] 171 | | SET unlocked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 174 | | user_id [INFO] [stdout] 175 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:184:22 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 185 | | r#" [INFO] [stdout] 186 | | UPDATE account_lockouts [INFO] [stdout] 187 | | SET unlocked_at = NOW() [INFO] [stdout] 188 | | WHERE unlocked_at IS NULL AND locked_until <= NOW() [INFO] [stdout] 189 | | "# [INFO] [stdout] 190 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | / sqlx::query!( [INFO] [stdout] 211 | | r#" [INFO] [stdout] 212 | | INSERT INTO refresh_tokens (id, jti, user_id, token_hash, expires_at, revoked_at, created_at, last_used_at) [INFO] [stdout] 213 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 222 | | token.last_used_at [INFO] [stdout] 223 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 233 | | r#" [INFO] [stdout] 234 | | SELECT id, jti, user_id, token_hash, expires_at, revoked_at, created_at, last_used_at [INFO] [stdout] 235 | | FROM refresh_tokens [INFO] [stdout] ... | [INFO] [stdout] 238 | | jti [INFO] [stdout] 239 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | / sqlx::query!( [INFO] [stdout] 262 | | r#" [INFO] [stdout] 263 | | UPDATE refresh_tokens [INFO] [stdout] 264 | | SET last_used_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 267 | | jti [INFO] [stdout] 268 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | / sqlx::query!( [INFO] [stdout] 278 | | r#" [INFO] [stdout] 279 | | UPDATE refresh_tokens [INFO] [stdout] 280 | | SET revoked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 283 | | jti [INFO] [stdout] 284 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / sqlx::query!( [INFO] [stdout] 294 | | r#" [INFO] [stdout] 295 | | UPDATE refresh_tokens [INFO] [stdout] 296 | | SET revoked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 299 | | user_id [INFO] [stdout] 300 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:309:22 [INFO] [stdout] | [INFO] [stdout] 309 | let result = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 18 | | r#" [INFO] [stdout] 19 | | INSERT INTO password_reset_tokens (id, user_id, token_hash, expires_at, used, created_at) [INFO] [stdout] 20 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 28 | | token.created_at [INFO] [stdout] 29 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT id, user_id, token_hash, expires_at, used, created_at [INFO] [stdout] 47 | | FROM password_reset_tokens [INFO] [stdout] ... | [INFO] [stdout] 53 | | OffsetDateTime::now_utc() [INFO] [stdout] 54 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let rows = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 73 | | r#" [INFO] [stdout] 74 | | SELECT id, user_id, token_hash, expires_at, used, created_at [INFO] [stdout] 75 | | FROM password_reset_tokens [INFO] [stdout] ... | [INFO] [stdout] 80 | | OffsetDateTime::now_utc() [INFO] [stdout] 81 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 100 | | "UPDATE password_reset_tokens SET used = true WHERE id = $1", [INFO] [stdout] 101 | | id [INFO] [stdout] 102 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 115 | | "SELECT COUNT(*) FROM password_reset_tokens WHERE user_id = $1 AND created_at > $2", [INFO] [stdout] 116 | | user_id, [INFO] [stdout] 117 | | since [INFO] [stdout] 118 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 127 | | "DELETE FROM password_reset_tokens WHERE expires_at < $1", [INFO] [stdout] 128 | | OffsetDateTime::now_utc() [INFO] [stdout] 129 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 37 | | TimeEntry, [INFO] [stdout] 38 | | r#" [INFO] [stdout] 39 | | INSERT INTO time_entries (id, user_id, description, project_id, task_id, start_time, end_time) [INFO] [stdout] ... | [INFO] [stdout] 49 | | entry.end_time [INFO] [stdout] 50 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 59 | | ... TimeEntry, [INFO] [stdout] 60 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time_... [INFO] [stdout] 61 | | ... id, [INFO] [stdout] 62 | | ... user_id [INFO] [stdout] 63 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | ... TimeEntry, [INFO] [stdout] 73 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time_... [INFO] [stdout] 74 | | ... id [INFO] [stdout] 75 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 90 | | TimeEntry, [INFO] [stdout] 91 | | r#" [INFO] [stdout] 92 | | UPDATE time_entries [INFO] [stdout] ... | [INFO] [stdout] 103 | | entry.end_time [INFO] [stdout] 104 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 113 | | "DELETE FROM time_entries WHERE id = $1 AND user_id = $2", [INFO] [stdout] 114 | | id, [INFO] [stdout] 115 | | user_id [INFO] [stdout] 116 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 129 | | TimeEntry, [INFO] [stdout] 130 | | r#" [INFO] [stdout] 131 | | UPDATE time_entries [INFO] [stdout] ... | [INFO] [stdout] 138 | | OffsetDateTime::now_utc() [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 147 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 148 | | ... TimeEntry, [INFO] [stdout] 149 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time... [INFO] [stdout] 150 | | ... user_id [INFO] [stdout] 151 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 18 | | User, [INFO] [stdout] 19 | | r#" [INFO] [stdout] 20 | | INSERT INTO users (id, first_name, email, password_hash, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 29 | | user.updated_at [INFO] [stdout] 30 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 39 | | User, [INFO] [stdout] 40 | | r#" [INFO] [stdout] 41 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 45 | | id [INFO] [stdout] 46 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 55 | | User, [INFO] [stdout] 56 | | r#" [INFO] [stdout] 57 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 61 | | email [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let users = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 71 | | User, [INFO] [stdout] 72 | | r#" [INFO] [stdout] 73 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 76 | | "# [INFO] [stdout] 77 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 92 | | User, [INFO] [stdout] 93 | | r#" [INFO] [stdout] 94 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 107 | | OffsetDateTime::now_utc() [INFO] [stdout] 108 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectInfo` and `HeaderMap` [INFO] [stdout] --> src/app/middleware/security.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | extract::{ConnectInfo, Request}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | http::{HeaderMap, HeaderName, HeaderValue, StatusCode}, [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: `net::SocketAddr` [INFO] [stdout] --> src/app/middleware/security.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/app/middleware/security.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/app/middleware/security.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::OffsetDateTime` [INFO] [stdout] --> src/app/repositories/user_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use time::OffsetDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::extract::connect_info::ConnectInfo` [INFO] [stdout] --> src/build/web.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::extract::connect_info::ConnectInfo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / sqlx::query!( [INFO] [stdout] 19 | | r#" [INFO] [stdout] 20 | | INSERT INTO login_attempts (id, ip_address, email, user_id, success, failure_reason, user_agent, created_at) [INFO] [stdout] 21 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 30 | | attempt.created_at [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT COUNT(*) as count [INFO] [stdout] 47 | | FROM login_attempts [INFO] [stdout] ... | [INFO] [stdout] 51 | | since [INFO] [stdout] 52 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 66 | | r#" [INFO] [stdout] 67 | | SELECT COUNT(*) as count [INFO] [stdout] 68 | | FROM login_attempts [INFO] [stdout] ... | [INFO] [stdout] 72 | | since [INFO] [stdout] 73 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | let attempts = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 87 | | LoginAttempt, [INFO] [stdout] 88 | | r#" [INFO] [stdout] 89 | | SELECT id, ip_address, email, user_id, success, failure_reason, user_agent, created_at [INFO] [stdout] ... | [INFO] [stdout] 96 | | limit as i64 [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 107 | | "DELETE FROM login_attempts WHERE created_at < $1", [INFO] [stdout] 108 | | older_than [INFO] [stdout] 109 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | / sqlx::query!( [INFO] [stdout] 130 | | r#" [INFO] [stdout] 131 | | INSERT INTO account_lockouts (id, user_id, locked_until, failed_attempts, locked_at, unlocked_at) [INFO] [stdout] 132 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 139 | | lockout.unlocked_at [INFO] [stdout] 140 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | let lockout = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 150 | | AccountLockout, [INFO] [stdout] 151 | | r#" [INFO] [stdout] 152 | | SELECT id, user_id, locked_until, failed_attempts, locked_at, unlocked_at [INFO] [stdout] ... | [INFO] [stdout] 158 | | user_id [INFO] [stdout] 159 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | / sqlx::query!( [INFO] [stdout] 169 | | r#" [INFO] [stdout] 170 | | UPDATE account_lockouts [INFO] [stdout] 171 | | SET unlocked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 174 | | user_id [INFO] [stdout] 175 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:184:22 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 185 | | r#" [INFO] [stdout] 186 | | UPDATE account_lockouts [INFO] [stdout] 187 | | SET unlocked_at = NOW() [INFO] [stdout] 188 | | WHERE unlocked_at IS NULL AND locked_until <= NOW() [INFO] [stdout] 189 | | "# [INFO] [stdout] 190 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | / sqlx::query!( [INFO] [stdout] 211 | | r#" [INFO] [stdout] 212 | | INSERT INTO refresh_tokens (id, jti, user_id, token_hash, expires_at, revoked_at, created_at, last_used_at) [INFO] [stdout] 213 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 222 | | token.last_used_at [INFO] [stdout] 223 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 233 | | r#" [INFO] [stdout] 234 | | SELECT id, jti, user_id, token_hash, expires_at, revoked_at, created_at, last_used_at [INFO] [stdout] 235 | | FROM refresh_tokens [INFO] [stdout] ... | [INFO] [stdout] 238 | | jti [INFO] [stdout] 239 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | / sqlx::query!( [INFO] [stdout] 262 | | r#" [INFO] [stdout] 263 | | UPDATE refresh_tokens [INFO] [stdout] 264 | | SET last_used_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 267 | | jti [INFO] [stdout] 268 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | / sqlx::query!( [INFO] [stdout] 278 | | r#" [INFO] [stdout] 279 | | UPDATE refresh_tokens [INFO] [stdout] 280 | | SET revoked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 283 | | jti [INFO] [stdout] 284 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | / sqlx::query!( [INFO] [stdout] 294 | | r#" [INFO] [stdout] 295 | | UPDATE refresh_tokens [INFO] [stdout] 296 | | SET revoked_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 299 | | user_id [INFO] [stdout] 300 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:309:22 [INFO] [stdout] | [INFO] [stdout] 309 | let result = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 18 | | r#" [INFO] [stdout] 19 | | INSERT INTO password_reset_tokens (id, user_id, token_hash, expires_at, used, created_at) [INFO] [stdout] 20 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 28 | | token.created_at [INFO] [stdout] 29 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | let row = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT id, user_id, token_hash, expires_at, used, created_at [INFO] [stdout] 47 | | FROM password_reset_tokens [INFO] [stdout] ... | [INFO] [stdout] 53 | | OffsetDateTime::now_utc() [INFO] [stdout] 54 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | let rows = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 73 | | r#" [INFO] [stdout] 74 | | SELECT id, user_id, token_hash, expires_at, used, created_at [INFO] [stdout] 75 | | FROM password_reset_tokens [INFO] [stdout] ... | [INFO] [stdout] 80 | | OffsetDateTime::now_utc() [INFO] [stdout] 81 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 100 | | "UPDATE password_reset_tokens SET used = true WHERE id = $1", [INFO] [stdout] 101 | | id [INFO] [stdout] 102 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 115 | | "SELECT COUNT(*) FROM password_reset_tokens WHERE user_id = $1 AND created_at > $2", [INFO] [stdout] 116 | | user_id, [INFO] [stdout] 117 | | since [INFO] [stdout] 118 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 127 | | "DELETE FROM password_reset_tokens WHERE expires_at < $1", [INFO] [stdout] 128 | | OffsetDateTime::now_utc() [INFO] [stdout] 129 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 37 | | TimeEntry, [INFO] [stdout] 38 | | r#" [INFO] [stdout] 39 | | INSERT INTO time_entries (id, user_id, description, project_id, task_id, start_time, end_time) [INFO] [stdout] ... | [INFO] [stdout] 49 | | entry.end_time [INFO] [stdout] 50 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 59 | | ... TimeEntry, [INFO] [stdout] 60 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time_... [INFO] [stdout] 61 | | ... id, [INFO] [stdout] 62 | | ... user_id [INFO] [stdout] 63 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | ... TimeEntry, [INFO] [stdout] 73 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time_... [INFO] [stdout] 74 | | ... id [INFO] [stdout] 75 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 90 | | TimeEntry, [INFO] [stdout] 91 | | r#" [INFO] [stdout] 92 | | UPDATE time_entries [INFO] [stdout] ... | [INFO] [stdout] 103 | | entry.end_time [INFO] [stdout] 104 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 113 | | "DELETE FROM time_entries WHERE id = $1 AND user_id = $2", [INFO] [stdout] 114 | | id, [INFO] [stdout] 115 | | user_id [INFO] [stdout] 116 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | let result = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 129 | | TimeEntry, [INFO] [stdout] 130 | | r#" [INFO] [stdout] 131 | | UPDATE time_entries [INFO] [stdout] ... | [INFO] [stdout] 138 | | OffsetDateTime::now_utc() [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 147 | ... let result = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 148 | | ... TimeEntry, [INFO] [stdout] 149 | | ... "SELECT id, user_id, description, project_id, task_id, start_time, end_time, duration, created_at, updated_at FROM time... [INFO] [stdout] 150 | | ... user_id [INFO] [stdout] 151 | | ... ) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 18 | | User, [INFO] [stdout] 19 | | r#" [INFO] [stdout] 20 | | INSERT INTO users (id, first_name, email, password_hash, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 29 | | user.updated_at [INFO] [stdout] 30 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 39 | | User, [INFO] [stdout] 40 | | r#" [INFO] [stdout] 41 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 45 | | id [INFO] [stdout] 46 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 55 | | User, [INFO] [stdout] 56 | | r#" [INFO] [stdout] 57 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 61 | | email [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | let users = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 71 | | User, [INFO] [stdout] 72 | | r#" [INFO] [stdout] 73 | | SELECT id, first_name as name, email, password_hash, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 76 | | "# [INFO] [stdout] 77 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 92 | | User, [INFO] [stdout] 93 | | r#" [INFO] [stdout] 94 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 107 | | OffsetDateTime::now_utc() [INFO] [stdout] 108 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/app/repositories/user_repository.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 116 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/app/models/password_reset.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectInfo` and `HeaderMap` [INFO] [stdout] --> src/app/middleware/security.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | extract::{ConnectInfo, Request}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | http::{HeaderMap, HeaderName, HeaderValue, StatusCode}, [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: `net::SocketAddr` [INFO] [stdout] --> src/app/middleware/security.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | net::SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/app/middleware/security.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/app/middleware/security.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::OffsetDateTime` [INFO] [stdout] --> src/app/repositories/user_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use time::OffsetDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::extract::connect_info::ConnectInfo` [INFO] [stdout] --> src/build/web.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::extract::connect_info::ConnectInfo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/app/models/password_reset.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 44 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 65 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 106 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 184 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let result = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 309 | let result: /* Type */ = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let row = sqlx::query!( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | Ok(row.map(|r| PasswordResetToken { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `row` an explicit type [INFO] [stdout] | [INFO] [stdout] 44 | let row: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | Ok(rows [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | Ok(result.rows_affected() > 0) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 99 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 114 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 126 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 58 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 71 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 89 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | if result.rows_affected() == 0 { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 112 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | result.ok_or(TimeEntryError::TimerNotRunning) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 128 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 147 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/user_repository.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(result.rows_affected() > 0) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 116 | let result: /* Type */ = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 44 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 65 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 106 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 184 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/login_attempt_repository.rs:309:13 [INFO] [stdout] | [INFO] [stdout] 309 | let result = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 309 | let result: /* Type */ = sqlx::query!("DELETE FROM refresh_tokens WHERE expires_at < NOW()") [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let row = sqlx::query!( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | Ok(row.map(|r| PasswordResetToken { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `row` an explicit type [INFO] [stdout] | [INFO] [stdout] 44 | let row: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | Ok(rows [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | Ok(result.rows_affected() > 0) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 99 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let count = sqlx::query_scalar!( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | Ok(count.unwrap_or(0)) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `count` an explicit type [INFO] [stdout] | [INFO] [stdout] 114 | let count: /* Type */ = sqlx::query_scalar!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/password_reset_repository.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | Ok(result.rows_affected()) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 126 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 58 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 71 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 89 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | if result.rows_affected() == 0 { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 112 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | result.ok_or(TimeEntryError::TimerNotRunning) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 128 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/time_entry_repository.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | let result = sqlx::query_as!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | result.ok_or(TimeEntryError::NotFound) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 147 | let result: /* Type */ = sqlx::query_as!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/app/repositories/user_repository.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(result.rows_affected() > 0) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 116 | let result: /* Type */ = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/app/models/password_reset.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | let idx = rng.gen_range(0..CHARSET.len()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/app/models/password_reset.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | let idx = rng.gen_range(0..CHARSET.len()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/routes/auth.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Err(response) = check_registration_rate_limit(&state.security_state, &ip_address) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/routes/auth.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | if let Err(response) = check_password_reset_rate_limit(&state.security_state, &request.email) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chronos` (lib test) due to 51 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/routes/auth.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Err(response) = check_registration_rate_limit(&state.security_state, &ip_address) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/routes/auth.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | if let Err(response) = check_password_reset_rate_limit(&state.security_state, &request.email) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chronos` (lib) due to 51 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "007c17efc8a6a7366522f2de66caeb44aec12ccaeb5e5303a367c9e5d0d5bdfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "007c17efc8a6a7366522f2de66caeb44aec12ccaeb5e5303a367c9e5d0d5bdfa", kill_on_drop: false }` [INFO] [stdout] 007c17efc8a6a7366522f2de66caeb44aec12ccaeb5e5303a367c9e5d0d5bdfa