[INFO] cloning repository https://github.com/inoyyth/backend-jwt-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inoyyth/backend-jwt-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finoyyth%2Fbackend-jwt-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finoyyth%2Fbackend-jwt-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 88978bfd0dc6415b0b98ead714ec77765e157d47 [INFO] checking inoyyth/backend-jwt-api/88978bfd0dc6415b0b98ead714ec77765e157d47 against master#fe7294f8793d001bc3f9d197e7cdef6cdb46c15a for pr-153912 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finoyyth%2Fbackend-jwt-api" "/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/inoyyth/backend-jwt-api [INFO] finished tweaking git repo https://github.com/inoyyth/backend-jwt-api [INFO] tweaked toml for git repo https://github.com/inoyyth/backend-jwt-api written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/inoyyth/backend-jwt-api on toolchain fe7294f8793d001bc3f9d197e7cdef6cdb46c15a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/inoyyth/backend-jwt-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stringcase v0.4.0 [INFO] [stderr] Downloaded cookie_store v0.22.0 [INFO] [stderr] Downloaded bcrypt v0.17.1 [INFO] [stderr] Downloaded jsonwebtoken v10.2.0 [INFO] [stderr] Downloaded typed-path v0.12.2 [INFO] [stderr] Downloaded rsa v0.9.10 [INFO] [stderr] Downloaded reqwest v0.13.1 [INFO] [stderr] Downloaded zlib-rs v0.5.5 [INFO] [stderr] Downloaded aws-lc-rs v1.15.3 [INFO] [stderr] Downloaded rust_xlsxwriter v0.93.0 [INFO] [stderr] Downloaded aws-lc-sys v0.36.0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ffd40f39a9a3b95a05fd09eaa25d2dc98a0b5a1a2df16fb55e589ae1d9fb3549 [INFO] running `Command { std: "docker" "start" "-a" "ffd40f39a9a3b95a05fd09eaa25d2dc98a0b5a1a2df16fb55e589ae1d9fb3549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffd40f39a9a3b95a05fd09eaa25d2dc98a0b5a1a2df16fb55e589ae1d9fb3549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffd40f39a9a3b95a05fd09eaa25d2dc98a0b5a1a2df16fb55e589ae1d9fb3549", kill_on_drop: false }` [INFO] [stdout] ffd40f39a9a3b95a05fd09eaa25d2dc98a0b5a1a2df16fb55e589ae1d9fb3549 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0233a5352d95c6c3d439270d990544252e5349b1e5cf142f8791c728461cdb2d [INFO] running `Command { std: "docker" "start" "-a" "0233a5352d95c6c3d439270d990544252e5349b1e5cf142f8791c728461cdb2d", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling zmij v1.0.15 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling cc v1.2.53 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling aws-lc-sys v0.36.0 [INFO] [stderr] Compiling base64ct v1.8.3 [INFO] [stderr] Compiling aws-lc-rs v1.15.3 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Compiling time-core v0.1.7 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling time-macros v0.2.25 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Checking time v0.3.45 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling rsa v0.9.10 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking zlib-rs v0.5.5 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Checking bumpalo v3.19.1 [INFO] [stderr] Checking tungstenite v0.28.0 [INFO] [stderr] Checking zopfli v0.8.3 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking publicsuffix v2.3.0 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking flate2 v1.1.8 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking cookie v0.18.1 [INFO] [stderr] Compiling sqlx-mysql v0.8.6 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking typed-path v0.12.2 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking cookie_store v0.22.0 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Checking tokio-tungstenite v0.28.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking zip v7.2.0 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking bcrypt v0.17.1 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking rust_xlsxwriter v0.93.0 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking stringcase v0.4.0 [INFO] [stderr] Checking tokio-test v0.4.5 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking mockall v0.12.1 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking jsonwebtoken v10.2.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.13.1 [INFO] [stderr] Checking backend-api-jwt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/handlers/auth_handler/login_handler.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let user = sqlx::query_as!( [INFO] [stdout] | ________________^ [INFO] [stdout] 43 | | User, [INFO] [stdout] 44 | | "SELECT id, name, email, password, created_at, updated_at, image, deleted_at FROM users WHERE email = ?", [INFO] [stdout] 45 | | payload.email [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/handlers/auth_handler/register_handler.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | let user = sqlx::query!("SELECT id FROM users WHERE email = ?", payload.email) [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/handlers/auth_handler/register_handler.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 88 | | "INSERT INTO users (name, email, password) VALUES (?, ?, ?)", [INFO] [stdout] 89 | | payload.name, [INFO] [stdout] 90 | | payload.email, [INFO] [stdout] 91 | | password [INFO] [stdout] 92 | | ) [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/handlers/auth_handler/register_handler.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let user = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 103 | | r#"SELECT id, name, email, created_at, updated_at FROM users WHERE id = ?"#, [INFO] [stdout] 104 | | user_id [INFO] [stdout] 105 | | ) [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/handlers/document_handler.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | let _ = match sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 98 | | "INSERT INTO documents (name, file_id) VALUES (?, ?)", [INFO] [stdout] 99 | | payload.name, [INFO] [stdout] 100 | | cloudinary_response.secure_url [INFO] [stdout] 101 | | ) [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/handlers/user_handler/user_handler.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | match sqlx::query!("SELECT COUNT(*) as total FROM users WHERE deleted_at IS NULL") [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/handlers/user_handler/user_handler.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 54 | | User, [INFO] [stdout] 55 | | " [INFO] [stdout] 56 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 65 | | offset, [INFO] [stdout] 66 | | ) [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/handlers/user_handler/user_handler.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | let user = sqlx::query!("SELECT id FROM users WHERE email = ?", payload.email) [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/handlers/user_handler/user_handler.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 183 | | "INSERT INTO users (name, email, image, password) VALUES (?, ?, ?, ?)", [INFO] [stdout] 184 | | payload.name, [INFO] [stdout] 185 | | payload.email, [INFO] [stdout] 186 | | image_cloudinary, [INFO] [stdout] 187 | | hashed.unwrap() [INFO] [stdout] 188 | | ) [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/handlers/user_handler/user_handler.rs:198:24 [INFO] [stdout] | [INFO] [stdout] 198 | let user = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 199 | | r#"SELECT id, name, email, image, created_at, updated_at FROM users WHERE id = ?"#, [INFO] [stdout] 200 | | user_id [INFO] [stdout] 201 | | ) [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/handlers/user_handler/user_handler.rs:250:23 [INFO] [stdout] | [INFO] [stdout] 250 | let users = match sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 251 | | " [INFO] [stdout] 252 | | SELECT id, name, email, password, image, created_at, updated_at [INFO] [stdout] 253 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 257 | | id [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` (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/handlers/user_handler/user_handler.rs:336:28 [INFO] [stdout] | [INFO] [stdout] 336 | let user_exist = match sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 337 | | " [INFO] [stdout] 338 | | SELECT id, image [INFO] [stdout] 339 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 343 | | id [INFO] [stdout] 344 | | ) [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/handlers/user_handler/user_handler.rs:364:24 [INFO] [stdout] | [INFO] [stdout] 364 | let email_exists = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 365 | | " [INFO] [stdout] 366 | | SELECT id [INFO] [stdout] 367 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 373 | | user_exist.id [INFO] [stdout] 374 | | ) [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/handlers/user_handler/user_handler.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | / sqlx::query!( [INFO] [stdout] 405 | | " [INFO] [stdout] 406 | | UPDATE users [INFO] [stdout] 407 | | SET name = ?, email = ?, password = ?, image = ? [INFO] [stdout] ... | [INFO] [stdout] 414 | | id [INFO] [stdout] 415 | | ) [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/handlers/user_handler/user_handler.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | / sqlx::query!( [INFO] [stdout] 422 | | "UPDATE users SET name = ?, email = ?, image = ? WHERE id = ?", [INFO] [stdout] 423 | | payload.name, [INFO] [stdout] 424 | | payload.email, [INFO] [stdout] 425 | | image_cloudinary, [INFO] [stdout] 426 | | id [INFO] [stdout] 427 | | ) [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/handlers/user_handler/user_handler.rs:442:16 [INFO] [stdout] | [INFO] [stdout] 442 | let user = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 443 | | r#" [INFO] [stdout] 444 | | SELECT id, name, email, image, created_at, updated_at [INFO] [stdout] 445 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 448 | | id [INFO] [stdout] 449 | | ) [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/handlers/user_handler/user_handler.rs:478:28 [INFO] [stdout] | [INFO] [stdout] 478 | let user_exist = match sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 479 | | " [INFO] [stdout] 480 | | SELECT id [INFO] [stdout] 481 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 485 | | id [INFO] [stdout] 486 | | ) [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/handlers/user_handler/user_handler.rs:506:18 [INFO] [stdout] | [INFO] [stdout] 506 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 507 | | " [INFO] [stdout] 508 | | UPDATE users [INFO] [stdout] 509 | | SET deleted_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 512 | | user_exist.id [INFO] [stdout] 513 | | ) [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/handlers/user_handler/user_handler.rs:747:23 [INFO] [stdout] | [INFO] [stdout] 747 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 748 | | User, [INFO] [stdout] 749 | | " [INFO] [stdout] 750 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 759 | | offset [INFO] [stdout] 760 | | ) [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/handlers/user_handler/user_handler.rs:966:23 [INFO] [stdout] | [INFO] [stdout] 966 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 967 | | User, [INFO] [stdout] 968 | | " [INFO] [stdout] 969 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 978 | | offset [INFO] [stdout] 979 | | ) [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] warning: unused import: `crate::models::user::User` [INFO] [stdout] --> src/handlers/auth_handler/login_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::user::User; [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: `super::*` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::user::User` [INFO] [stdout] --> src/handlers/user_handler/user_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::models::user::User; [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/handlers/auth_handler/login_handler.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let user = sqlx::query_as!( [INFO] [stdout] | ________________^ [INFO] [stdout] 43 | | User, [INFO] [stdout] 44 | | "SELECT id, name, email, password, created_at, updated_at, image, deleted_at FROM users WHERE email = ?", [INFO] [stdout] 45 | | payload.email [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/handlers/auth_handler/register_handler.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | let user = sqlx::query!("SELECT id FROM users WHERE email = ?", payload.email) [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/handlers/auth_handler/register_handler.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 88 | | "INSERT INTO users (name, email, password) VALUES (?, ?, ?)", [INFO] [stdout] 89 | | payload.name, [INFO] [stdout] 90 | | payload.email, [INFO] [stdout] 91 | | password [INFO] [stdout] 92 | | ) [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/handlers/auth_handler/register_handler.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let user = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 103 | | r#"SELECT id, name, email, created_at, updated_at FROM users WHERE id = ?"#, [INFO] [stdout] 104 | | user_id [INFO] [stdout] 105 | | ) [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/handlers/document_handler.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | let _ = match sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 98 | | "INSERT INTO documents (name, file_id) VALUES (?, ?)", [INFO] [stdout] 99 | | payload.name, [INFO] [stdout] 100 | | cloudinary_response.secure_url [INFO] [stdout] 101 | | ) [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/handlers/user_handler/user_handler.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | match sqlx::query!("SELECT COUNT(*) as total FROM users WHERE deleted_at IS NULL") [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/handlers/user_handler/user_handler.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 54 | | User, [INFO] [stdout] 55 | | " [INFO] [stdout] 56 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 65 | | offset, [INFO] [stdout] 66 | | ) [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/handlers/user_handler/user_handler.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | let user = sqlx::query!("SELECT id FROM users WHERE email = ?", payload.email) [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/handlers/user_handler/user_handler.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 183 | | "INSERT INTO users (name, email, image, password) VALUES (?, ?, ?, ?)", [INFO] [stdout] 184 | | payload.name, [INFO] [stdout] 185 | | payload.email, [INFO] [stdout] 186 | | image_cloudinary, [INFO] [stdout] 187 | | hashed.unwrap() [INFO] [stdout] 188 | | ) [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/handlers/user_handler/user_handler.rs:198:24 [INFO] [stdout] | [INFO] [stdout] 198 | let user = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 199 | | r#"SELECT id, name, email, image, created_at, updated_at FROM users WHERE id = ?"#, [INFO] [stdout] 200 | | user_id [INFO] [stdout] 201 | | ) [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/handlers/user_handler/user_handler.rs:250:23 [INFO] [stdout] | [INFO] [stdout] 250 | let users = match sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 251 | | " [INFO] [stdout] 252 | | SELECT id, name, email, password, image, created_at, updated_at [INFO] [stdout] 253 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 257 | | id [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` (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/handlers/user_handler/user_handler.rs:336:28 [INFO] [stdout] | [INFO] [stdout] 336 | let user_exist = match sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 337 | | " [INFO] [stdout] 338 | | SELECT id, image [INFO] [stdout] 339 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 343 | | id [INFO] [stdout] 344 | | ) [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/handlers/user_handler/user_handler.rs:364:24 [INFO] [stdout] | [INFO] [stdout] 364 | let email_exists = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 365 | | " [INFO] [stdout] 366 | | SELECT id [INFO] [stdout] 367 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 373 | | user_exist.id [INFO] [stdout] 374 | | ) [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/handlers/user_handler/user_handler.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | / sqlx::query!( [INFO] [stdout] 405 | | " [INFO] [stdout] 406 | | UPDATE users [INFO] [stdout] 407 | | SET name = ?, email = ?, password = ?, image = ? [INFO] [stdout] ... | [INFO] [stdout] 414 | | id [INFO] [stdout] 415 | | ) [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/handlers/user_handler/user_handler.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | / sqlx::query!( [INFO] [stdout] 422 | | "UPDATE users SET name = ?, email = ?, image = ? WHERE id = ?", [INFO] [stdout] 423 | | payload.name, [INFO] [stdout] 424 | | payload.email, [INFO] [stdout] 425 | | image_cloudinary, [INFO] [stdout] 426 | | id [INFO] [stdout] 427 | | ) [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/handlers/user_handler/user_handler.rs:442:16 [INFO] [stdout] | [INFO] [stdout] 442 | let user = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 443 | | r#" [INFO] [stdout] 444 | | SELECT id, name, email, image, created_at, updated_at [INFO] [stdout] 445 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 448 | | id [INFO] [stdout] 449 | | ) [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/handlers/user_handler/user_handler.rs:478:28 [INFO] [stdout] | [INFO] [stdout] 478 | let user_exist = match sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 479 | | " [INFO] [stdout] 480 | | SELECT id [INFO] [stdout] 481 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 485 | | id [INFO] [stdout] 486 | | ) [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/handlers/user_handler/user_handler.rs:506:18 [INFO] [stdout] | [INFO] [stdout] 506 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 507 | | " [INFO] [stdout] 508 | | UPDATE users [INFO] [stdout] 509 | | SET deleted_at = NOW() [INFO] [stdout] ... | [INFO] [stdout] 512 | | user_exist.id [INFO] [stdout] 513 | | ) [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/handlers/user_handler/user_handler.rs:747:23 [INFO] [stdout] | [INFO] [stdout] 747 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 748 | | User, [INFO] [stdout] 749 | | " [INFO] [stdout] 750 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 759 | | offset [INFO] [stdout] 760 | | ) [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/handlers/user_handler/user_handler.rs:966:23 [INFO] [stdout] | [INFO] [stdout] 966 | let users = match sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 967 | | User, [INFO] [stdout] 968 | | " [INFO] [stdout] 969 | | SELECT id, name, email, password, image, created_at, updated_at, deleted_at [INFO] [stdout] ... | [INFO] [stdout] 978 | | offset [INFO] [stdout] 979 | | ) [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] warning: unused import: `crate::models::user::User` [INFO] [stdout] --> src/handlers/auth_handler/login_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pagination`, `UserQuery`, `UserResponse`, `UserStoreResponse`, and `utils::response::ApiResponse` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | Pagination, UserQuery, UserResponse, UserStoreRequest, UserStoreResponse, UserUpdateRequest, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | }, [INFO] [stdout] 5 | utils::response::ApiResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::StatusCode` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use reqwest::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `json` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::{Value, json}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `validator::Validate` [INFO] [stdout] --> src/handlers/user_handler/tests.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use validator::Validate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::user::User` [INFO] [stdout] --> src/handlers/user_handler/user_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::models::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `backend-api-jwt` (bin "backend-api-jwt" test) due to 20 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `backend-api-jwt` (bin "backend-api-jwt") due to 20 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0233a5352d95c6c3d439270d990544252e5349b1e5cf142f8791c728461cdb2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0233a5352d95c6c3d439270d990544252e5349b1e5cf142f8791c728461cdb2d", kill_on_drop: false }` [INFO] [stdout] 0233a5352d95c6c3d439270d990544252e5349b1e5cf142f8791c728461cdb2d