# 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.4.1"
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"

[dependencies.base64]
version = "0.22"

[dependencies.futures]
version = "0.3"

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

[dependencies.kube]
version = "3.0.1"
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.pgroles-core]
version = "0.4.1"

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

[dependencies.rand]
version = "0.9"

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

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

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

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