runlimit-postgres 0.3.1

Replica-safe PostgreSQL rate-limit storage
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.88"
name = "runlimit-postgres"
version = "0.3.1"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Replica-safe PostgreSQL rate-limit storage"
documentation = "https://docs.rs/runlimit-postgres"
readme = "README.md"
keywords = [
    "rate-limit",
    "throttling",
    "postgres",
]
categories = [
    "web-programming",
    "database",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bpcakes/runlimit"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
serde = [
    "dep:serde",
    "runlimit-core/serde",
]

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

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

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

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

[dependencies.runlimit-core]
version = "0.3.0"

[dependencies.serde]
version = "1.0.219"
features = ["derive"]
optional = true

[dependencies.sha2]
version = "0.11.0"
features = ["zeroize"]

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

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokio]
version = "1.47.1"
features = ["time"]
default-features = false

[dev-dependencies.runlimit-memory]
version = "0.3.0"

[dev-dependencies.serde_json]
version = "1.0.140"

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

[lints.clippy]
cognitive_complexity = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"

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