# 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.91.0"
name = "obeli-sk-db-postgres"
version = "0.37.6"
authors = ["Project Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internal package of obelisk"
readme = false
license = "AGPL-3.0-only"
repository = "https://github.com/obeli-sk/obelisk"
resolver = "2"

[features]
test = ["concepts/test"]

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

[dependencies.anyhow]
version = "1.0"
features = ["backtrace"]

[dependencies.assert_matches]
version = "1.5.0"

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

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

[dependencies.concepts]
version = "0.37.6"
features = ["postgres"]
package = "obeli-sk-concepts"

[dependencies.const_format]
version = "0.2.35"

[dependencies.db-common]
version = "0.37.6"
package = "obeli-sk-db-common"

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

[dependencies.derive_more]
version = "2.1.1"
features = [
    "debug",
    "deref",
    "display",
    "eq",
    "from_str",
    "into",
    "try_from",
]

[dependencies.hashbrown]
version = "0.16.1"
features = ["serde"]

[dependencies.rand]
version = "0.9"

[dependencies.secrecy]
version = "0.10.3"

[dependencies.sha2]
version = "0.10.9"

[dependencies.strum]
version = "0.28.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "macros",
    "process",
    "rt-multi-thread",
    "rt",
    "signal",
    "sync",
    "time",
    "tracing",
]

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

[dependencies.tracing]
version = "0.1"
features = ["log"]

[dependencies.tracing-error]
version = "0.2.1"

[dependencies.val-json]
version = "0.37.6"
package = "obeli-sk-val-json"

[lints.clippy]
dbg_macro = "deny"
explicit_deref_methods = "allow"
from_iter_instead_of_collect = "allow"
if_not_else = "allow"
items_after_statements = "allow"
map_unwrap_or = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unnecessary_debug_formatting = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
unexpected_cfgs = "deny"
unknown_lints = "deny"
