# 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 = "pgmq"
version = "0.31.1"
authors = ["PGMQ Maintainers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A distributed message queue for Rust applications, on Postgres."
homepage = "https://github.com/pgmq/pgmq"
documentation = "https://docs.rs/pgmq"
readme = "README.md"
keywords = [
    "messaging",
    "queues",
    "postgres",
]
license = "PostgreSQL"
repository = "https://github.com/pgmq/pgmq"

[features]
cli = [
    "clap",
    "futures-util",
    "reqwest",
    "tokio/rt",
]
default = []

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

[[bin]]
name = "pgmq-cli"
path = "src/bin/pgmq-cli.rs"
required-features = ["cli"]

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "transactions"
path = "examples/transactions.rs"

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

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

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

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

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

[dependencies.futures-util]
version = "0.3.31"
optional = true

[dependencies.log]
version = "0.4.17"

[dependencies.reqwest]
version = "0.11"
features = ["json"]
optional = true

[dependencies.serde]
version = "1.0.152"

[dependencies.serde_json]
version = "1.0.91"
features = ["raw_value"]

[dependencies.sqlx]
version = "0.8.1"
features = [
    "runtime-tokio",
    "postgres",
    "chrono",
    "json",
]

[dependencies.thiserror]
version = "1.0.38"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "time",
]
default-features = false

[dependencies.url]
version = "2.3.1"

[dev-dependencies.cargo-readme]
version = "3.2.0"

[dev-dependencies.criterion]
version = "0.4"

[dev-dependencies.env_logger]
version = "0.10.0"

[dev-dependencies.lazy_static]
version = "1.4.0"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.regex]
version = "1.5.4"

[dev-dependencies.sqlx]
version = "0.8.1"
features = ["time"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]
