[package]
name = "pgtui"
version = "0.10.0"
edition = "2024"
authors = ["Kris Warner <kris@kdwarn.net>"]
description = "A Postgres TUI client that utilizes your terminal text editor for inserts & updates."
repository = "https://codeberg.org/kdwarn/pgtui"
license = "AGPL-3.0-or-later"
keywords = ["tui", "database", "postgres"]
categories = ["command-line-utilities"]

[dependencies]
chrono = "0.4.41"
crossterm = "0.29" 
dotenvy = "0.15"
ratatui = "0.30"
serde = { version = "1.0", features = ["derive"] }
sqlx = { version = "0.8.0", features = ["bigdecimal", "chrono", "postgres", "runtime-tokio-rustls"]}
tempfile = "3.20.0"
thiserror = "2.0.15"
tokio = { version = "1", features = ["full"] }
toml = { version = "0.9.2", features = ["serde", "parse"] }
tui-dialog = "0.5.0"


[profile.release]
strip = true       # strip debugging symbols
opt-level = "z"    # optimize for size
lto = true         # enable link time optimization
panic = "abort"    # abort on panic
codegen-units = 1  # reduce parallel code generation units to increase optimization

[lints.rust]
unsafe_code = "forbid"

[lints.clippy]
# All the lints.
pedantic = { level = "warn", priority = -1 }
# Now disable some I don't want.
manual_string_new = "allow"
explicit_iter_loop = "allow"
too_many_lines = "allow"
must_use_candidate = "allow"
