[package]
edition = "2024"
name = "eventuary-postgres"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL event backend for eventuary"
readme = "README.md"
keywords = [
"events",
"postgres",
"event-sourcing",
]
categories = [
"asynchronous",
"database",
]
license = "MIT"
repository = "https://github.com/aboglioli/eventuary"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
integration-tests = ["dep:testcontainers"]
[lib]
name = "eventuary_postgres"
path = "src/lib.rs"
[[test]]
name = "claim_buffer_store"
path = "tests/claim_buffer_store.rs"
[[test]]
name = "composition"
path = "tests/composition.rs"
[[test]]
name = "coordinated_acker"
path = "tests/coordinated_acker.rs"
[[test]]
name = "coordinated_ownership_loss"
path = "tests/coordinated_ownership_loss.rs"
[[test]]
name = "coordinated_reader"
path = "tests/coordinated_reader.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "partition_backfill"
path = "tests/partition_backfill.rs"
[[test]]
name = "partition_coordinator"
path = "tests/partition_coordinator.rs"
[[test]]
name = "poison_decode"
path = "tests/poison_decode.rs"
[[test]]
name = "reader_partitioning"
path = "tests/reader_partitioning.rs"
[[test]]
name = "schema_components"
path = "tests/schema_components.rs"
[[test]]
name = "stores"
path = "tests/stores.rs"
[[test]]
name = "writer_partitioning"
path = "tests/writer_partitioning.rs"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.either]
version = "1"
[dependencies.eventuary-core]
version = "0.2.0"
[dependencies.futures]
version = "0.3"
[dependencies.rand]
version = "0.9"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sqlx]
version = "0.8.6"
features = [
"runtime-tokio",
"postgres",
]
default-features = false
[dependencies.testcontainers]
version = "0.25"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v7",
"serde",
]
[dev-dependencies.testcontainers]
version = "0.25"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"macros",
"rt-multi-thread",
]
[lints.clippy]
clone_on_ref_ptr = "warn"
collapsible_if = "warn"
needless_collect = "warn"
redundant_closure = "warn"
str_to_string = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unreachable_pub = "warn"
unsafe_code = "deny"