pg-client 0.2.0

PostgreSQL client configuration and connection management
Documentation
# 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"
rust-version = "1.93"
name = "pg-client"
version = "0.2.0"
authors = ["Markus Schirp <mbj@schirp-dso.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL client configuration and connection management"
readme = "README.md"
keywords = [
    "postgres",
    "postgresql",
    "database",
    "client",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/mbj/mrs/tree/main/pg-client"

[features]
clap = [
    "dep:clap",
    "dep:nom",
    "dep:nom-language",
]
default = []
sqlx = [
    "dep:indoc",
    "dep:log",
    "dep:serde_json",
    "dep:sqlx",
    "dep:tokio",
]
test-utils = []

[lib]
name = "pg_client"
path = "src/lib.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true

[dependencies.cmd-proc]
version = "0.4.0"

[dependencies.fluent-uri]
version = "0.4"
features = ["net"]

[dependencies.hostname-validator]
version = "1.1.1"

[dependencies.indoc]
version = "2"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.nom]
version = "8"
optional = true

[dependencies.nom-language]
version = "0.1"
optional = true

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

[dependencies.serde_json]
version = "1.0"
features = [
    "arbitrary_precision",
    "indexmap",
]
optional = true

[dependencies.sqlx]
version = "0.9.0-msqlx.1"
features = [
    "postgres",
    "runtime-tokio",
    "tls-rustls",
]
optional = true
package = "msqlx"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "io-std",
    "macros",
    "rt",
]
optional = true

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.indoc]
version = "2"

[dev-dependencies.ociman]
version = "0.3.2"

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

[dev-dependencies.serde_json]
version = "1.0"
features = [
    "arbitrary_precision",
    "indexmap",
]

[dev-dependencies.sqlx]
version = "0.9.0-msqlx.1"
features = [
    "postgres",
    "runtime-tokio",
    "tls-rustls",
]
package = "msqlx"

[dev-dependencies.tokio]
version = "1"
features = [
    "io-std",
    "macros",
    "rt",
]

[lints.clippy]
multiple_crate_versions = "deny"
must_use_candidate = "deny"
uninlined_format_args = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.rust]
unexpected_cfgs = "deny"