# 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.95"
name = "omnia-postgres"
version = "0.27.0"
authors = ["Augentic <https://augentic.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Postgres resource provider"
homepage = "https://augentic.io"
readme = "README.md"
keywords = [
    "wasi",
    "wasm",
    "backend",
    "runtime",
    "omnia",
]
categories = [
    "wasm",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/augentic/backends"

[package.metadata.docs.rs]
all-features = true

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.chrono]
version = "0.4.45"

[dependencies.deadpool-postgres]
version = "0.14.1"
features = ["rt_tokio_1"]
default-features = false

[dependencies.fromenv]
version = "0.1.0"

[dependencies.futures]
version = "0.3.32"

[dependencies.omnia]
version = "0.34.0"

[dependencies.omnia-wasi-sql]
version = "0.34.0"

[dependencies.rustls]
version = "0.23.40"
features = [
    "logging",
    "ring",
    "std",
]
default-features = false

[dependencies.serde_json]
version = "1.0.143"

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

[dependencies.tokio-postgres-rustls]
version = "0.14.0"
default-features = false

[dependencies.tracing]
version = "0.1.44"

[dependencies.webpki-roots]
version = "1.0.8"
default-features = false

[lints.clippy]
all = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
cargo = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
nursery = "warn"
pedantic = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"

[lints.rust]
missing_docs = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_extern_crates = "warn"
