[INFO] cloning repository https://github.com/henrywong-crypto/api-keys-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/henrywong-crypto/api-keys-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrywong-crypto%2Fapi-keys-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrywong-crypto%2Fapi-keys-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54403c25cbd6802df1b787424ff51fa84288acb8 [INFO] checking henrywong-crypto/api-keys-test against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrywong-crypto%2Fapi-keys-test" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/henrywong-crypto/api-keys-test [INFO] finished tweaking git repo https://github.com/henrywong-crypto/api-keys-test [INFO] tweaked toml for git repo https://github.com/henrywong-crypto/api-keys-test written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/henrywong-crypto/api-keys-test on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/henrywong-crypto/api-keys-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a54fbfc9d004966f66837872cd013f5da7dc9564cc48fac262fe9cebeca4b2fa [INFO] running `Command { std: "docker" "start" "-a" "a54fbfc9d004966f66837872cd013f5da7dc9564cc48fac262fe9cebeca4b2fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a54fbfc9d004966f66837872cd013f5da7dc9564cc48fac262fe9cebeca4b2fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a54fbfc9d004966f66837872cd013f5da7dc9564cc48fac262fe9cebeca4b2fa", kill_on_drop: false }` [INFO] [stdout] a54fbfc9d004966f66837872cd013f5da7dc9564cc48fac262fe9cebeca4b2fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7b06bba1b86789ba25fd479add4e0c58305b5f9705e6306260c09b22be71584 [INFO] running `Command { std: "docker" "start" "-a" "a7b06bba1b86789ba25fd479add4e0c58305b5f9705e6306260c09b22be71584", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling cc v1.2.14 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking clap_builder v4.5.29 [INFO] [stderr] Checking uuid v1.13.1 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling tempfile v3.17.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking clap v4.5.29 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking sqlx-core v0.8.3 [INFO] [stderr] Checking sqlx-sqlite v0.8.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.3 [INFO] [stderr] Compiling sqlx-macros v0.8.3 [INFO] [stderr] Checking sqlx v0.8.3 [INFO] [stderr] Checking api-key-test2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | let id = sqlx::query!( [INFO] [stdout] | ______________^ [INFO] [stdout] 158 | | r#" [INFO] [stdout] 159 | | INSERT INTO users (email, role, max_budget) [INFO] [stdout] 160 | | VALUES (?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 164 | | max_budget [INFO] [stdout] 165 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | / sqlx::query!( [INFO] [stdout] 191 | | r#" [INFO] [stdout] 192 | | INSERT INTO api_keys (user_id, key, name, expires_at) [INFO] [stdout] 193 | | VALUES (?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 198 | | expires_at [INFO] [stdout] 199 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | let id = sqlx::query!( [INFO] [stdout] | ______________^ [INFO] [stdout] 222 | | r#" [INFO] [stdout] 223 | | INSERT INTO models (name, display_name, input_cost_per_token, output_cost_per_token) [INFO] [stdout] 224 | | VALUES (?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 229 | | output_cost [INFO] [stdout] 230 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | let model = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | SELECT id, [INFO] [stdout] 257 | | input_cost_per_token, [INFO] [stdout] ... | [INFO] [stdout] 262 | | model_name [INFO] [stdout] 263 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:273:26 [INFO] [stdout] | [INFO] [stdout] 273 | let api_key_record = sqlx::query!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 274 | | r#" [INFO] [stdout] 275 | | SELECT id, user_id [INFO] [stdout] 276 | | FROM api_keys [INFO] [stdout] ... | [INFO] [stdout] 279 | | api_key [INFO] [stdout] 280 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 285 | / sqlx::query!( [INFO] [stdout] 286 | | r#" [INFO] [stdout] 287 | | INSERT INTO usages (api_key_id, model_id, input_tokens, output_tokens, total_tokens, cost) [INFO] [stdout] 288 | | VALUES (?, ?, ?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 295 | | cost [INFO] [stdout] 296 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | / sqlx::query!( [INFO] [stdout] 302 | | r#" [INFO] [stdout] 303 | | UPDATE api_keys [INFO] [stdout] 304 | | SET spend = spend + ?, updated_at = CURRENT_TIMESTAMP [INFO] [stdout] ... | [INFO] [stdout] 308 | | api_key_record.id [INFO] [stdout] 309 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | / sqlx::query!( [INFO] [stdout] 315 | | r#" [INFO] [stdout] 316 | | UPDATE users [INFO] [stdout] 317 | | SET total_spend = total_spend + ?, updated_at = CURRENT_TIMESTAMP [INFO] [stdout] ... | [INFO] [stdout] 321 | | api_key_record.user_id [INFO] [stdout] 322 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | let users = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 334 | | User, [INFO] [stdout] 335 | | r#" [INFO] [stdout] 336 | | SELECT id, email, [INFO] [stdout] ... | [INFO] [stdout] 342 | | "# [INFO] [stdout] 343 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | / sqlx::query_as!( [INFO] [stdout] 361 | | ApiKey, [INFO] [stdout] 362 | | r#" [INFO] [stdout] 363 | | SELECT id, key, name, spend, expires_at as "expires_at?: DateTime" [INFO] [stdout] ... | [INFO] [stdout] 368 | | uid [INFO] [stdout] 369 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | / sqlx::query_as!( [INFO] [stdout] 375 | | ApiKey, [INFO] [stdout] 376 | | r#" [INFO] [stdout] 377 | | SELECT id, key, name, spend, expires_at as "expires_at?: DateTime" [INFO] [stdout] ... | [INFO] [stdout] 380 | | "# [INFO] [stdout] 381 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:404:18 [INFO] [stdout] | [INFO] [stdout] 404 | let models = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 405 | | Model, [INFO] [stdout] 406 | | r#" [INFO] [stdout] 407 | | SELECT id, name, display_name, [INFO] [stdout] ... | [INFO] [stdout] 412 | | "# [INFO] [stdout] 413 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | let usages = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 435 | | r#" [INFO] [stdout] 436 | | WITH usage_stats AS ( [INFO] [stdout] 437 | | SELECT m.id as model_id, [INFO] [stdout] ... | [INFO] [stdout] 457 | | api_key [INFO] [stdout] 458 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:157:14 [INFO] [stdout] | [INFO] [stdout] 157 | let id = sqlx::query!( [INFO] [stdout] | ______________^ [INFO] [stdout] 158 | | r#" [INFO] [stdout] 159 | | INSERT INTO users (email, role, max_budget) [INFO] [stdout] 160 | | VALUES (?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 164 | | max_budget [INFO] [stdout] 165 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | / sqlx::query!( [INFO] [stdout] 191 | | r#" [INFO] [stdout] 192 | | INSERT INTO api_keys (user_id, key, name, expires_at) [INFO] [stdout] 193 | | VALUES (?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 198 | | expires_at [INFO] [stdout] 199 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | let id = sqlx::query!( [INFO] [stdout] | ______________^ [INFO] [stdout] 222 | | r#" [INFO] [stdout] 223 | | INSERT INTO models (name, display_name, input_cost_per_token, output_cost_per_token) [INFO] [stdout] 224 | | VALUES (?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 229 | | output_cost [INFO] [stdout] 230 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | let model = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 255 | | r#" [INFO] [stdout] 256 | | SELECT id, [INFO] [stdout] 257 | | input_cost_per_token, [INFO] [stdout] ... | [INFO] [stdout] 262 | | model_name [INFO] [stdout] 263 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:273:26 [INFO] [stdout] | [INFO] [stdout] 273 | let api_key_record = sqlx::query!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 274 | | r#" [INFO] [stdout] 275 | | SELECT id, user_id [INFO] [stdout] 276 | | FROM api_keys [INFO] [stdout] ... | [INFO] [stdout] 279 | | api_key [INFO] [stdout] 280 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 285 | / sqlx::query!( [INFO] [stdout] 286 | | r#" [INFO] [stdout] 287 | | INSERT INTO usages (api_key_id, model_id, input_tokens, output_tokens, total_tokens, cost) [INFO] [stdout] 288 | | VALUES (?, ?, ?, ?, ?, ?) [INFO] [stdout] ... | [INFO] [stdout] 295 | | cost [INFO] [stdout] 296 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | / sqlx::query!( [INFO] [stdout] 302 | | r#" [INFO] [stdout] 303 | | UPDATE api_keys [INFO] [stdout] 304 | | SET spend = spend + ?, updated_at = CURRENT_TIMESTAMP [INFO] [stdout] ... | [INFO] [stdout] 308 | | api_key_record.id [INFO] [stdout] 309 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | / sqlx::query!( [INFO] [stdout] 315 | | r#" [INFO] [stdout] 316 | | UPDATE users [INFO] [stdout] 317 | | SET total_spend = total_spend + ?, updated_at = CURRENT_TIMESTAMP [INFO] [stdout] ... | [INFO] [stdout] 321 | | api_key_record.user_id [INFO] [stdout] 322 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | let users = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 334 | | User, [INFO] [stdout] 335 | | r#" [INFO] [stdout] 336 | | SELECT id, email, [INFO] [stdout] ... | [INFO] [stdout] 342 | | "# [INFO] [stdout] 343 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:360:13 [INFO] [stdout] | [INFO] [stdout] 360 | / sqlx::query_as!( [INFO] [stdout] 361 | | ApiKey, [INFO] [stdout] 362 | | r#" [INFO] [stdout] 363 | | SELECT id, key, name, spend, expires_at as "expires_at?: DateTime" [INFO] [stdout] ... | [INFO] [stdout] 368 | | uid [INFO] [stdout] 369 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | / sqlx::query_as!( [INFO] [stdout] 375 | | ApiKey, [INFO] [stdout] 376 | | r#" [INFO] [stdout] 377 | | SELECT id, key, name, spend, expires_at as "expires_at?: DateTime" [INFO] [stdout] ... | [INFO] [stdout] 380 | | "# [INFO] [stdout] 381 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:404:18 [INFO] [stdout] | [INFO] [stdout] 404 | let models = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 405 | | Model, [INFO] [stdout] 406 | | r#" [INFO] [stdout] 407 | | SELECT id, name, display_name, [INFO] [stdout] ... | [INFO] [stdout] 412 | | "# [INFO] [stdout] 413 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | let usages = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 435 | | r#" [INFO] [stdout] 436 | | WITH usage_stats AS ( [INFO] [stdout] 437 | | SELECT m.id as model_id, [INFO] [stdout] ... | [INFO] [stdout] 457 | | api_key [INFO] [stdout] 458 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `api-key-test2` (bin "api-key-test2") due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `api-key-test2` (bin "api-key-test2" test) due to 13 previous errors [INFO] running `Command { std: "docker" "inspect" "a7b06bba1b86789ba25fd479add4e0c58305b5f9705e6306260c09b22be71584", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7b06bba1b86789ba25fd479add4e0c58305b5f9705e6306260c09b22be71584", kill_on_drop: false }` [INFO] [stdout] a7b06bba1b86789ba25fd479add4e0c58305b5f9705e6306260c09b22be71584