[package]
edition = "2024"
rust-version = "1.85"
name = "exochain-dag-db-postgres"
version = "0.2.0-beta"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EXOCHAIN DAG DB PostgreSQL persistence adapters"
readme = false
license = "Apache-2.0"
repository = "https://github.com/exochain/exochain"
resolver = "2"
[features]
default = []
postgres = [
"dep:sqlx",
"dep:tokio",
"dep:tracing",
]
[lib]
name = "exo_dag_db_postgres"
path = "src/lib.rs"
[[test]]
name = "context_packet_output_postgres_contract"
path = "tests/context_packet_output_postgres_contract.rs"
[[test]]
name = "dag_outbox_recovery"
path = "tests/dag_outbox_recovery.rs"
[[test]]
name = "dagdb_migration_runner_isolation"
path = "tests/dagdb_migration_runner_isolation.rs"
[[test]]
name = "dagdb_tenant_rls_live_path_contract"
path = "tests/dagdb_tenant_rls_live_path_contract.rs"
[[test]]
name = "default_route_postgres_contract"
path = "tests/default_route_postgres_contract.rs"
[[test]]
name = "export_finality_outbox_migration_contract"
path = "tests/export_finality_outbox_migration_contract.rs"
[[test]]
name = "export_persistence_migration_contract"
path = "tests/export_persistence_migration_contract.rs"
[[test]]
name = "graph_migration_contract"
path = "tests/graph_migration_contract.rs"
[[test]]
name = "graph_persistence_contract"
path = "tests/graph_persistence_contract.rs"
[[test]]
name = "idempotency_replay"
path = "tests/idempotency_replay.rs"
[[test]]
name = "kg_catalog_router_context_route_contract"
path = "tests/kg_catalog_router_context_route_contract.rs"
[[test]]
name = "kg_export_contract"
path = "tests/kg_export_contract.rs"
[[test]]
name = "kg_export_finality_outbox_contract"
path = "tests/kg_export_finality_outbox_contract.rs"
[[test]]
name = "kg_export_persistence_contract"
path = "tests/kg_export_persistence_contract.rs"
[[test]]
name = "kg_import_persistence_contract"
path = "tests/kg_import_persistence_contract.rs"
[[test]]
name = "kg_live_loop_contract"
path = "tests/kg_live_loop_contract.rs"
[[test]]
name = "kg_retrieval_context_packet_contract"
path = "tests/kg_retrieval_context_packet_contract.rs"
[[test]]
name = "kg_writeback_persistence_contract"
path = "tests/kg_writeback_persistence_contract.rs"
[[test]]
name = "layered_transaction_concurrency_contract"
path = "tests/layered_transaction_concurrency_contract.rs"
[[test]]
name = "m46_unified_memory_postgres_contract"
path = "tests/m46_unified_memory_postgres_contract.rs"
[[test]]
name = "migration_contract"
path = "tests/migration_contract.rs"
[[test]]
name = "persistence_contract"
path = "tests/persistence_contract.rs"
[[test]]
name = "persistent_context_layered_drilldown_contract"
path = "tests/persistent_context_layered_drilldown_contract.rs"
[[test]]
name = "persistent_context_selection_contract"
path = "tests/persistent_context_selection_contract.rs"
[[test]]
name = "persistent_context_selection_write_contract"
path = "tests/persistent_context_selection_write_contract.rs"
[[test]]
name = "project_adoption_persisted_pilot_contract"
path = "tests/project_adoption_persisted_pilot_contract.rs"
[[test]]
name = "receipt_concurrency"
path = "tests/receipt_concurrency.rs"
[[test]]
name = "receipt_operational_event_schema"
path = "tests/receipt_operational_event_schema.rs"
[dependencies.exo-core]
version = "=0.2.0-beta"
package = "exochain-core"
[dependencies.exo-dag]
version = "=0.2.0-beta"
package = "exochain-dag"
[dependencies.exo-dag-db-api]
version = "=0.2.0-beta"
package = "exochain-dag-db-api"
[dependencies.exo-dag-db-core]
version = "=0.2.0-beta"
package = "exochain-dag-db-core"
[dependencies.exo-dag-db-domain]
version = "=0.2.0-beta"
package = "exochain-dag-db-domain"
[dependencies.exo-dag-db-exchange]
version = "=0.2.0-beta"
package = "exochain-dag-db-exchange"
[dependencies.exo-dag-db-graph]
version = "=0.2.0-beta"
package = "exochain-dag-db-graph"
[dependencies.exo-dag-db-retrieval]
version = "=0.2.0-beta"
package = "exochain-dag-db-retrieval"
[dependencies.serde]
version = "=1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "=1.0.145"
[dependencies.sqlx]
version = "=0.8.6"
features = [
"runtime-tokio-rustls",
"postgres",
"uuid",
"json",
"macros",
"migrate",
]
optional = true
[dependencies.thiserror]
version = "=2.0.17"
[dependencies.tokio]
version = "=1.50.0"
features = [
"full",
"rt",
"macros",
]
optional = true
[dependencies.tracing]
version = "=0.1.43"
optional = true
[lints.clippy]
as_conversions = "warn"
expect_used = "deny"
float_arithmetic = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
unwrap_used = "deny"
[lints.rust]
unsafe_code = "deny"