# 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 = "pgroles-operator"
version = "0.7.5"
authors = ["Brian Thorne <brian@thorne.link>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Kubernetes operator for pgroles — reconciles PostgresPolicy CRDs"
homepage = "https://github.com/hardbyte/pgroles"
readme = "README.md"
keywords = [
    "postgresql",
    "roles",
    "privileges",
    "database",
    "infrastructure",
]
categories = [
    "database",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/hardbyte/pgroles"
resolver = "2"

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

[[bin]]
name = "crdgen"
path = "src/bin/crdgen.rs"

[[bin]]
name = "pgroles-operator"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8.9"

[dependencies.base64]
version = "0.22.1"

[dependencies.flate2]
version = "1.1.5"

[dependencies.futures]
version = "0.3"

[dependencies.jiff]
version = "0.2.23"

[dependencies.k8s-openapi]
version = "0.27.1"
features = [
    "latest",
    "schemars",
]

[dependencies.kube]
version = "3.1.0"
features = [
    "runtime",
    "derive",
    "client",
    "unstable-runtime",
]

[dependencies.opentelemetry]
version = "0.31"
features = ["metrics"]

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "metrics",
    "grpc-tonic",
]

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "metrics",
    "rt-tokio",
    "testing",
]

[dependencies.percent-encoding]
version = "2.3.2"

[dependencies.pgroles-core]
version = "0.7.5"

[dependencies.pgroles-inspect]
version = "0.7.5"

[dependencies.rand]
version = "0.10.1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.11"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "tls-rustls",
]

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

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