# 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 = "2021"
name = "pgqrs"
version = "0.13.0"
authors = ["Rajat Venkatesh"]
build = false
include = [
    "migrations/**",
    "src/**",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance PostgreSQL-backed job queue for Rust applications"
homepage = "https://github.com/vrajat/pgqrs"
readme = "README.md"
keywords = [
    "queue",
    "postgresql",
    "async",
    "workflows",
    "cli",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vrajat/pgqrs"

[package.metadata.release]
pre-release-hook = [
    "sh",
    "-c",
    "make -C $(git rev-parse --show-toplevel) bump-version VERSION={{version}}",
]

[features]
default = ["postgres"]
full = [
    "postgres",
    "sqlite",
    "turso",
]
postgres = [
    "sqlx",
    "sqlx/postgres",
]
sqlite = [
    "sqlx",
    "sqlx/sqlite",
]
sqlx = ["dep:sqlx"]
turso = ["dep:turso"]

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

[[bin]]
name = "pgqrs"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

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

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

[dependencies.clap]
version = "4.0"
features = ["derive"]

[dependencies.config]
version = "0.15"

[dependencies.humantime]
version = "2.1"

[dependencies.pgqrs-macros]
version = "0.13.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "chrono",
    "uuid",
    "json",
    "runtime-tokio-rustls",
    "macros",
]
optional = true

[dependencies.tabled]
version = "0.20.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

[dependencies.turso]
version = "0.4.2"
optional = true

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
]

[dev-dependencies.ctor]
version = "0.2.4"

[dev-dependencies.once_cell]
version = "1.19"

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.testcontainers]
version = "0.25"

[dev-dependencies.testcontainers-modules]
version = "0.13"
features = ["postgres"]

[dev-dependencies.tokio-test]
version = "0.4"
