# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "gradatum-queue"
version = "0.6.4"
authors = ["Gradatum Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite-backed jobs queue with atomic UPDATE...RETURNING leases"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/gradatum/gradatum"

[lib]
name = "gradatum_queue"
path = "src/lib.rs"

[[test]]
name = "atomic_claim"
path = "tests/atomic_claim.rs"

[[test]]
name = "lease_recovery"
path = "tests/lease_recovery.rs"

[[test]]
name = "pragmas"
path = "tests/pragmas.rs"

[[test]]
name = "queue_roundtrip"
path = "tests/queue_roundtrip.rs"

[dependencies.async-trait]
version = "=0.1.89"

[dependencies.bincode]
version = "=2.0.1"
features = ["serde"]

[dependencies.chrono]
version = "=0.4.44"
features = ["serde"]

[dependencies.gradatum-core]
version = "0.6.4"

[dependencies.gradatum-db-sqlite]
version = "0.6.4"

[dependencies.rusqlite]
version = "=0.32.1"
features = [
    "bundled",
    "chrono",
]

[dependencies.serde]
version = "=1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "=1.0.149"

[dependencies.sqlx]
version = "=0.8.6"
features = [
    "sqlite",
    "runtime-tokio",
    "macros",
    "sqlite",
    "runtime-tokio",
    "macros",
]

[dependencies.thiserror]
version = "=2.0.18"

[dependencies.tokio]
version = "=1.52.1"
features = ["full"]

[dependencies.tracing]
version = "=0.1.44"

[dependencies.ulid]
version = "=1.2.1"
features = ["serde"]

[dev-dependencies.tempfile]
version = "=3.27.0"

[dev-dependencies.tokio]
version = "=1.52.1"
features = [
    "full",
    "full",
    "test-util",
]
