[INFO] cloning repository https://github.com/CympleTech/group-chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CympleTech/group-chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCympleTech%2Fgroup-chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCympleTech%2Fgroup-chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0529cabec5f5176964c54455ca4bfbb0117b4624 [INFO] checking CympleTech/group-chat against beta-2021-10-15 for beta-1.56-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCympleTech%2Fgroup-chat" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CympleTech/group-chat on toolchain beta-2021-10-15 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-10-15" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CympleTech/group-chat [INFO] finished tweaking git repo https://github.com/CympleTech/group-chat [INFO] tweaked toml for git repo https://github.com/CympleTech/group-chat written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-10-15" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/cympletech/esse_types` [INFO] [stderr] Updating git repository `https://github.com/cypherlink/tdn-did` [INFO] [stderr] Updating git repository `https://github.com/cypherlink/tdn-storage` [INFO] [stderr] Updating git repository `https://github.com/cypherlink/tdn_did` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-10-15" "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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-10-15" "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] 4755df9011ebf84ea77bdf7370eba998ff82988807c38ad041b1937179c1373f [INFO] running `Command { std: "docker" "start" "-a" "4755df9011ebf84ea77bdf7370eba998ff82988807c38ad041b1937179c1373f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4755df9011ebf84ea77bdf7370eba998ff82988807c38ad041b1937179c1373f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4755df9011ebf84ea77bdf7370eba998ff82988807c38ad041b1937179c1373f", kill_on_drop: false }` [INFO] [stdout] 4755df9011ebf84ea77bdf7370eba998ff82988807c38ad041b1937179c1373f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-10-15" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0aca178877e6f71f0294ab66132efed90a28a97ce186e99d60e16611e411f419 [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" "0aca178877e6f71f0294ab66132efed90a28a97ce186e99d60e16611e411f419", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.104 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling sysinfo v0.16.5 [INFO] [stderr] Compiling blake3 v1.0.0 [INFO] [stderr] Compiling libsqlite3-sys v0.20.1 [INFO] [stderr] Compiling whoami v1.1.5 [INFO] [stderr] Checking hashlink v0.6.0 [INFO] [stderr] Checking nom v7.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking nom v5.1.2 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking pem v1.0.0 [INFO] [stderr] Compiling crc v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking blake3 v0.3.8 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Checking serde v1.0.130 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking ghash v0.4.4 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking aes-gcm v0.9.4 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling openssl-sys v0.9.67 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Checking sqlformat v0.1.8 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking ring v0.16.20 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking curve25519-dalek v3.2.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking yasna v0.4.0 [INFO] [stderr] Checking simplelog v0.10.0 [INFO] [stderr] Checking x25519-dalek v1.2.0 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking serde_json v1.0.68 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking rcgen v0.8.14 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking tokio v1.12.0 [INFO] [stderr] Checking http v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking structopt v0.3.23 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking quinn-proto v0.7.3 [INFO] [stderr] Checking tungstenite v0.14.0 [INFO] [stderr] Checking rusqlite v0.24.2 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking chamomile_types v0.6.0 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.7 [INFO] [stderr] Checking tokio-tungstenite v0.15.0 [INFO] [stderr] Checking quinn v0.7.2 [INFO] [stderr] Checking sqlx-rt v0.5.9 [INFO] [stderr] Checking tdn_types v0.5.6 [INFO] [stderr] Checking sqlx-core v0.5.9 [INFO] [stderr] Checking tdn_did v0.5.0 (https://github.com/cypherlink/tdn_did?branch=main#5a7b3979) [INFO] [stderr] Checking tdn_did v0.5.0 (https://github.com/cypherlink/tdn-did?branch=main#5a7b3979) [INFO] [stderr] Checking tdn_storage v0.5.0 (https://github.com/cypherlink/tdn-storage?branch=main#817a0a9f) [INFO] [stderr] Checking chamomile v0.6.4 [INFO] [stderr] Checking group-chat_types v0.1.0 (https://github.com/cympletech/esse_types?branch=main#09a252d3) [INFO] [stderr] Checking tdn v0.5.5 [INFO] [stderr] Compiling sqlx-macros v0.5.9 [INFO] [stderr] Checking sqlx v0.5.9 [INFO] [stderr] Checking group-chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/manager.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let recs = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 40 | | "SELECT id, gid, times, is_closed, datetime FROM managers WHERE is_deleted = false ORDER BY id", [INFO] [stdout] 41 | | ) [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/manager.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 61 | | "SELECT id, gid, times, is_closed, datetime FROM managers WHERE gid=$1", [INFO] [stdout] 62 | | gid.to_hex() [INFO] [stdout] 63 | | ) [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/manager.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | sqlx::query!("SELECT id from managers WHERE gid = $1", self.gid.to_hex()) [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/manager.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let _ = sqlx::query!("UPDATE managers SET is_closed = $1, datetime = $2, is_deleted = false WHERE id = $3", [INFO] [stdout] | _____________________^ [INFO] [stdout] 87 | | self.is_closed, [INFO] [stdout] 88 | | self.datetime, [INFO] [stdout] 89 | | self.id [INFO] [stdout] 90 | | ).execute(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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/manager.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let rec = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 93 | | "INSERT INTO managers ( gid, times, is_closed, datetime ) VALUES ( $1, $2, $3, $4 ) RETURNING id", [INFO] [stdout] 94 | | self.gid.to_hex(), [INFO] [stdout] 95 | | self.times, [INFO] [stdout] 96 | | self.is_closed, [INFO] [stdout] 97 | | self.datetime [INFO] [stdout] 98 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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/manager.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 106 | | "UPDATE managers SET times = $1 WHERE id = $2", [INFO] [stdout] 107 | | self.times - 1, [INFO] [stdout] 108 | | self.id [INFO] [stdout] 109 | | ) [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.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | ... let res = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 102 | | ... "SELECT id, owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime FROM groups WHERE is_delet... [INFO] [stdout] 103 | | ... id [INFO] [stdout] 104 | | ... ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | ... let recs = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 123 | | ... "SELECT id, owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime FROM groups WHERE is_delet... [INFO] [stdout] 124 | | ... ) [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.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | sqlx::query!("SELECT id from groups WHERE g_id = $1", self.g_id.to_hex()) [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.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | ... let rec = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 160 | | ... "INSERT INTO groups (owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime) VALUES ($1, $2, ... [INFO] [stdout] 161 | | ... self.owner.to_hex(), [INFO] [stdout] 162 | | ... self.height, [INFO] [stdout] ... | [INFO] [stdout] 170 | | ... self.datetime [INFO] [stdout] 171 | | ... ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let _ = sqlx::query!("UPDATE groups SET height = $1 WHERE id = $2", height, 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.rs:265:28 [INFO] [stdout] | [INFO] [stdout] 265 | let unique_check = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 266 | | "SELECT id from members WHERE fid = $1 AND m_id = $2", [INFO] [stdout] 267 | | self.fid, [INFO] [stdout] 268 | | self.m_id.to_hex() [INFO] [stdout] 269 | | ) [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.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 276 | ... let _ = sqlx::query!("UPDATE members SET m_addr = $1, m_name = $2, is_manager = $3, datetime = $4, is_deleted = false WHERE id = $5", [INFO] [stdout] | _______________^ [INFO] [stdout] 277 | | ... self.m_addr.to_hex(), [INFO] [stdout] 278 | | ... self.m_name, [INFO] [stdout] 279 | | ... self.is_manager, [INFO] [stdout] 280 | | ... self.datetime, [INFO] [stdout] 281 | | ... self.id [INFO] [stdout] 282 | | ... ).execute(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:284:23 [INFO] [stdout] | [INFO] [stdout] 284 | let rec = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 285 | | "INSERT INTO members (fid, m_id, m_addr, m_name, is_manager, datetime) VALUES ($1, $2, $3, $4, $5, $6) RETURNING id", [INFO] [stdout] 286 | | self.fid, [INFO] [stdout] 287 | | self.m_id.to_hex(), [INFO] [stdout] ... | [INFO] [stdout] 291 | | self.datetime [INFO] [stdout] 292 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | / sqlx::query!( [INFO] [stdout] 301 | | "SELECT id FROM members WHERE fid = $1 AND m_id = $2 AND is_deleted = false", [INFO] [stdout] 302 | | fid, [INFO] [stdout] 303 | | mid.to_hex() [INFO] [stdout] 304 | | ) [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.rs:312:19 [INFO] [stdout] | [INFO] [stdout] 312 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 313 | | "SELECT id, fid, m_id, m_addr, m_name, is_manager, datetime FROM members WHERE id = $1", [INFO] [stdout] 314 | | id, [INFO] [stdout] 315 | | ) [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.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 333 | | "SELECT id, fid, m_id, m_addr, m_name, is_manager, datetime FROM members WHERE fid = $1 AND m_id = $2 AND is_deleted = false", [INFO] [stdout] 334 | | fid, [INFO] [stdout] 335 | | gid.to_hex(), [INFO] [stdout] 336 | | ) [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.rs:353:17 [INFO] [stdout] | [INFO] [stdout] 353 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 354 | | "UPDATE members SET is_deleted = true WHERE id = $1", [INFO] [stdout] 355 | | self.id [INFO] [stdout] 356 | | ) [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.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | let recs = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 366 | | "SELECT is_deleted, is_manager FROM members WHERE fid = $1 AND m_id = $2", [INFO] [stdout] 367 | | fid, [INFO] [stdout] 368 | | mid.to_hex() [INFO] [stdout] 369 | | ) [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.rs:496:19 [INFO] [stdout] | [INFO] [stdout] 496 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 497 | | "INSERT INTO messages (fid, mid, m_type, m_content, datetime) VALUES ($1, $2, $3, $4, $5) RETURNING id", [INFO] [stdout] 498 | | fid, [INFO] [stdout] 499 | | member.id, [INFO] [stdout] ... | [INFO] [stdout] 502 | | datetime, [INFO] [stdout] 503 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:551:19 [INFO] [stdout] | [INFO] [stdout] 551 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 552 | | "SELECT id, fid, mid, m_type, m_content, datetime FROM messages WHERE id = $1", [INFO] [stdout] 553 | | id, [INFO] [stdout] 554 | | ) [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.rs:638:13 [INFO] [stdout] | [INFO] [stdout] 638 | sqlx::query!("SELECT id, fid, height, ctype, cid FROM consensus WHERE fid = $1 AND height BETWEEN $2 AND $3", fid, from, to) [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.rs:693:28 [INFO] [stdout] | [INFO] [stdout] 693 | let unique_check = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 694 | | "SELECT id from consensus WHERE fid = $1 AND height = $2", [INFO] [stdout] 695 | | fid, [INFO] [stdout] 696 | | height [INFO] [stdout] 697 | | ) [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.rs:703:21 [INFO] [stdout] | [INFO] [stdout] 703 | let _ = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 704 | | "UPDATE consensus SET ctype = $1, cid = $2 WHERE id = $3", [INFO] [stdout] 705 | | ctype.to_i16(), [INFO] [stdout] 706 | | cid, [INFO] [stdout] 707 | | rec.id [INFO] [stdout] 708 | | ) [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.rs:713:21 [INFO] [stdout] | [INFO] [stdout] 713 | let _ = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 714 | | "INSERT INTO consensus ( fid, height, ctype, cid ) VALUES ( $1, $2, $3, $4 )", [INFO] [stdout] 715 | | fid, [INFO] [stdout] 716 | | height, [INFO] [stdout] 717 | | ctype.to_i16(), [INFO] [stdout] 718 | | cid [INFO] [stdout] 719 | | ) [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] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/manager.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/manager.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let recs = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 40 | | "SELECT id, gid, times, is_closed, datetime FROM managers WHERE is_deleted = false ORDER BY id", [INFO] [stdout] 41 | | ) [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/manager.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 61 | | "SELECT id, gid, times, is_closed, datetime FROM managers WHERE gid=$1", [INFO] [stdout] 62 | | gid.to_hex() [INFO] [stdout] 63 | | ) [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/manager.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | sqlx::query!("SELECT id from managers WHERE gid = $1", self.gid.to_hex()) [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/manager.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let _ = sqlx::query!("UPDATE managers SET is_closed = $1, datetime = $2, is_deleted = false WHERE id = $3", [INFO] [stdout] | _____________________^ [INFO] [stdout] 87 | | self.is_closed, [INFO] [stdout] 88 | | self.datetime, [INFO] [stdout] 89 | | self.id [INFO] [stdout] 90 | | ).execute(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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/manager.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | let rec = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 93 | | "INSERT INTO managers ( gid, times, is_closed, datetime ) VALUES ( $1, $2, $3, $4 ) RETURNING id", [INFO] [stdout] 94 | | self.gid.to_hex(), [INFO] [stdout] 95 | | self.times, [INFO] [stdout] 96 | | self.is_closed, [INFO] [stdout] 97 | | self.datetime [INFO] [stdout] 98 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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/manager.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 106 | | "UPDATE managers SET times = $1 WHERE id = $2", [INFO] [stdout] 107 | | self.times - 1, [INFO] [stdout] 108 | | self.id [INFO] [stdout] 109 | | ) [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.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | ... let res = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 102 | | ... "SELECT id, owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime FROM groups WHERE is_delet... [INFO] [stdout] 103 | | ... id [INFO] [stdout] 104 | | ... ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | ... let recs = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 123 | | ... "SELECT id, owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime FROM groups WHERE is_delet... [INFO] [stdout] 124 | | ... ) [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.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | sqlx::query!("SELECT id from groups WHERE g_id = $1", self.g_id.to_hex()) [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.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | ... let rec = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 160 | | ... "INSERT INTO groups (owner, height, g_id, g_type, g_name, g_bio, is_need_agree, key_hash, is_closed, datetime) VALUES ($1, $2, ... [INFO] [stdout] 161 | | ... self.owner.to_hex(), [INFO] [stdout] 162 | | ... self.height, [INFO] [stdout] ... | [INFO] [stdout] 170 | | ... self.datetime [INFO] [stdout] 171 | | ... ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let _ = sqlx::query!("UPDATE groups SET height = $1 WHERE id = $2", height, 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.rs:265:28 [INFO] [stdout] | [INFO] [stdout] 265 | let unique_check = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 266 | | "SELECT id from members WHERE fid = $1 AND m_id = $2", [INFO] [stdout] 267 | | self.fid, [INFO] [stdout] 268 | | self.m_id.to_hex() [INFO] [stdout] 269 | | ) [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.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 276 | ... let _ = sqlx::query!("UPDATE members SET m_addr = $1, m_name = $2, is_manager = $3, datetime = $4, is_deleted = false WHERE id = $5", [INFO] [stdout] | _______________^ [INFO] [stdout] 277 | | ... self.m_addr.to_hex(), [INFO] [stdout] 278 | | ... self.m_name, [INFO] [stdout] 279 | | ... self.is_manager, [INFO] [stdout] 280 | | ... self.datetime, [INFO] [stdout] 281 | | ... self.id [INFO] [stdout] 282 | | ... ).execute(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:284:23 [INFO] [stdout] | [INFO] [stdout] 284 | let rec = sqlx::query!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 285 | | "INSERT INTO members (fid, m_id, m_addr, m_name, is_manager, datetime) VALUES ($1, $2, $3, $4, $5, $6) RETURNING id", [INFO] [stdout] 286 | | self.fid, [INFO] [stdout] 287 | | self.m_id.to_hex(), [INFO] [stdout] ... | [INFO] [stdout] 291 | | self.datetime [INFO] [stdout] 292 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | / sqlx::query!( [INFO] [stdout] 301 | | "SELECT id FROM members WHERE fid = $1 AND m_id = $2 AND is_deleted = false", [INFO] [stdout] 302 | | fid, [INFO] [stdout] 303 | | mid.to_hex() [INFO] [stdout] 304 | | ) [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.rs:312:19 [INFO] [stdout] | [INFO] [stdout] 312 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 313 | | "SELECT id, fid, m_id, m_addr, m_name, is_manager, datetime FROM members WHERE id = $1", [INFO] [stdout] 314 | | id, [INFO] [stdout] 315 | | ) [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.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 333 | | "SELECT id, fid, m_id, m_addr, m_name, is_manager, datetime FROM members WHERE fid = $1 AND m_id = $2 AND is_deleted = false", [INFO] [stdout] 334 | | fid, [INFO] [stdout] 335 | | gid.to_hex(), [INFO] [stdout] 336 | | ) [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.rs:353:17 [INFO] [stdout] | [INFO] [stdout] 353 | let _ = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 354 | | "UPDATE members SET is_deleted = true WHERE id = $1", [INFO] [stdout] 355 | | self.id [INFO] [stdout] 356 | | ) [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.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | let recs = sqlx::query!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 366 | | "SELECT is_deleted, is_manager FROM members WHERE fid = $1 AND m_id = $2", [INFO] [stdout] 367 | | fid, [INFO] [stdout] 368 | | mid.to_hex() [INFO] [stdout] 369 | | ) [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.rs:496:19 [INFO] [stdout] | [INFO] [stdout] 496 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 497 | | "INSERT INTO messages (fid, mid, m_type, m_content, datetime) VALUES ($1, $2, $3, $4, $5) RETURNING id", [INFO] [stdout] 498 | | fid, [INFO] [stdout] 499 | | member.id, [INFO] [stdout] ... | [INFO] [stdout] 502 | | datetime, [INFO] [stdout] 503 | | ).fetch_one(get_pool()?).await.map_err(|_| anyhow!("database failure."))?; [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.rs:551:19 [INFO] [stdout] | [INFO] [stdout] 551 | let rec = sqlx::query!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 552 | | "SELECT id, fid, mid, m_type, m_content, datetime FROM messages WHERE id = $1", [INFO] [stdout] 553 | | id, [INFO] [stdout] 554 | | ) [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.rs:638:13 [INFO] [stdout] | [INFO] [stdout] 638 | sqlx::query!("SELECT id, fid, height, ctype, cid FROM consensus WHERE fid = $1 AND height BETWEEN $2 AND $3", fid, from, to) [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.rs:693:28 [INFO] [stdout] | [INFO] [stdout] 693 | let unique_check = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 694 | | "SELECT id from consensus WHERE fid = $1 AND height = $2", [INFO] [stdout] 695 | | fid, [INFO] [stdout] 696 | | height [INFO] [stdout] 697 | | ) [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.rs:703:21 [INFO] [stdout] | [INFO] [stdout] 703 | let _ = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 704 | | "UPDATE consensus SET ctype = $1, cid = $2 WHERE id = $3", [INFO] [stdout] 705 | | ctype.to_i16(), [INFO] [stdout] 706 | | cid, [INFO] [stdout] 707 | | rec.id [INFO] [stdout] 708 | | ) [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.rs:713:21 [INFO] [stdout] | [INFO] [stdout] 713 | let _ = sqlx::query!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 714 | | "INSERT INTO consensus ( fid, height, ctype, cid ) VALUES ( $1, $2, $3, $4 )", [INFO] [stdout] 715 | | fid, [INFO] [stdout] 716 | | height, [INFO] [stdout] 717 | | ctype.to_i16(), [INFO] [stdout] 718 | | cid [INFO] [stdout] 719 | | ) [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] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/manager.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `group-chat` due to 26 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 25 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0aca178877e6f71f0294ab66132efed90a28a97ce186e99d60e16611e411f419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0aca178877e6f71f0294ab66132efed90a28a97ce186e99d60e16611e411f419", kill_on_drop: false }` [INFO] [stdout] 0aca178877e6f71f0294ab66132efed90a28a97ce186e99d60e16611e411f419