[INFO] cloning repository https://github.com/vipankumar87/secureshare_backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vipankumar87/secureshare_backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvipankumar87%2Fsecureshare_backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvipankumar87%2Fsecureshare_backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4bcbb9309119fb16250ab67914a695224be1cfb6 [INFO] checking vipankumar87/secureshare_backend against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvipankumar87%2Fsecureshare_backend" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vipankumar87/secureshare_backend [INFO] finished tweaking git repo https://github.com/vipankumar87/secureshare_backend [INFO] tweaked toml for git repo https://github.com/vipankumar87/secureshare_backend written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vipankumar87/secureshare_backend on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vipankumar87/secureshare_backend 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" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator v0.18.1 [INFO] [stderr] Downloaded validator_derive v0.18.2 [INFO] [stderr] Downloaded block-modes v0.9.1 [INFO] [stderr] Downloaded security-framework-sys v2.12.0 [INFO] [stderr] Downloaded croner v2.0.6 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.2 [INFO] [stderr] Downloaded axum-extra v0.9.4 [INFO] [stderr] Downloaded hyper-util v0.1.9 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.2 [INFO] [stderr] Downloaded axum v0.7.7 [INFO] [stderr] Downloaded sqlx-mysql v0.8.2 [INFO] [stderr] Downloaded async-std v1.13.0 [INFO] [stderr] Downloaded sqlx v0.8.2 [INFO] [stderr] Downloaded sqlx-postgres v0.8.2 [INFO] [stderr] Downloaded sqlx-core v0.8.2 [INFO] [stderr] Downloaded tower-http v0.6.1 [INFO] [stderr] Downloaded polling v3.7.3 [INFO] [stderr] Downloaded cc v1.1.24 [INFO] [stderr] Downloaded tokio-cron-scheduler v0.13.0 [INFO] [stderr] Downloaded jsonwebtoken v9.3.0 [INFO] [stderr] Downloaded async-io v2.3.4 [INFO] [stderr] Downloaded async-executor v1.13.1 [INFO] [stderr] Downloaded tempfile v3.13.0 [INFO] [stderr] Downloaded value-bag v1.9.0 [INFO] [stderr] Downloaded once_cell v1.20.1 [INFO] [stderr] Downloaded pem v3.0.4 [INFO] [stderr] Downloaded sqlx-macros v0.8.2 [INFO] [stderr] Downloaded async-global-executor v2.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23e7c6579cd85be90b7a5f9cd61be3e366a857ef011f1b63f5d9f7d768b881b8 [INFO] running `Command { std: "docker" "start" "-a" "23e7c6579cd85be90b7a5f9cd61be3e366a857ef011f1b63f5d9f7d768b881b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23e7c6579cd85be90b7a5f9cd61be3e366a857ef011f1b63f5d9f7d768b881b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23e7c6579cd85be90b7a5f9cd61be3e366a857ef011f1b63f5d9f7d768b881b8", kill_on_drop: false }` [INFO] [stdout] 23e7c6579cd85be90b7a5f9cd61be3e366a857ef011f1b63f5d9f7d768b881b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45b977de975afe99f44b164205a0ce1f26f6d04c1d4ad6f729e53b04136e1e3c [INFO] running `Command { std: "docker" "start" "-a" "45b977de975afe99f44b164205a0ce1f26f6d04c1d4ad6f729e53b04136e1e3c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking once_cell v1.20.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Checking value-bag v1.9.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking polling v3.7.3 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tower v0.5.1 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking hyper-util v0.1.9 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling tokio-cron-scheduler v0.13.0 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking regex v1.11.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking axum v0.7.7 [INFO] [stderr] Checking croner v2.0.6 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking validator v0.18.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking rsa v0.9.6 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking tower-http v0.6.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking block-modes v0.9.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking axum-extra v0.9.4 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking secureshare_backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | length(min = 6, message = "Password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | length(min = 6, message = "Password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | length(min = 6, message = "Password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | length(min = 6, message = "Password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | length(min = 6, message = "new password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | length(min = 6, message = "new password confirm must be at least 6 characters"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | length(min = 6, message = "Old password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | length(min = 6, message = "new password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | length(min = 6, message = "New password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | length(min = 6, message = "new password confirm must be at least 6 characters"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Unexpected type `string` [INFO] [stdout] --> src/dtos.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | #[validate(custom = "validate_expiration_date")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | length(min = 6, message = "Old password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | length(min = 6, message = "Password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | length(min = 6, message = "New password must be at least 6 characters") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Unexpected type `string` [INFO] [stdout] --> src/dtos.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | #[validate(custom = "validate_expiration_date")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Duplicate field `length` [INFO] [stdout] --> src/dtos.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | length(min = 6, message = "Password must be at least 6 characters") [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/db.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 107 | | User, [INFO] [stdout] 108 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE id = $1"#, [INFO] [stdout] 109 | | user_id [INFO] [stdout] 110 | | ).fetch_optional(&self.pool).await?; [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/db.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 113 | | User, [INFO] [stdout] 114 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE name = $1"#, [INFO] [stdout] 115 | | name [INFO] [stdout] 116 | | ).fetch_optional(&self.pool).await?; [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/db.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 119 | | User, [INFO] [stdout] 120 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE email = $1"#, [INFO] [stdout] 121 | | email [INFO] [stdout] 122 | | ).fetch_optional(&self.pool).await?; [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/db.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 135 | | User, [INFO] [stdout] 136 | | r#" [INFO] [stdout] 137 | | INSERT INTO users (name, email, password) [INFO] [stdout] ... | [INFO] [stdout] 143 | | password.into() [INFO] [stdout] 144 | | ) [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/db.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 156 | | User, [INFO] [stdout] 157 | | r#" [INFO] [stdout] 158 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 164 | | user_id [INFO] [stdout] 165 | | ) [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/db.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 178 | | User, [INFO] [stdout] 179 | | r#" [INFO] [stdout] 180 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 186 | | user_id [INFO] [stdout] 187 | | ) [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/db.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | / sqlx::query_as!( [INFO] [stdout] 196 | | User, [INFO] [stdout] 197 | | r#" [INFO] [stdout] 198 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 204 | | user_id [INFO] [stdout] 205 | | ) [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/db.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 216 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 217 | | User, [INFO] [stdout] 218 | | r#" [INFO] [stdout] 219 | | SELECT id, name, email, password, public_key, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 226 | | user_id [INFO] [stdout] 227 | | ) [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/db.rs:246:29 [INFO] [stdout] | [INFO] [stdout] 246 | let file_id: Uuid = sqlx::query_scalar!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 247 | | r#" [INFO] [stdout] 248 | | INSERT INTO files (user_id, file_name, file_size, encrypted_aes_key, encrypted_file, iv, created_at) [INFO] [stdout] 249 | | VALUES ($1, $2, $3, $4, $5, $6, NOW()) [INFO] [stdout] ... | [INFO] [stdout] 257 | | iv [INFO] [stdout] 258 | | ) [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/db.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | / sqlx::query!( [INFO] [stdout] 264 | | r#" [INFO] [stdout] 265 | | INSERT INTO shared_links (file_id, recipient_user_id, password, expiration_date, created_at) [INFO] [stdout] 266 | | VALUES ($1, $2, $3, $4, NOW()) [INFO] [stdout] ... | [INFO] [stdout] 271 | | expiration_date [INFO] [stdout] 272 | | ) [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/db.rs:284:27 [INFO] [stdout] | [INFO] [stdout] 284 | let shared_link = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 285 | | SharedLink, [INFO] [stdout] 286 | | r#" [INFO] [stdout] 287 | | SELECT id, file_id, recipient_user_id, password, expiration_date, created_at [INFO] [stdout] ... | [INFO] [stdout] 294 | | user_id, [INFO] [stdout] 295 | | ) [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/db.rs:306:20 [INFO] [stdout] | [INFO] [stdout] 306 | let file = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 307 | | File, [INFO] [stdout] 308 | | r#" [INFO] [stdout] 309 | | SELECT id, user_id, file_name, file_size, encrypted_aes_key, encrypted_file, iv, created_at [INFO] [stdout] ... | [INFO] [stdout] 313 | | file_id [INFO] [stdout] 314 | | ) [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/db.rs:328:21 [INFO] [stdout] | [INFO] [stdout] 328 | let files = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 329 | | SentFileDetails, [INFO] [stdout] 330 | | r#" [INFO] [stdout] 331 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 352 | | offset as i64, [INFO] [stdout] 353 | | ) [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/db.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | let count_row = sqlx::query_scalar!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 358 | | r#" [INFO] [stdout] 359 | | SELECT COUNT(*) [INFO] [stdout] 360 | | FROM shared_links sl [INFO] [stdout] ... | [INFO] [stdout] 364 | | user_id, [INFO] [stdout] 365 | | ) [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/db.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | let files = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 383 | | ReceiveFileDetails, [INFO] [stdout] 384 | | r#" [INFO] [stdout] 385 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 406 | | offset as i64, [INFO] [stdout] 407 | | ) [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/db.rs:411:25 [INFO] [stdout] | [INFO] [stdout] 411 | let count_row = sqlx::query_scalar!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 412 | | r#" [INFO] [stdout] 413 | | SELECT COUNT(*) [INFO] [stdout] 414 | | FROM shared_links sl [INFO] [stdout] ... | [INFO] [stdout] 418 | | user_id, [INFO] [stdout] 419 | | ) [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/db.rs:432:47 [INFO] [stdout] | [INFO] [stdout] 432 | let expired_shared_links: Vec = sqlx::query_scalar!( [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 433 | | r#" [INFO] [stdout] 434 | | SELECT sl.id [INFO] [stdout] 435 | | FROM shared_links sl [INFO] [stdout] 436 | | WHERE sl.expiration_date < NOW() [INFO] [stdout] 437 | | "#, [INFO] [stdout] 438 | | ). [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/db.rs:447:43 [INFO] [stdout] | [INFO] [stdout] 447 | let expired_file_ids: Vec = sqlx::query_scalar!( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 448 | | r#" [INFO] [stdout] 449 | | SELECT f.id [INFO] [stdout] 450 | | FROM files f [INFO] [stdout] ... | [INFO] [stdout] 456 | | "#, [INFO] [stdout] 457 | | ) [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/db.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | / sqlx::query!( [INFO] [stdout] 462 | | r#" [INFO] [stdout] 463 | | DELETE FROM shared_links [INFO] [stdout] 464 | | WHERE id = ANY($1) [INFO] [stdout] 465 | | "#, [INFO] [stdout] 466 | | &expired_shared_links[..] // Pass the list of expired shared link IDs [INFO] [stdout] 467 | | ) [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/db.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 472 | / sqlx::query!( [INFO] [stdout] 473 | | r#" [INFO] [stdout] 474 | | DELETE FROM files [INFO] [stdout] 475 | | WHERE id = ANY($1) [INFO] [stdout] 476 | | "#, [INFO] [stdout] 477 | | &expired_file_ids[..] // Pass the list of expired file IDs [INFO] [stdout] 478 | | ) [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/db.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 107 | | User, [INFO] [stdout] 108 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE id = $1"#, [INFO] [stdout] 109 | | user_id [INFO] [stdout] 110 | | ).fetch_optional(&self.pool).await?; [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/db.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 113 | | User, [INFO] [stdout] 114 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE name = $1"#, [INFO] [stdout] 115 | | name [INFO] [stdout] 116 | | ).fetch_optional(&self.pool).await?; [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/db.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 119 | | User, [INFO] [stdout] 120 | | r#"SELECT id, name, email, password, public_key, created_at, updated_at FROM users WHERE email = $1"#, [INFO] [stdout] 121 | | email [INFO] [stdout] 122 | | ).fetch_optional(&self.pool).await?; [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/db.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 135 | | User, [INFO] [stdout] 136 | | r#" [INFO] [stdout] 137 | | INSERT INTO users (name, email, password) [INFO] [stdout] ... | [INFO] [stdout] 143 | | password.into() [INFO] [stdout] 144 | | ) [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/db.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 156 | | User, [INFO] [stdout] 157 | | r#" [INFO] [stdout] 158 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 164 | | user_id [INFO] [stdout] 165 | | ) [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/db.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 178 | | User, [INFO] [stdout] 179 | | r#" [INFO] [stdout] 180 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 186 | | user_id [INFO] [stdout] 187 | | ) [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/db.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | / sqlx::query_as!( [INFO] [stdout] 196 | | User, [INFO] [stdout] 197 | | r#" [INFO] [stdout] 198 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 204 | | user_id [INFO] [stdout] 205 | | ) [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/db.rs:216:20 [INFO] [stdout] | [INFO] [stdout] 216 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 217 | | User, [INFO] [stdout] 218 | | r#" [INFO] [stdout] 219 | | SELECT id, name, email, password, public_key, created_at, updated_at [INFO] [stdout] ... | [INFO] [stdout] 226 | | user_id [INFO] [stdout] 227 | | ) [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/db.rs:246:29 [INFO] [stdout] | [INFO] [stdout] 246 | let file_id: Uuid = sqlx::query_scalar!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 247 | | r#" [INFO] [stdout] 248 | | INSERT INTO files (user_id, file_name, file_size, encrypted_aes_key, encrypted_file, iv, created_at) [INFO] [stdout] 249 | | VALUES ($1, $2, $3, $4, $5, $6, NOW()) [INFO] [stdout] ... | [INFO] [stdout] 257 | | iv [INFO] [stdout] 258 | | ) [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/db.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | / sqlx::query!( [INFO] [stdout] 264 | | r#" [INFO] [stdout] 265 | | INSERT INTO shared_links (file_id, recipient_user_id, password, expiration_date, created_at) [INFO] [stdout] 266 | | VALUES ($1, $2, $3, $4, NOW()) [INFO] [stdout] ... | [INFO] [stdout] 271 | | expiration_date [INFO] [stdout] 272 | | ) [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/db.rs:284:27 [INFO] [stdout] | [INFO] [stdout] 284 | let shared_link = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 285 | | SharedLink, [INFO] [stdout] 286 | | r#" [INFO] [stdout] 287 | | SELECT id, file_id, recipient_user_id, password, expiration_date, created_at [INFO] [stdout] ... | [INFO] [stdout] 294 | | user_id, [INFO] [stdout] 295 | | ) [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/db.rs:306:20 [INFO] [stdout] | [INFO] [stdout] 306 | let file = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 307 | | File, [INFO] [stdout] 308 | | r#" [INFO] [stdout] 309 | | SELECT id, user_id, file_name, file_size, encrypted_aes_key, encrypted_file, iv, created_at [INFO] [stdout] ... | [INFO] [stdout] 313 | | file_id [INFO] [stdout] 314 | | ) [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/db.rs:328:21 [INFO] [stdout] | [INFO] [stdout] 328 | let files = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 329 | | SentFileDetails, [INFO] [stdout] 330 | | r#" [INFO] [stdout] 331 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 352 | | offset as i64, [INFO] [stdout] 353 | | ) [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/db.rs:357:25 [INFO] [stdout] | [INFO] [stdout] 357 | let count_row = sqlx::query_scalar!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 358 | | r#" [INFO] [stdout] 359 | | SELECT COUNT(*) [INFO] [stdout] 360 | | FROM shared_links sl [INFO] [stdout] ... | [INFO] [stdout] 364 | | user_id, [INFO] [stdout] 365 | | ) [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/db.rs:382:21 [INFO] [stdout] | [INFO] [stdout] 382 | let files = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 383 | | ReceiveFileDetails, [INFO] [stdout] 384 | | r#" [INFO] [stdout] 385 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 406 | | offset as i64, [INFO] [stdout] 407 | | ) [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/db.rs:411:25 [INFO] [stdout] | [INFO] [stdout] 411 | let count_row = sqlx::query_scalar!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 412 | | r#" [INFO] [stdout] 413 | | SELECT COUNT(*) [INFO] [stdout] 414 | | FROM shared_links sl [INFO] [stdout] ... | [INFO] [stdout] 418 | | user_id, [INFO] [stdout] 419 | | ) [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/db.rs:432:47 [INFO] [stdout] | [INFO] [stdout] 432 | let expired_shared_links: Vec = sqlx::query_scalar!( [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 433 | | r#" [INFO] [stdout] 434 | | SELECT sl.id [INFO] [stdout] 435 | | FROM shared_links sl [INFO] [stdout] 436 | | WHERE sl.expiration_date < NOW() [INFO] [stdout] 437 | | "#, [INFO] [stdout] 438 | | ). [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/db.rs:447:43 [INFO] [stdout] | [INFO] [stdout] 447 | let expired_file_ids: Vec = sqlx::query_scalar!( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 448 | | r#" [INFO] [stdout] 449 | | SELECT f.id [INFO] [stdout] 450 | | FROM files f [INFO] [stdout] ... | [INFO] [stdout] 456 | | "#, [INFO] [stdout] 457 | | ) [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/db.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | / sqlx::query!( [INFO] [stdout] 462 | | r#" [INFO] [stdout] 463 | | DELETE FROM shared_links [INFO] [stdout] 464 | | WHERE id = ANY($1) [INFO] [stdout] 465 | | "#, [INFO] [stdout] 466 | | &expired_shared_links[..] // Pass the list of expired shared link IDs [INFO] [stdout] 467 | | ) [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/db.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 472 | / sqlx::query!( [INFO] [stdout] 473 | | r#" [INFO] [stdout] 474 | | DELETE FROM files [INFO] [stdout] 475 | | WHERE id = ANY($1) [INFO] [stdout] 476 | | "#, [INFO] [stdout] 477 | | &expired_file_ids[..] // Pass the list of expired file IDs [INFO] [stdout] 478 | | ) [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[E0432]: unresolved import `crate::models` [INFO] [stdout] --> src/dtos.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::{ReceiveFileDetails, SentFileDetails, User}; [INFO] [stdout] | ^^^^^^ could not find `models` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::models` [INFO] [stdout] --> src/db.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::{File, ReceiveFileDetails, SentFileDetails, SharedLink, User}; [INFO] [stdout] | ^^^^^^ could not find `models` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgConnectOptions`, `PgConnection`, `Pool`, and `Postgres` [INFO] [stdout] --> src/main.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{postgres::{PgConnectOptions, PgPoolOptions}, PgConnection, Pool, Postgres}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::models` [INFO] [stdout] --> src/dtos.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::{ReceiveFileDetails, SentFileDetails, User}; [INFO] [stdout] | ^^^^^^ could not find `models` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::models` [INFO] [stdout] --> src/db.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::{File, ReceiveFileDetails, SentFileDetails, SharedLink, User}; [INFO] [stdout] | ^^^^^^ could not find `models` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgConnectOptions`, `PgConnection`, `Pool`, and `Postgres` [INFO] [stdout] --> src/main.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{postgres::{PgConnectOptions, PgPoolOptions}, PgConnection, Pool, Postgres}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let pool = match PgPoolOptions::new() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `secureshare_backend` (bin "secureshare_backend") due to 30 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let pool = match PgPoolOptions::new() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `secureshare_backend` (bin "secureshare_backend" test) due to 30 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "45b977de975afe99f44b164205a0ce1f26f6d04c1d4ad6f729e53b04136e1e3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45b977de975afe99f44b164205a0ce1f26f6d04c1d4ad6f729e53b04136e1e3c", kill_on_drop: false }` [INFO] [stdout] 45b977de975afe99f44b164205a0ce1f26f6d04c1d4ad6f729e53b04136e1e3c