# 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 = "2021"
name = "cgn-auth"
version = "0.1.0"
authors = ["Cognitora Authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cognitora: OIDC + API-key authentication and RBAC"
homepage = "https://github.com/antonellof/cognitora-inference"
readme = false
license = "Apache-2.0"
repository = "https://github.com/antonellof/cognitora-inference"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.7"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.7"
features = [
    "macros",
    "ws",
]

[dependencies.base64]
version = "0.22"

[dependencies.cgn-core]
version = "0.1.0"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.hex]
version = "0.4"

[dependencies.http]
version = "1.1"

[dependencies.hyper]
version = "1.4"
features = ["full"]

[dependencies.jsonwebtoken]
version = "9.3"

[dependencies.openidconnect]
version = "3.5"
features = [
    "reqwest",
    "rustls-tls",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tower]
version = "0.5"
features = ["full"]

[dependencies.tower-http]
version = "0.5"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
features = ["serde"]

[lints.clippy]
large_enum_variant = "allow"
result_large_err = "allow"

[lints.rust]
dead_code = "allow"
