tollgate-store-postgres 0.32.1

PostgreSQL backend for tollgate: transactional fenced lease allocation, idempotent usage ingest, and snapshot storage implementing the tollgate-store traits.
Documentation
# 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.89"
name = "tollgate-store-postgres"
version = "0.32.1"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL backend for tollgate: transactional fenced lease allocation, idempotent usage ingest, and snapshot storage implementing the tollgate-store traits."
readme = "README.md"
keywords = [
    "quota",
    "ledger",
    "billing",
    "postgres",
    "metering",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MorphIQ-Labs/tollgate"

[features]
test-support = []

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

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

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

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

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

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

[[bench]]
name = "ingest"
path = "benches/ingest.rs"
harness = false

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

[dependencies.jiff]
version = "0.2"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "macros",
    "migrate",
    "uuid",
    "json",
]
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "signal",
]

[dependencies.tollgate-core]
version = "=0.32.1"
features = ["serde"]

[dependencies.tollgate-store]
version = "=0.32.1"
features = ["wire"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.7"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "signal",
    "test-util",
]

[lints.clippy]
allow_attributes_without_reason = "deny"
let_underscore_must_use = "deny"

[lints.rust]
unsafe_code = "forbid"