# 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 = "pgmon"
version = "0.7.1"
authors = ["Nicolas Embriz <nbari@tequila.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A PostgreSQL monitoring TUI"
readme = "README.md"
keywords = [
    "postgresql",
    "monitoring",
    "tui",
    "database",
]
categories = [
    "command-line-utilities",
    "database",
]
license = "BSD-3-Clause"
repository = "https://github.com/nbari/pgmon"

[[package.metadata.generate-rpm.assets]]
source = "target/release/pgmon"
dest = "/usr/local/bin/pgmon"
mode = "0755"

[package.metadata.deb]
assets = [[
    "target/release/pgmon",
    "/usr/local/bin/pgmon",
    "755",
]]
depends = ""

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

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.6"
features = [
    "color",
    "env",
    "string",
]

[dependencies.crossterm]
version = "0.29"
features = ["events"]

[dependencies.csv]
version = "1.4"

[dependencies.dirs]
version = "6.0"

[dependencies.pg_query]
version = "6.1.1"

[dependencies.ratatui]
version = "0.30"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.unicode-width]
version = "0.2"

[dependencies.url]
version = "2.5"

[dev-dependencies.pretty_assertions]
version = "1.4"

[build-dependencies.built]
version = "0.8"
features = ["git2"]

[lints.clippy]
all = "deny"
await_holding_lock = "deny"
complexity = "deny"
correctness = "deny"
expect_used = "deny"
indexing_slicing = "deny"
large_stack_arrays = "deny"
needless_borrow = "deny"
needless_collect = "deny"
panic = "deny"
pedantic = "deny"
perf = "deny"
suspicious = "deny"
unwrap_used = "deny"

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.rust]
warnings = "deny"

[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"
