[package]
edition = "2024"
rust-version = "1.94"
name = "pgtask-worker"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Worker and scheduler runtime for pgtask"
readme = false
license = "MIT"
repository = "https://github.com/Kludex/pgtask"
[lib]
name = "pgtask_worker"
path = "src/lib.rs"
[[test]]
name = "durable_restarts"
path = "tests/durable_restarts.rs"
[[test]]
name = "worker"
path = "tests/worker.rs"
[dependencies.axum]
version = "0.8.9"
[dependencies.chrono]
version = "0.4.45"
features = ["serde"]
[dependencies.futures]
version = "0.3.34"
[dependencies.pgtask-core]
version = "0.1.0"
[dependencies.pgtask-otel]
version = "0.1.0"
[dependencies.pgtask-postgres]
version = "0.1.0"
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.53.1"
features = [
"io-util",
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[dependencies.tokio-util]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.sqlx]
version = "0.9.0"
features = [
"chrono",
"derive",
"json",
"macros",
"migrate",
"postgres",
"runtime-tokio",
"tls-rustls-ring-native-roots",
"uuid",
]
default-features = false
[dev-dependencies.uuid]
version = "1.24.1"
features = [
"serde",
"v4",
"v7",
]
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
unsafe_code = "forbid"