[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] ef34a0e3e18b9d2679f796696b6ce2786a066d3c [INFO] checking CympleTech/group-chat against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCympleTech%2Fgroup-chat" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CympleTech/group-chat on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "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-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pem v1.0.1 [INFO] [stderr] Downloaded whoami v1.2.1 [INFO] [stderr] Downloaded quinn v0.7.2 [INFO] [stderr] Downloaded ed25519 v1.3.0 [INFO] [stderr] Downloaded chamomile_types v0.6.1 [INFO] [stderr] Downloaded quinn-proto v0.7.3 [INFO] [stderr] Downloaded yasna v0.4.0 [INFO] [stderr] Downloaded rcgen v0.8.14 [INFO] [stderr] Downloaded tdn_types v0.5.7 [INFO] [stderr] Downloaded tdn v0.5.5 [INFO] [stderr] Downloaded chamomile v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b283b1d8281f61e55725bc7d404bf915627f1c4c58cfae797f51f994e496a5a [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" "9b283b1d8281f61e55725bc7d404bf915627f1c4c58cfae797f51f994e496a5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b283b1d8281f61e55725bc7d404bf915627f1c4c58cfae797f51f994e496a5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b283b1d8281f61e55725bc7d404bf915627f1c4c58cfae797f51f994e496a5a", kill_on_drop: false }` [INFO] [stdout] 9b283b1d8281f61e55725bc7d404bf915627f1c4c58cfae797f51f994e496a5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b433a554203d5acfa36528e395476fb2bde1af92c35175495cdf092af7bf86ff [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" "b433a554203d5acfa36528e395476fb2bde1af92c35175495cdf092af7bf86ff", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Checking futures-sink v0.3.18 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking futures-io v0.3.18 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling anyhow v1.0.51 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking signature v1.4.0 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Checking ahash v0.4.7 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling crc32fast v1.2.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling whoami v1.2.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling sysinfo v0.16.5 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking ed25519 v1.3.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking gif v0.11.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling openssl-sys v0.9.71 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling blake3 v1.2.0 [INFO] [stderr] Compiling libsqlite3-sys v0.20.1 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Checking hashlink v0.6.0 [INFO] [stderr] Checking lexical-core v0.7.6 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Checking atoi v0.4.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ghash v0.4.4 [INFO] [stderr] Checking pem v1.0.1 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking sqlformat v0.1.8 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking aes-gcm v0.9.4 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking yasna v0.4.0 [INFO] [stderr] Checking simplelog v0.10.0 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rcgen v0.8.14 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling sqlx-rt v0.5.9 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Compiling tracing-attributes v0.1.18 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking rusqlite v0.24.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking curve25519-dalek v3.2.0 [INFO] [stderr] Checking x25519-dalek v1.2.0 [INFO] [stderr] Checking pin-project v1.0.8 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking futures-executor v0.3.18 [INFO] [stderr] Checking futures v0.3.18 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking http v0.2.5 [INFO] [stderr] Checking quinn-proto v0.7.3 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Compiling sqlx-core v0.5.9 [INFO] [stderr] Checking tungstenite v0.14.0 [INFO] [stderr] Checking chamomile_types v0.6.1 [INFO] [stderr] Checking quinn v0.7.2 [INFO] [stderr] Checking tokio-tungstenite v0.15.0 [INFO] [stderr] Checking tdn_types v0.5.7 [INFO] [stderr] Checking tdn_did v0.5.0 (https://github.com/cypherlink/tdn_did?branch=main#f2794caa) [INFO] [stderr] Checking tdn_storage v0.5.0 (https://github.com/cypherlink/tdn-storage?branch=main#d8fd844d) [INFO] [stderr] Checking tdn_did v0.5.0 (https://github.com/cypherlink/tdn-did?branch=main#f2794caa) [INFO] [stderr] Checking group-chat_types v0.1.0 (https://github.com/cympletech/esse_types?branch=main#c5c1793c) [INFO] [stderr] Checking chamomile v0.6.5 [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] 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] 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" "b433a554203d5acfa36528e395476fb2bde1af92c35175495cdf092af7bf86ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b433a554203d5acfa36528e395476fb2bde1af92c35175495cdf092af7bf86ff", kill_on_drop: false }` [INFO] [stdout] b433a554203d5acfa36528e395476fb2bde1af92c35175495cdf092af7bf86ff