simple-queue 0.2.0

A simple persistent queue implementation in Rust backed by PostgreSQL and tokio
Build #3159789 2026-04-19 19:26:33

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# error kind ExecutionFailed

# pre-build errors command failed: exit status: 101

# rustc version rustc 1.97.0-nightly (0febdbab2 2026-04-18)

# docs.rs version docsrs 0.0.0 (15f7e1e9dfac4fc5b7cc4abfd7682239002ba909 2026-04-08 )

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder5/builds/simple-queue-0.2.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder5/builds/simple-queue-0.2.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder5/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder5/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "6442450944" "--cpuset-cpus" "24-27" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "sleep" "infinity", 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] 66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531 [INFO] running `Command { std: "docker" "start" "66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260418-1.97.0-nightly-0febdbab2\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j4" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting simple-queue v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/heartbeat.rs:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | let _ = sqlx::query!( [INFO] [stderr] | _________________________^ [INFO] [stderr] 28 | | "UPDATE job_queue SET updated_at = CURRENT_TIMESTAMP WHERE id = $1", [INFO] [stderr] 29 | | job_id, [INFO] [stderr] 30 | | ) [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/janitor.rs:26:36 [INFO] [stderr] | [INFO] [stderr] 26 | let ids: Vec<uuid::Uuid> = sqlx::query_scalar!( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 27 | | r#" [INFO] [stderr] 28 | | WITH moved AS ( [INFO] [stderr] 29 | | DELETE FROM job_queue [INFO] [stderr] ... | [INFO] [stderr] 36 | | JobResultInternal::Completed.to_string(), [INFO] [stderr] 37 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/janitor.rs:51:36 [INFO] [stderr] | [INFO] [stderr] 51 | let ids: Vec<uuid::Uuid> = sqlx::query_scalar!( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 52 | | r#" [INFO] [stderr] 53 | | WITH moved AS ( [INFO] [stderr] 54 | | DELETE FROM job_queue [INFO] [stderr] ... | [INFO] [stderr] 64 | | BadJob.to_string(), [INFO] [stderr] 65 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/job_api.rs:9:18 [INFO] [stderr] | [INFO] [stderr] 9 | let id = sqlx::query_scalar!( [INFO] [stderr] | __________________^ [INFO] [stderr] 10 | | r#" [INFO] [stderr] 11 | | INSERT INTO job_queue ( [INFO] [stderr] 12 | | id, fingerprint, unique_key, queue, job_data, status, created_at, run_at, updated_at, attempt, max_attempts [INFO] [stderr] ... | [INFO] [stderr] 29 | | job.max_attempts [INFO] [stderr] 30 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/job_api.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 62 | / sqlx::query!( [INFO] [stderr] 63 | | r#" [INFO] [stderr] 64 | | UPDATE job_queue [INFO] [stderr] 65 | | SET status = 'cancelled' [INFO] [stderr] ... | [INFO] [stderr] 68 | | unique_key [INFO] [stderr] 69 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/job_api.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | / sqlx::query!( [INFO] [stderr] 79 | | r#" [INFO] [stderr] 80 | | UPDATE job_queue [INFO] [stderr] 81 | | SET status = 'cancelled' [INFO] [stderr] ... | [INFO] [stderr] 84 | | fingerprint [INFO] [stderr] 85 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | / sqlx::query_as!( [INFO] [stderr] 21 | | Job, [INFO] [stderr] 22 | | r#" [INFO] [stderr] 23 | | UPDATE job_queue [INFO] [stderr] ... | [INFO] [stderr] 39 | | result::JobResultInternal::Running.to_string(), [INFO] [stderr] 40 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:156:9 [INFO] [stderr] | [INFO] [stderr] 156 | / sqlx::query!( [INFO] [stderr] 157 | | "UPDATE job_queue SET status = $1 WHERE id = $2", [INFO] [stderr] 158 | | result::JobResultInternal::Pending.to_string(), [INFO] [stderr] 159 | | id [INFO] [stderr] 160 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:232:21 [INFO] [stderr] | [INFO] [stderr] 232 | let _ = sqlx::query!( [INFO] [stderr] | _____________________^ [INFO] [stderr] 233 | | "UPDATE job_queue SET status = $1 WHERE id = $2", [INFO] [stderr] 234 | | result.to_string(), [INFO] [stderr] 235 | | &job.id, [INFO] [stderr] 236 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:262:21 [INFO] [stderr] | [INFO] [stderr] 262 | let _ = sqlx::query!( [INFO] [stderr] | _____________________^ [INFO] [stderr] 263 | | "UPDATE job_queue SET status = $1 WHERE id = $2", [INFO] [stderr] 264 | | next_status_str, [INFO] [stderr] 265 | | job.id.clone(), [INFO] [stderr] 266 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:273:21 [INFO] [stderr] | [INFO] [stderr] 273 | let _ = sqlx::query!( [INFO] [stderr] | _____________________^ [INFO] [stderr] 274 | | "UPDATE job_queue SET status = $1, run_at = $2 WHERE id = $3", [INFO] [stderr] 275 | | next_status_str, [INFO] [stderr] 276 | | backoff_strategy.next_attempt(job), [INFO] [stderr] 277 | | job.id.clone(), [INFO] [stderr] 278 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:284:21 [INFO] [stderr] | [INFO] [stderr] 284 | let _ = sqlx::query!( [INFO] [stderr] | _____________________^ [INFO] [stderr] 285 | | "UPDATE job_queue SET status = $1, run_at = $2 WHERE id = $3", [INFO] [stderr] 286 | | next_status_str, [INFO] [stderr] 287 | | run_at, [INFO] [stderr] 288 | | job.id.clone() [INFO] [stderr] 289 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:297:21 [INFO] [stderr] | [INFO] [stderr] 297 | ... let _ = sqlx::query!( [INFO] [stderr] | _______________^ [INFO] [stderr] 298 | | ... "UPDATE job_queue SET status = $1, run_at = $2, attempt = attempt - 1, reprocess_count = reprocess_count + 1 WHERE id =... [INFO] [stderr] 299 | | ... next_status_str, scheduled, job.id.clone() [INFO] [stderr] 300 | | ... ).execute(pool).await; [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/queue/logic.rs:325:5 [INFO] [stderr] | [INFO] [stderr] 325 | / sqlx::query!( [INFO] [stderr] 326 | | "UPDATE job_queue SET status = $1 WHERE id = $2", [INFO] [stderr] 327 | | result.to_string(), [INFO] [stderr] 328 | | id [INFO] [stderr] 329 | | ) [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/reaper.rs:36:36 [INFO] [stderr] | [INFO] [stderr] 36 | let ids: Vec<uuid::Uuid> = sqlx::query_scalar!( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 37 | | r#" [INFO] [stderr] 38 | | UPDATE job_queue [INFO] [stderr] 39 | | SET status = $1, updated_at = CURRENT_TIMESTAMP, attempt = attempt - 1 [INFO] [stderr] ... | [INFO] [stderr] 46 | | stale, [INFO] [stderr] 47 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stderr] --> src/reaper.rs:54:36 [INFO] [stderr] | [INFO] [stderr] 54 | let ids: Vec<uuid::Uuid> = sqlx::query_scalar!( [INFO] [stderr] | ____________________________________^ [INFO] [stderr] 55 | | r#" [INFO] [stderr] 56 | | UPDATE job_queue [INFO] [stderr] 57 | | SET status = $1, updated_at = CURRENT_TIMESTAMP [INFO] [stderr] ... | [INFO] [stderr] 63 | | JobResultInternal::Pending.to_string(), [INFO] [stderr] 64 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: could not document `simple-queue` [INFO] running `Command { std: "docker" "stop" "-t" "1" "66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531", kill_on_drop: false }` [INFO] [stdout] 66cb665dfa3f424f026ae22bd2d3b2c6ea4b129f002ea55b997e706cd9bd8531