pg-api 0.3.13

A high-performance PostgreSQL REST API driver with rate limiting, connection pooling, and observability
[package]
name = "pg-api"
version = "0.3.13"
edition = "2024"
authors = ["Aerun Serviços de Tecnologia <aerun@aerun.com.br>"]
description = "A high-performance PostgreSQL REST API driver with rate limiting, connection pooling, and observability"
documentation = "https://docs.rs/pg-api"
homepage = "https://gitlab.com/aerunti/pg-api"
repository = "https://gitlab.com/aerunti/pg-api"
readme = "README.md"
keywords = ["postgresql", "api", "rest", "database", "driver"]
categories = ["database", "web-programming", "api-bindings"]
license = "MIT"

# v0.3: keep the published crate lean and secret-free. Previous releases
# accidentally shipped dist tarballs, editor backups and credential files.
exclude = [
    "dist/",
    "target/",
    "*.bak",
    "*.backup",
    "*.patch",
    "*.env",
    "prod.env",
    "/evoluame_*",
    "/license_*",
    "/opensearch_*",
    "/pg-api.*.conf",
    "/pg-api.service",
    "config/accounts*.json",
    "config/server.json",
    "!config/accounts.json.example",
    "!config/server.json.example",
]

[dependencies]
axum = "0.8.4"
tokio = { version = "1", features = ["full"] }
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-serde_json-1", "with-uuid-1"] }
deadpool-postgres = "0.14"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
bytes = "1"
uuid = { version = "1", features = ["v4", "serde"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tower-http = { version = "0.6", features = ["cors", "set-header"] }
tower = { version = "0.5", features = ["timeout", "util"] }
dashmap = "6"
regex = "1"
dotenvy = "0.15"
sha2 = "0.10"
thiserror = "2"
anyhow = "1"
reqwest = { version = "0.12", features = ["json"] }

[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"] }
reqwest = { version = "0.12", features = ["json"] }
tokio-test = "0.4"

[[bench]]
name = "api_benchmarks"
harness = false

[profile.release]
lto = true
codegen-units = 1

[profile.bench]
debug = true