[INFO] cloning repository https://github.com/Nerixyz/rewards [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nerixyz/rewards" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNerixyz%2Frewards", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNerixyz%2Frewards'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 18bebadcb55459cba29620643a3912ecc785e705 [INFO] testing Nerixyz/rewards against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNerixyz%2Frewards" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nerixyz/rewards on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nerixyz/rewards [INFO] finished tweaking git repo https://github.com/Nerixyz/rewards [INFO] tweaked toml for git repo https://github.com/Nerixyz/rewards written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/Nerixyz/rewards already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0a36a33ce1a647803e22197d373bfdefc1d0c275e26a2a4ed91d6d4f75f5a9cb [INFO] running `Command { std: "docker" "start" "-a" "0a36a33ce1a647803e22197d373bfdefc1d0c275e26a2a4ed91d6d4f75f5a9cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a36a33ce1a647803e22197d373bfdefc1d0c275e26a2a4ed91d6d4f75f5a9cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a36a33ce1a647803e22197d373bfdefc1d0c275e26a2a4ed91d6d4f75f5a9cb", kill_on_drop: false }` [INFO] [stdout] 0a36a33ce1a647803e22197d373bfdefc1d0c275e26a2a4ed91d6d4f75f5a9cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 999390d6c72c3aab9bf8e9e4139a893bb305245cca0892fb1f29d13e6dbb5652 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "999390d6c72c3aab9bf8e9e4139a893bb305245cca0892fb1f29d13e6dbb5652", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling futures-core v0.3.16 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling futures-channel v0.3.16 [INFO] [stderr] Compiling futures-task v0.3.16 [INFO] [stderr] Compiling cpufeatures v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling httpdate v1.0.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling build_const v0.2.2 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling whoami v1.1.2 [INFO] [stderr] Compiling metrics v0.16.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling semver v1.0.3 [INFO] [stderr] Compiling siphasher v0.3.5 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling atomic-shim v0.1.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling sketches-ddsketch v0.1.2 [INFO] [stderr] Compiling git_info v0.1.2 [INFO] [stderr] Compiling http-range v0.1.4 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling futures-macro v0.3.16 [INFO] [stderr] Compiling futures-util v0.3.16 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling ahash v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling cookie v0.15.0 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling twitch_oauth2 v0.5.2 (https://github.com/emilgardis/twitch_api2?rev=71a4c0f#71a4c0f7) [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling twitch_api2 v0.6.0-rc.1 (https://github.com/emilgardis/twitch_api2?rev=71a4c0f#71a4c0f7) [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling jobserver v0.1.22 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling raw-cpuid v9.1.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling t1ha v0.1.0 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling actix-service v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.2 [INFO] [stderr] Compiling displaydoc v0.2.3 [INFO] [stderr] Compiling aliri_braid_impl v0.1.9 [INFO] [stderr] Compiling enum_dispatch v0.3.7 [INFO] [stderr] Compiling serde_repr v0.1.7 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling typed-builder v0.9.0 [INFO] [stderr] Compiling dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling quanta v0.7.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling ordered-float v2.5.1 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling rewards v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling openssl-sys v0.9.63 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling dotenv_codegen v0.15.0 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling aliri_braid v0.1.9 [INFO] [stderr] Compiling postgres-protocol v0.6.1 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling postgres-types v0.2.1 [INFO] [stderr] Compiling sqlformat v0.1.6 [INFO] [stderr] Compiling metrics-macros v0.4.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling serde_path_to_error v0.1.4 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling serde_qs v0.8.3 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling futures-executor v0.3.16 [INFO] [stderr] Compiling local-channel v0.1.2 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling actix-rt v2.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.7 [INFO] [stderr] Compiling combine v4.6.0 [INFO] [stderr] Compiling uptimer v0.1.0 (https://github.com/Nerixyz/uptimer.git?rev=04002e9#04002e9d) [INFO] [stderr] Compiling publicsuffix v1.5.6 [INFO] [stderr] Compiling deadpool v0.8.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling futures v0.3.16 [INFO] [stderr] Compiling actix-server v2.0.0-beta.5 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling actix-codec v0.4.0 [INFO] [stderr] Compiling actix v0.12.0 [INFO] [stderr] Compiling cookie_store v0.12.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tungstenite v0.13.0 [INFO] [stderr] Compiling tokio-postgres v0.7.2 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling metrics-util v0.8.0 [INFO] [stderr] Compiling actix-tls v3.0.0-beta.5 [INFO] [stderr] Compiling sqlx-rt v0.5.5 [INFO] [stderr] Compiling sqlx-core v0.5.5 [INFO] [stderr] Compiling async-tungstenite v0.13.1 [INFO] [stderr] Compiling deadpool-postgres v0.9.0 [INFO] [stderr] Compiling hyper v0.14.7 [INFO] [stderr] Compiling redis v0.20.2 [INFO] [stderr] Compiling sqlx-macros v0.5.5 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.5.0 [INFO] [stderr] Compiling deadpool-redis v0.8.1 [INFO] [stderr] Compiling reqwest v0.11.4 [INFO] [stderr] Compiling oauth2 v4.0.0 [INFO] [stderr] Compiling twitch-irc v3.0.1 [INFO] [stderr] Compiling sqlx v0.5.5 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling actix-http v3.0.0-beta.8 [INFO] [stderr] Compiling actix-web v4.0.0-beta.8 [INFO] [stderr] Compiling errors v0.1.0 (https://github.com/Nerixyz/nerix-utils-rs?tag=eventsub-v0.1.0#71c860fa) [INFO] [stderr] Compiling actix-metrics v0.2.1 (https://github.com/Nerixyz/nerix-utils-rs?tag=actix-metrics-v0.1.0#71c860fa) [INFO] [stderr] Compiling errors v0.1.1 (https://github.com/Nerixyz/nerix-utils-rs?tag=errors-v0.1.1#7743a1b1) [INFO] [stderr] Compiling actix-cors v0.6.0-beta.2 [INFO] [stderr] Compiling actix-files v0.6.0-beta.6 [INFO] [stderr] Compiling eventsub v0.1.0 (https://github.com/Nerixyz/nerix-utils-rs?tag=eventsub-v0.1.0#71c860fa) [INFO] [stderr] Compiling twitch-pubsub v0.2.0 (https://github.com/Nerixyz/twitch-pubsub-rs?rev=835841b#835841b1) [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/config.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 23 | | "UPDATE config SET value = $2 WHERE key = $1", [INFO] [stdout] 24 | | self.key, [INFO] [stdout] 25 | | Json(&self.value) as _ [INFO] [stdout] 26 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/config.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | let entry: Self = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 46 | | ConfigEntry, [INFO] [stdout] 47 | | r#" [INFO] [stdout] 48 | | SELECT key, value as "value: Json" [INFO] [stdout] ... | [INFO] [stdout] 52 | | key [INFO] [stdout] 53 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/discord.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | let settings = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 18 | | DiscordUserSettings, [INFO] [stdout] 19 | | "SELECT * FROM discord_settings WHERE user_id = $1", [INFO] [stdout] 20 | | user_id [INFO] [stdout] 21 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/discord.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | let url = sqlx::query_scalar!( [INFO] [stdout] | _______________^ [INFO] [stdout] 31 | | "SELECT url FROM discord_settings WHERE user_id = $1 AND log_emotes = true", [INFO] [stdout] 32 | | user_id [INFO] [stdout] 33 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/discord.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / sqlx::query_scalar!( [INFO] [stdout] 43 | | "INSERT INTO discord_settings (user_id, url) VALUES ($1, $2) ON CONFLICT (user_id) DO UPDATE SET url = excluded.url", [INFO] [stdout] 44 | | user_id, url [INFO] [stdout] 45 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/discord.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | sqlx::query_scalar!("DELETE FROM discord_settings WHERE user_id = $1", user_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/editor.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | let editors = sqlx::query_scalar!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 10 | | // language=PostgreSQL [INFO] [stdout] 11 | | " [INFO] [stdout] 12 | | SELECT editor_id [INFO] [stdout] ... | [INFO] [stdout] 16 | | broadcaster_id [INFO] [stdout] 17 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/editor.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | let broadcasters = sqlx::query_scalar!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 26 | | // language=PostgreSQL [INFO] [stdout] 27 | | " [INFO] [stdout] 28 | | SELECT broadcaster_id [INFO] [stdout] ... | [INFO] [stdout] 32 | | editor_id [INFO] [stdout] 33 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/editor.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 46 | | User, [INFO] [stdout] 47 | | // language=PostgreSQL [INFO] [stdout] 48 | | " [INFO] [stdout] ... | [INFO] [stdout] 55 | | broadcaster_id, [INFO] [stdout] 56 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/editor.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 69 | | // language=PostgreSQL [INFO] [stdout] 70 | | " [INFO] [stdout] 71 | | INSERT INTO editors [INFO] [stdout] ... | [INFO] [stdout] 77 | | broadcaster_id [INFO] [stdout] 78 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/editor.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 91 | | // language=PostgreSQL [INFO] [stdout] 92 | | " [INFO] [stdout] 93 | | DELETE FROM editors [INFO] [stdout] ... | [INFO] [stdout] 97 | | editor_name [INFO] [stdout] 98 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/log_entry.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let logs = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 16 | | Self, [INFO] [stdout] 17 | | "SELECT date, content FROM logs WHERE user_id = $1 ORDER BY date desc", [INFO] [stdout] 18 | | id [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/log_entry.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | / sqlx::query!( [INFO] [stdout] 29 | | "INSERT INTO logs (user_id, date, content) VALUES ($1, $2, $3)", [INFO] [stdout] 30 | | id, [INFO] [stdout] 31 | | Utc::now(), [INFO] [stdout] 32 | | content [INFO] [stdout] 33 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | let reward: Self = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 105 | | Reward, [INFO] [stdout] 106 | | r#" [INFO] [stdout] 107 | | SELECT id, user_id, data as "data: Json", live_delay [INFO] [stdout] ... | [INFO] [stdout] 111 | | id [INFO] [stdout] 112 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:121:34 [INFO] [stdout] | [INFO] [stdout] 121 | let rewards: Vec = sqlx::query_as!( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 122 | | Reward, [INFO] [stdout] 123 | | r#" [INFO] [stdout] 124 | | SELECT id, user_id, data as "data: Json", live_delay [INFO] [stdout] ... | [INFO] [stdout] 128 | | user_id [INFO] [stdout] 129 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | let rewards = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 139 | | LiveReward, [INFO] [stdout] 140 | | " [INFO] [stdout] 141 | | SELECT id, user_id, live_delay [INFO] [stdout] ... | [INFO] [stdout] 145 | | user_id [INFO] [stdout] 146 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:158:23 [INFO] [stdout] | [INFO] [stdout] 158 | let rewards = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 159 | | LiveReward, [INFO] [stdout] 160 | | " [INFO] [stdout] 161 | | SELECT id, user_id, live_delay [INFO] [stdout] ... | [INFO] [stdout] 165 | | user_id [INFO] [stdout] 166 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:175:23 [INFO] [stdout] | [INFO] [stdout] 175 | let rewards = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 176 | | LiveRewardAT, [INFO] [stdout] 177 | | r#" [INFO] [stdout] 178 | | SELECT rewards.id as "id!", user_id as "user_id!", live_delay as "live_delay!", access_token as "access_token!" [INFO] [stdout] ... | [INFO] [stdout] 182 | | "# [INFO] [stdout] 183 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 194 | | "INSERT INTO rewards (id, user_id, data, live_delay) VALUES ($1, $2, $3, $4)", [INFO] [stdout] 195 | | self.id, [INFO] [stdout] 196 | | self.user_id, [INFO] [stdout] 197 | | Json(&self.data) as _, [INFO] [stdout] 198 | | self.live_delay [INFO] [stdout] 199 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 211 | | "UPDATE rewards SET data=$2, live_delay = $3 WHERE id=$1", [INFO] [stdout] 212 | | self.id, [INFO] [stdout] 213 | | Json(self.data.clone()) as _, [INFO] [stdout] 214 | | self.live_delay [INFO] [stdout] 215 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 231 | | "UPDATE rewards SET unpause_at = $2 WHERE id=$1", [INFO] [stdout] 232 | | id, [INFO] [stdout] 233 | | unpause_at [INFO] [stdout] 234 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | let _ = sqlx::query!("DELETE FROM rewards WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/reward.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | / sqlx::query_as!( [INFO] [stdout] 268 | | RewardToUpdate, [INFO] [stdout] 269 | | " [INFO] [stdout] 270 | | SELECT u.id as broadcaster_id, access_token, refresh_token, rewards.id as reward_id [INFO] [stdout] ... | [INFO] [stdout] 273 | | " [INFO] [stdout] 274 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | / sqlx::query!( [INFO] [stdout] 35 | | "INSERT INTO slots (user_id, reward_id, platform) VALUES ($1, $2, $3)", [INFO] [stdout] 36 | | user_id, [INFO] [stdout] 37 | | reward_id, [INFO] [stdout] 38 | | platform as _, [INFO] [stdout] 39 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let available = sqlx::query_as!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 53 | | Self, [INFO] [stdout] 54 | | r#" [INFO] [stdout] 55 | | SELECT id, user_id, emote_id, expires, reward_id, platform as "platform: _", name, added_at, added_by FROM slots [INFO] [stdout] ... | [INFO] [stdout] 59 | | user_id [INFO] [stdout] 60 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let n_available = sqlx::query_scalar!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 73 | | " [INFO] [stdout] 74 | | SELECT count(*) FROM slots [INFO] [stdout] 75 | | WHERE reward_id = $1 and user_id = $2 and emote_id is null and expires is null [INFO] [stdout] ... | [INFO] [stdout] 78 | | user_id [INFO] [stdout] 79 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | let all = sqlx::query_as!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 92 | | Self, [INFO] [stdout] 93 | | r#" [INFO] [stdout] 94 | | SELECT id, user_id, emote_id, expires, reward_id, platform as "platform: _", name, added_at, added_by FROM slots [INFO] [stdout] ... | [INFO] [stdout] 98 | | user_id [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let pending = sqlx::query_as!(Self, r#" [INFO] [stdout] | _______________________^ [INFO] [stdout] 108 | | SELECT id, user_id, emote_id, expires, reward_id, platform as "platform: _", name, added_at, added_by FROM slots [INFO] [stdout] 109 | | WHERE emote_id is not null AND expires is not null AND expires < (now() + '1 minute'::interval) [INFO] [stdout] 110 | | "#).fetch_all(pool).await?; [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:121:20 [INFO] [stdout] | [INFO] [stdout] 121 | let slot = sqlx::query_as!(Self, r#" [INFO] [stdout] | ____________________^ [INFO] [stdout] 122 | | SELECT id, user_id, emote_id, expires, reward_id, platform as "platform: _", name, added_at, added_by FROM slots [INFO] [stdout] 123 | | WHERE user_id = $1 AND lower(name) = lower($2) [INFO] [stdout] 124 | | "#, user_id, name).fetch_optional(pool).await?; [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | let occupation = sqlx::query_as!(SlotOccupation, [INFO] [stdout] | __________________________^ [INFO] [stdout] 132 | | " [INFO] [stdout] 133 | | SELECT count(*) as available, (SELECT count(*) FROM slots WHERE user_id = $1) as total FROM slots [INFO] [stdout] 134 | | WHERE user_id = $1 and emote_id is null and expires is null [INFO] [stdout] 135 | | ", [INFO] [stdout] 136 | | user_id [INFO] [stdout] 137 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:145:22 [INFO] [stdout] | [INFO] [stdout] 145 | let emotes = sqlx::query_scalar!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 146 | | " [INFO] [stdout] 147 | | SELECT name FROM slots [INFO] [stdout] 148 | | WHERE user_id = $1 and emote_id is not null and name is not null [INFO] [stdout] 149 | | ", [INFO] [stdout] 150 | | user_id [INFO] [stdout] 151 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | / sqlx::query!( [INFO] [stdout] 160 | | "UPDATE slots SET emote_id = $2, expires = $3, name = $4, added_by = $5, added_at = $6 WHERE id = $1", [INFO] [stdout] 161 | | self.id, [INFO] [stdout] 162 | | self.emote_id, [INFO] [stdout] ... | [INFO] [stdout] 166 | | self.added_at, [INFO] [stdout] 167 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | / sqlx::query!( [INFO] [stdout] 177 | | "UPDATE slots SET emote_id = null, expires = null, name = null, added_by = null, added_at = null WHERE id = $1", [INFO] [stdout] 178 | | id [INFO] [stdout] 179 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/slot.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | sqlx::query!("DELETE FROM slots WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let data = sqlx::query_as!(Self, "SELECT * FROM spotify WHERE user_id=$1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | let data = sqlx::query_as!(Self, "SELECT * FROM spotify") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | / sqlx::query!( [INFO] [stdout] 41 | | " [INFO] [stdout] 42 | | INSERT INTO spotify (user_id, access_token, refresh_token) [INFO] [stdout] 43 | | VALUES ($1, $2, $3) [INFO] [stdout] ... | [INFO] [stdout] 47 | | token.refresh_token [INFO] [stdout] 48 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / sqlx::query!( [INFO] [stdout] 61 | | "UPDATE spotify SET access_token=$2 WHERE user_id=$1", [INFO] [stdout] 62 | | id, [INFO] [stdout] 63 | | token.access_token [INFO] [stdout] 64 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | sqlx::query!("DELETE FROM spotify WHERE user_id = $1", id,) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 84 | let data = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 85 | | Self, [INFO] [stdout] 86 | | "SELECT only_while_live FROM spotify WHERE user_id=$1", [INFO] [stdout] 87 | | id [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/spotify.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | / sqlx::query_as!( [INFO] [stdout] 98 | | Self, [INFO] [stdout] 99 | | "UPDATE spotify SET only_while_live = $2 WHERE user_id = $1", [INFO] [stdout] 100 | | user_id, [INFO] [stdout] 101 | | self.only_while_live [INFO] [stdout] 102 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let emote = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 25 | | Self, [INFO] [stdout] 26 | | r#" [INFO] [stdout] 27 | | SELECT id, user_id, emote_id, platform as "platform: _", name, added_by, added_at [INFO] [stdout] ... | [INFO] [stdout] 33 | | platform as _ [INFO] [stdout] 34 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | ... sqlx::query!("INSERT INTO swap_emotes (user_id, emote_id, platform, name, added_by, added_at) VALUES ($1, $2, $3, $4, $5, now())", user_id, emote_id, platform as _, name, added_by).ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | sqlx::query!("DELETE FROM swap_emotes WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 68 | | " [INFO] [stdout] 69 | | SELECT count(*) [INFO] [stdout] 70 | | FROM swap_emotes [INFO] [stdout] ... | [INFO] [stdout] 73 | | platform as _ [INFO] [stdout] 74 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let emote = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 83 | | Self, [INFO] [stdout] 84 | | r#" [INFO] [stdout] 85 | | SELECT id, user_id, emote_id, platform as "platform: _", name, added_by, added_at [INFO] [stdout] ... | [INFO] [stdout] 89 | | name [INFO] [stdout] 90 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | sqlx::query_scalar!("SELECT name FROM swap_emotes WHERE user_id = $1", user_id,) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/swap_emote.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | let emotes = sqlx::query_scalar!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 112 | | "SELECT name FROM swap_emotes WHERE user_id = $1 AND platform = $2", [INFO] [stdout] 113 | | user_id, [INFO] [stdout] 114 | | platform as _ [INFO] [stdout] 115 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/timed_mode.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | let id = sqlx::query_scalar!( [INFO] [stdout] | __________________^ [INFO] [stdout] 42 | | "INSERT INTO timed_modes (user_id, mode, end_ts) VALUES ($1, $2, $3) RETURNING id", [INFO] [stdout] 43 | | user_id, [INFO] [stdout] 44 | | mode as _, [INFO] [stdout] 45 | | end [INFO] [stdout] 46 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/timed_mode.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let modes = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 56 | | Self, [INFO] [stdout] 57 | | r#" [INFO] [stdout] 58 | | SELECT timed_modes.id as "id!", user_id as "user_id!", end_ts as "end_ts!", mode as "mode!: Mode", name as "user_name!" [INFO] [stdout] ... | [INFO] [stdout] 61 | | "# [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/timed_mode.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | sqlx::query!("DELETE FROM timed_modes WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | ...User = sqlx::query_as!(User, "SELECT id, access_token, refresh_token, scopes, name, eventsub_id FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let users = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 43 | | User, [INFO] [stdout] 44 | | "SELECT id, access_token, refresh_token, scopes, name, eventsub_id FROM users" [INFO] [stdout] 45 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let names = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 54 | | // language=PostgreSQL [INFO] [stdout] 55 | | "SELECT name FROM users" [INFO] [stdout] 56 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let ids = sqlx::query_scalar!("SELECT id FROM users WHERE eventsub_id IS null") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | let data = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 75 | | UserBttvData, [INFO] [stdout] 76 | | "SELECT id, bttv_id FROM users WHERE id = $1", [INFO] [stdout] 77 | | user_id [INFO] [stdout] 78 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | let data = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 88 | | UserSevenTvData, [INFO] [stdout] 89 | | "SELECT id, name, seventv_id FROM users WHERE id = $1", [INFO] [stdout] 90 | | user_id [INFO] [stdout] 91 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 102 | | " [INFO] [stdout] 103 | | INSERT [INFO] [stdout] 104 | | INTO users (id, access_token, refresh_token, scopes, name) [INFO] [stdout] ... | [INFO] [stdout] 113 | | self.name [INFO] [stdout] 114 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 131 | | "UPDATE users SET access_token = $2, refresh_token = $3 WHERE id = $1", [INFO] [stdout] 132 | | id, [INFO] [stdout] 133 | | access_token, [INFO] [stdout] 134 | | refresh_token [INFO] [stdout] 135 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let _ = sqlx::query_scalar!( [INFO] [stdout] | _________________^ [INFO] [stdout] 146 | | "UPDATE users SET bttv_id = $2 WHERE id = $1", [INFO] [stdout] 147 | | user_id, [INFO] [stdout] 148 | | bttv_id [INFO] [stdout] 149 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | let _ = sqlx::query_scalar!( [INFO] [stdout] | _________________^ [INFO] [stdout] 159 | | "UPDATE users SET seventv_id = $2 WHERE id = $1", [INFO] [stdout] 160 | | user_id, [INFO] [stdout] 161 | | seventv_id [INFO] [stdout] 162 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | let _ = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 183 | | "UPDATE users SET eventsub_id = $2 WHERE id = $1", [INFO] [stdout] 184 | | user_id, [INFO] [stdout] 185 | | eventsub_id [INFO] [stdout] 186 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 195 | | "UPDATE users SET eventsub_id = null WHERE eventsub_id = $1", [INFO] [stdout] 196 | | eventsub_id [INFO] [stdout] 197 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/models/user.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | let old_id = sqlx::query_scalar!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 208 | | " [INFO] [stdout] 209 | | UPDATE users [INFO] [stdout] 210 | | SET eventsub_id = null [INFO] [stdout] ... | [INFO] [stdout] 214 | | user_id [INFO] [stdout] 215 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 65 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rewards` due to 66 previous errors [INFO] running `Command { std: "docker" "inspect" "999390d6c72c3aab9bf8e9e4139a893bb305245cca0892fb1f29d13e6dbb5652", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "999390d6c72c3aab9bf8e9e4139a893bb305245cca0892fb1f29d13e6dbb5652", kill_on_drop: false }` [INFO] [stdout] 999390d6c72c3aab9bf8e9e4139a893bb305245cca0892fb1f29d13e6dbb5652