# 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 = "tishlang_pg"
version = "2.35.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL driver for the Tish native runtime — tokio-postgres + deadpool"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/tishlang/tish"

[features]
default = ["tish-bindings"]
tish-bindings = [
    "dep:tishlang_runtime",
    "dep:once_cell",
    "dep:slab",
]

[lib]
name = "tishlang_pg"
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.deadpool]
version = "0.12"

[dependencies.deadpool-postgres]
version = "0.14"

[dependencies.futures]
version = "0.3"

[dependencies.once_cell]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.slab]
version = "0.4"
optional = true

[dependencies.thiserror]
version = "1"

[dependencies.tishlang_runtime]
version = ">=0.1"
features = ["send-values"]
optional = true

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

[dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-serde_json-1",
    "with-uuid-1",
    "with-chrono-0_4",
]

[dependencies.url]
version = "2"

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