# 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"
name = "pgtui"
version = "0.10.0"
authors = ["Kris Warner <kris@kdwarn.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Postgres TUI client that utilizes your terminal text editor for inserts & updates."
readme = "README.md"
keywords = [
    "tui",
    "database",
    "postgres",
]
categories = ["command-line-utilities"]
license = "AGPL-3.0-or-later"
repository = "https://codeberg.org/kdwarn/pgtui"

[[bin]]
name = "pgtui"
path = "src/main.rs"

[dependencies.chrono]
version = "0.4.41"

[dependencies.crossterm]
version = "0.29"

[dependencies.dotenvy]
version = "0.15"

[dependencies.ratatui]
version = "0.30"

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

[dependencies.sqlx]
version = "0.8.0"
features = [
    "bigdecimal",
    "chrono",
    "postgres",
    "runtime-tokio-rustls",
]

[dependencies.tempfile]
version = "3.20.0"

[dependencies.thiserror]
version = "2.0.15"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.toml]
version = "0.9.2"
features = [
    "serde",
    "parse",
]

[dependencies.tui-dialog]
version = "0.5.0"

[lints.clippy]
explicit_iter_loop = "allow"
manual_string_new = "allow"
must_use_candidate = "allow"
too_many_lines = "allow"

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

[lints.rust]
unsafe_code = "forbid"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
