[package]
edition = "2024"
rust-version = "1.98"
name = "cratefield-adapter-postgres"
version = "0.2.1"
build = false
include = [
"src/**/*",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Database port over sqlx Postgres for the Cratefield harness native runtime (ADR 0004, issue #18)"
readme = "README.md"
keywords = [
"cratefield",
"postgres",
"database",
"adapter",
"sql",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/Cratefield/harness"
[lib]
name = "cratefield_adapter_postgres"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1.92"
[dependencies.cratefield-core]
version = "0.7"
[dependencies.futures-util]
version = "0.3.34"
features = [
"std",
"async-await",
]
default-features = false
[dependencies.sea-query]
version = "0.32.7"
features = [
"backend-sqlite",
"thread-safe",
"backend-postgres",
]
default-features = false
[dependencies.time]
version = "0.3.45"
features = [
"std",
"formatting",
"parsing",
"wasm-bindgen",
]
default-features = false
[dependencies.tracing]
version = "0.1.44"
[dev-dependencies.axum]
version = "0.8.9"
features = [
"json",
"query",
"form",
"matched-path",
"original-uri",
]
default-features = false
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"rt-multi-thread",
"macros",
]
default-features = false
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.sqlx]
version = "0.8.6"
features = [
"postgres",
"runtime-tokio",
"tls-rustls",
]
default-features = false
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.tokio]
version = "1.53.1"
features = [
"rt-multi-thread",
"macros",
"sync",
]
default-features = false
[lints.clippy]
all = "warn"
pedantic = "warn"
[lints.clippy.must_use_candidate]
level = "allow"
priority = 1
[lints.rust]
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"