# 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"
name = "eventcore-postgres"
version = "0.7.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL event store adapter for EventCore event sourcing library"
readme = false
license = "MIT"
repository = "https://github.com/jwilger/eventcore"
resolver = "2"

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

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

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

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

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

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

[dependencies.eventcore-types]
version = "0.7.1"

[dependencies.nutype]
version = "0.6.2"
features = ["serde"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "uuid",
    "chrono",
    "macros",
    "migrate",
]
default-features = false

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = ["rt-multi-thread"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.19.0"
features = [
    "serde",
    "v7",
]

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.mutants]
version = "0.0.4"

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

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

[dev-dependencies.tracing-test]
version = "0.2"
features = ["no-env-filter"]

[lints.clippy]
allow_attributes = "deny"

[lints.rust]
dead_code = "forbid"
deprecated = "deny"
invalid_value = "forbid"
meta_variable_misuse = "deny"
non_ascii_idents = "deny"
non_camel_case_types = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
overflowing_literals = "forbid"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unconditional_recursion = "forbid"
unreachable_code = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unused_allocation = "forbid"
unused_assignments = "deny"
unused_attributes = "deny"
unused_extern_crates = "deny"
unused_imports = "deny"
unused_must_use = "deny"
unused_mut = "deny"
unused_parens = "deny"
unused_qualifications = "deny"
unused_results = "deny"
unused_variables = "deny"
warnings = "deny"

[lints.rust.bad_style]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
