[INFO] cloning repository https://github.com/Khushipatel31/ecommerce_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Khushipatel31/ecommerce_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhushipatel31%2Fecommerce_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhushipatel31%2Fecommerce_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 689a941ecaaf1948f6f644a58a3e4b62f97579cb [INFO] checking Khushipatel31/ecommerce_rust/689a941ecaaf1948f6f644a58a3e4b62f97579cb against master#a2db9280539229a3b8a084a09886670a57bc7e9c for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhushipatel31%2Fecommerce_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Khushipatel31/ecommerce_rust [INFO] finished tweaking git repo https://github.com/Khushipatel31/ecommerce_rust [INFO] tweaked toml for git repo https://github.com/Khushipatel31/ecommerce_rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Khushipatel31/ecommerce_rust on toolchain a2db9280539229a3b8a084a09886670a57bc7e9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Khushipatel31/ecommerce_rust 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" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytecheck_derive v0.6.12 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded tokio-cron-scheduler v0.9.4 [INFO] [stderr] Downloaded rkyv_derive v0.7.45 [INFO] [stderr] Downloaded validator_derive v0.17.0 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded cron v0.12.1 [INFO] [stderr] Downloaded clickhouse-derive v0.1.1 [INFO] [stderr] Downloaded email_address v0.2.9 [INFO] [stderr] Downloaded sealed v0.4.0 [INFO] [stderr] Downloaded clickhouse-rs-cityhash-sys v0.1.2 [INFO] [stderr] Downloaded email-encoding v0.4.1 [INFO] [stderr] Downloaded quoted_printable v0.5.1 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded hostname v0.4.1 [INFO] [stderr] Downloaded bytecheck v0.6.12 [INFO] [stderr] Downloaded rend v0.4.2 [INFO] [stderr] Downloaded serde_derive_internals v0.26.0 [INFO] [stderr] Downloaded validator v0.17.0 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded jiff-static v0.2.14 [INFO] [stderr] Downloaded clickhouse v0.11.6 [INFO] [stderr] Downloaded rkyv v0.7.45 [INFO] [stderr] Downloaded cc v1.2.26 [INFO] [stderr] Downloaded rust_decimal v1.37.1 [INFO] [stderr] Downloaded chumsky v0.9.3 [INFO] [stderr] Downloaded rdkafka v0.36.2 [INFO] [stderr] Downloaded lettre v0.11.17 [INFO] [stderr] Downloaded jiff v0.2.14 [INFO] [stderr] Downloaded rdkafka-sys v4.8.0+2.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 290ade567a6c0d0405253ef9f538cb737f9b0c57d160b54f960c4fa00b467d9a [INFO] running `Command { std: "docker" "start" "-a" "290ade567a6c0d0405253ef9f538cb737f9b0c57d160b54f960c4fa00b467d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "290ade567a6c0d0405253ef9f538cb737f9b0c57d160b54f960c4fa00b467d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "290ade567a6c0d0405253ef9f538cb737f9b0c57d160b54f960c4fa00b467d9a", kill_on_drop: false }` [INFO] [stdout] 290ade567a6c0d0405253ef9f538cb737f9b0c57d160b54f960c4fa00b467d9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 555b30735b004124af487c240354045c30210c373fc3a676172fb67efe1a4b25 [INFO] running `Command { std: "docker" "start" "-a" "555b30735b004124af487c240354045c30210c373fc3a676172fb67efe1a4b25", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling rust_decimal v1.37.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking miniz_oxide v0.8.8 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling lz4-sys v1.11.1+lz4-1.10.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking brotli v8.0.1 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling clickhouse-rs-cityhash-sys v0.1.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling rdkafka-sys v4.8.0+2.3.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Compiling tokio-cron-scheduler v0.9.4 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Compiling clickhouse-derive v0.1.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Compiling validator_derive v0.17.0 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking cron v0.12.1 [INFO] [stderr] Compiling sealed v0.4.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking hostname v0.4.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking bstr v1.12.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking jiff v0.2.14 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking validator v0.17.0 [INFO] [stderr] Checking actix-cors v0.7.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking lettre v0.11.17 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking lz4 v1.28.1 [INFO] [stderr] Checking clickhouse v0.11.6 [INFO] [stderr] Checking rdkafka v0.36.2 [INFO] [stderr] Checking ecommerce_app 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/order_handler.rs:214:34 [INFO] [stdout] | [INFO] [stdout] 214 | let user = match sqlx::query!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 215 | | "SELECT name,email FROM users WHERE id = $1", [INFO] [stdout] 216 | | updated_order.order.user_id [INFO] [stdout] 217 | | ) [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/middlewares/auth_middleware.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | let user_result = sqlx::query!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 95 | | "SELECT id, role, is_active FROM users WHERE id = $1", [INFO] [stdout] 96 | | user_id [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (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/order_handler.rs:214:34 [INFO] [stdout] | [INFO] [stdout] 214 | let user = match sqlx::query!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 215 | | "SELECT name,email FROM users WHERE id = $1", [INFO] [stdout] 216 | | updated_order.order.user_id [INFO] [stdout] 217 | | ) [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/middlewares/auth_middleware.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | let user_result = sqlx::query!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 95 | | "SELECT id, role, is_active FROM users WHERE id = $1", [INFO] [stdout] 96 | | user_id [INFO] [stdout] 97 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (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/services/category_service.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / sqlx::query_as!( [INFO] [stdout] 24 | | Category, [INFO] [stdout] 25 | | r#" [INFO] [stdout] 26 | | INSERT INTO categories (name, slug) [INFO] [stdout] ... | [INFO] [stdout] 31 | | slug [INFO] [stdout] 32 | | ) [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/services/category_service.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / sqlx::query_as!( [INFO] [stdout] 46 | | Category, [INFO] [stdout] 47 | | r#" [INFO] [stdout] 48 | | UPDATE categories [INFO] [stdout] ... | [INFO] [stdout] 56 | | id [INFO] [stdout] 57 | | ) [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/services/category_service.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | let result = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/order_service.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let order = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 29 | | Order, [INFO] [stdout] 30 | | r#" [INFO] [stdout] 31 | | INSERT INTO orders (order_number, total_amount, status, user_id, is_active, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 37 | | now [INFO] [stdout] 38 | | ) [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/services/order_service.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | let product = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 44 | | r#" [INFO] [stdout] 45 | | SELECT name, price, quantity, category_id [INFO] [stdout] 46 | | FROM products [INFO] [stdout] ... | [INFO] [stdout] 49 | | item.product_id [INFO] [stdout] 50 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (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/services/order_service.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | / sqlx::query!( [INFO] [stdout] 64 | | r#" [INFO] [stdout] 65 | | INSERT INTO order_items (order_id, product_id, product_name, quantity, price_at_time, created_at) [INFO] [stdout] 66 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 73 | | now [INFO] [stdout] 74 | | ) [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/services/order_service.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / sqlx::query!( [INFO] [stdout] 80 | | r#"UPDATE products SET quantity = quantity - $1, updated_at = $2 WHERE id = $3"#, [INFO] [stdout] 81 | | item.quantity, [INFO] [stdout] 82 | | now, [INFO] [stdout] 83 | | item.product_id [INFO] [stdout] 84 | | ) [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/services/order_service.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let category = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 90 | | "SELECT id, name FROM categories WHERE id = (SELECT category_id FROM products WHERE id = $1)", [INFO] [stdout] 91 | | item.product_id [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/services/order_service.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let user = sqlx::query!("SELECT name FROM users WHERE id = $1", user_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/order_service.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | / sqlx::query!( [INFO] [stdout] 132 | | "UPDATE orders SET total_amount = $1, updated_at = $2 WHERE id = $3", [INFO] [stdout] 133 | | total_amount, [INFO] [stdout] 134 | | now, [INFO] [stdout] 135 | | order.id [INFO] [stdout] 136 | | ) [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/services/order_service.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | let user = sqlx::query!("SELECT name,email FROM users WHERE id = $1", user_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/product_service.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let existing = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 108 | | Product, [INFO] [stdout] 109 | | r#" [INFO] [stdout] 110 | | SELECT * FROM products [INFO] [stdout] ... | [INFO] [stdout] 113 | | id [INFO] [stdout] 114 | | ) [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/services/product_service.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | let updated_product = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 138 | | Product, [INFO] [stdout] 139 | | r#" [INFO] [stdout] 140 | | UPDATE products SET [INFO] [stdout] ... | [INFO] [stdout] 161 | | id [INFO] [stdout] 162 | | ) [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/services/product_service.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/user_service.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | let res = sqlx::query!("SELECT id FROM users WHERE email = $1", 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/services/user_service.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | / sqlx::query_as!( [INFO] [stdout] 17 | | User, [INFO] [stdout] 18 | | "SELECT id, name, email, password, role, created_at, updated_at FROM users WHERE email = $1", [INFO] [stdout] 19 | | email [INFO] [stdout] 20 | | ) [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/services/user_service.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | / sqlx::query!( [INFO] [stdout] 32 | | "INSERT INTO users (name, email, password, role) VALUES ($1, $2, $3, 'user')", [INFO] [stdout] 33 | | name, [INFO] [stdout] 34 | | email, [INFO] [stdout] 35 | | password [INFO] [stdout] 36 | | ) [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/services/user_service.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query_as!( [INFO] [stdout] 44 | | User, [INFO] [stdout] 45 | | "SELECT id, name, email, password, role, created_at, updated_at FROM users WHERE id = $1", [INFO] [stdout] 46 | | id [INFO] [stdout] 47 | | ) [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/utils/cron.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | let products = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 28 | | r#" [INFO] [stdout] 29 | | SELECT name, quantity, threshold [INFO] [stdout] 30 | | FROM products [INFO] [stdout] 31 | | WHERE quantity < threshold AND is_active = true [INFO] [stdout] 32 | | "# [INFO] [stdout] 33 | | ) [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/utils/cron.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | let admins = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT email FROM users WHERE role = 'admin' AND is_active = true [INFO] [stdout] 47 | | "# [INFO] [stdout] 48 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/utils/jwt.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use jsonwebtoken::{DecodingKey, EncodingKey, Header, Validation, decode, encode, errors::Error}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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/services/category_service.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / sqlx::query_as!( [INFO] [stdout] 24 | | Category, [INFO] [stdout] 25 | | r#" [INFO] [stdout] 26 | | INSERT INTO categories (name, slug) [INFO] [stdout] ... | [INFO] [stdout] 31 | | slug [INFO] [stdout] 32 | | ) [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/services/category_service.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / sqlx::query_as!( [INFO] [stdout] 46 | | Category, [INFO] [stdout] 47 | | r#" [INFO] [stdout] 48 | | UPDATE categories [INFO] [stdout] ... | [INFO] [stdout] 56 | | id [INFO] [stdout] 57 | | ) [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/services/category_service.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | let result = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/order_service.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let order = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 29 | | Order, [INFO] [stdout] 30 | | r#" [INFO] [stdout] 31 | | INSERT INTO orders (order_number, total_amount, status, user_id, is_active, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 37 | | now [INFO] [stdout] 38 | | ) [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/services/order_service.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | let product = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 44 | | r#" [INFO] [stdout] 45 | | SELECT name, price, quantity, category_id [INFO] [stdout] 46 | | FROM products [INFO] [stdout] ... | [INFO] [stdout] 49 | | item.product_id [INFO] [stdout] 50 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (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/services/order_service.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | / sqlx::query!( [INFO] [stdout] 64 | | r#" [INFO] [stdout] 65 | | INSERT INTO order_items (order_id, product_id, product_name, quantity, price_at_time, created_at) [INFO] [stdout] 66 | | VALUES ($1, $2, $3, $4, $5, $6) [INFO] [stdout] ... | [INFO] [stdout] 73 | | now [INFO] [stdout] 74 | | ) [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/services/order_service.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / sqlx::query!( [INFO] [stdout] 80 | | r#"UPDATE products SET quantity = quantity - $1, updated_at = $2 WHERE id = $3"#, [INFO] [stdout] 81 | | item.quantity, [INFO] [stdout] 82 | | now, [INFO] [stdout] 83 | | item.product_id [INFO] [stdout] 84 | | ) [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/services/order_service.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | let category = sqlx::query!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 90 | | "SELECT id, name FROM categories WHERE id = (SELECT category_id FROM products WHERE id = $1)", [INFO] [stdout] 91 | | item.product_id [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/services/order_service.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let user = sqlx::query!("SELECT name FROM users WHERE id = $1", user_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/order_service.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | / sqlx::query!( [INFO] [stdout] 132 | | "UPDATE orders SET total_amount = $1, updated_at = $2 WHERE id = $3", [INFO] [stdout] 133 | | total_amount, [INFO] [stdout] 134 | | now, [INFO] [stdout] 135 | | order.id [INFO] [stdout] 136 | | ) [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/services/order_service.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | let user = sqlx::query!("SELECT name,email FROM users WHERE id = $1", user_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/product_service.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | let existing = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 108 | | Product, [INFO] [stdout] 109 | | r#" [INFO] [stdout] 110 | | SELECT * FROM products [INFO] [stdout] ... | [INFO] [stdout] 113 | | id [INFO] [stdout] 114 | | ) [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/services/product_service.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | let updated_product = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 138 | | Product, [INFO] [stdout] 139 | | r#" [INFO] [stdout] 140 | | UPDATE products SET [INFO] [stdout] ... | [INFO] [stdout] 161 | | id [INFO] [stdout] 162 | | ) [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/services/product_service.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/services/user_service.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | let res = sqlx::query!("SELECT id FROM users WHERE email = $1", 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/services/user_service.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | / sqlx::query_as!( [INFO] [stdout] 17 | | User, [INFO] [stdout] 18 | | "SELECT id, name, email, password, role, created_at, updated_at FROM users WHERE email = $1", [INFO] [stdout] 19 | | email [INFO] [stdout] 20 | | ) [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/services/user_service.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | / sqlx::query!( [INFO] [stdout] 32 | | "INSERT INTO users (name, email, password, role) VALUES ($1, $2, $3, 'user')", [INFO] [stdout] 33 | | name, [INFO] [stdout] 34 | | email, [INFO] [stdout] 35 | | password [INFO] [stdout] 36 | | ) [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/services/user_service.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query_as!( [INFO] [stdout] 44 | | User, [INFO] [stdout] 45 | | "SELECT id, name, email, password, role, created_at, updated_at FROM users WHERE id = $1", [INFO] [stdout] 46 | | id [INFO] [stdout] 47 | | ) [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/utils/cron.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | let products = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 28 | | r#" [INFO] [stdout] 29 | | SELECT name, quantity, threshold [INFO] [stdout] 30 | | FROM products [INFO] [stdout] 31 | | WHERE quantity < threshold AND is_active = true [INFO] [stdout] 32 | | "# [INFO] [stdout] 33 | | ) [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/utils/cron.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | let admins = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT email FROM users WHERE role = 'admin' AND is_active = true [INFO] [stdout] 47 | | "# [INFO] [stdout] 48 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/utils/jwt.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use jsonwebtoken::{DecodingKey, EncodingKey, Header, Validation, decode, encode, errors::Error}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/kafka/consumers/clickhouse_consumer.rs:27:50 [INFO] [stdout] | [INFO] [stdout] 27 | let created_at_dt = DateTime::::from_utc(created_at_dt, Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/kafka/consumers/clickhouse_consumer.rs:27:50 [INFO] [stdout] | [INFO] [stdout] 27 | let created_at_dt = DateTime::::from_utc(created_at_dt, Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/category_service.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let result = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Ok(result.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | let result: /* Type */ = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | .with_context(|| format!("Product not found: {}", item.product_id))?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | .context("Failed to insert order item")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | .context("Failed to update stock")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:95:10 [INFO] [stdout] | [INFO] [stdout] 95 | .context("Failed to fetch category")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .context("Failed to fetch user name")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | .context("Failed to update order total")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | .context("Failed to fetch user name")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/category_service.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let result = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | Ok(result.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | let result: /* Type */ = sqlx::query!("SELECT id FROM categories WHERE id = $1", category_id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | .with_context(|| format!("Product not found: {}", item.product_id))?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | .context("Failed to insert order item")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | .context("Failed to update stock")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:95:10 [INFO] [stdout] | [INFO] [stdout] 95 | .context("Failed to fetch category")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:110:14 [INFO] [stdout] | [INFO] [stdout] 110 | .context("Failed to fetch user name")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | .context("Failed to update order total")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/order_service.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | .context("Failed to fetch user name")?; [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/product_service.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | Ok(result.map(|row| (row.id, row.name, row.is_active))) [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 184 | let result: /* Type */ = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/user_service.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let res = sqlx::query!("SELECT id FROM users WHERE email = $1", email) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | Ok(res.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type [INFO] [stdout] | [INFO] [stdout] 9 | let res: /* Type */ = sqlx::query!("SELECT id FROM users WHERE email = $1", email) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/cron.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let products = sqlx::query!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | if products.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `products` an explicit type [INFO] [stdout] | [INFO] [stdout] 27 | let products: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/product_service.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | let result = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | Ok(result.map(|row| (row.id, row.name, row.is_active))) [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 184 | let result: /* Type */ = sqlx::query!("SELECT id, name, is_active FROM products WHERE id = $1", id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/user_service.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let res = sqlx::query!("SELECT id FROM users WHERE email = $1", email) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | Ok(res.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `res` an explicit type [INFO] [stdout] | [INFO] [stdout] 9 | let res: /* Type */ = sqlx::query!("SELECT id FROM users WHERE email = $1", email) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/utils/cron.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let products = sqlx::query!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | if products.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `products` an explicit type [INFO] [stdout] | [INFO] [stdout] 27 | let products: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/middlewares/auth_middleware.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | .map_err(|e| { [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/middlewares/auth_middleware.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | .map_err(|e| { [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ecommerce_app` (bin "ecommerce_app") due to 34 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ecommerce_app` (bin "ecommerce_app" test) due to 34 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "555b30735b004124af487c240354045c30210c373fc3a676172fb67efe1a4b25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "555b30735b004124af487c240354045c30210c373fc3a676172fb67efe1a4b25", kill_on_drop: false }` [INFO] [stdout] 555b30735b004124af487c240354045c30210c373fc3a676172fb67efe1a4b25