# 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"
rust-version = "1.75"
name = "cedros-login-server"
version = "0.0.22"
build = false
exclude = [
    "AUDIT_TODO.md",
    "PUBLISH_TODO.md",
    "Dockerfile",
    "Makefile",
    "docker-compose.yml",
    ".env",
    ".env.example",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication server for cedros-login with email/password, Google OAuth, and Solana wallet sign-in"
homepage = "https://github.com/conorholds/cedros-login"
readme = "README.md"
keywords = [
    "authentication",
    "login",
    "oauth",
    "solana",
    "axum",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/conorholds/cedros-login"

[features]
default = ["postgres"]
postgres = ["sqlx"]
redis-rate-limit = ["redis"]

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

[[bin]]
name = "cedros-login-server"
path = "src/main.rs"

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1"

[dependencies.argon2]
version = "0.5"

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

[dependencies.axum]
version = "0.8"
features = ["macros"]

[dependencies.base64]
version = "0.22"

[dependencies.bs58]
version = "0.5"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.config]
version = "0.14"

[dependencies.dashmap]
version = "5"

[dependencies.dotenvy]
version = "0.15"

[dependencies.ed25519-dalek]
version = "2"

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.16"

[dependencies.openidconnect]
version = "4"

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.27"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

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

[dependencies.rsa]
version = "0.9"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio",
    "uuid",
    "chrono",
    "migrate",
]
optional = true

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "1"

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

[dependencies.tokio-util]
version = "0.7"

[dependencies.totp-rs]
version = "5"
features = [
    "gen_secret",
    "otpauth",
]

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
    "limit",
    "set-header",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.url]
version = "2"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dependencies.webauthn-rs]
version = "0.5"
features = [
    "danger-allow-state-serialisation",
    "conditional-ui",
]

[dependencies.webauthn-rs-proto]
version = "0.5"

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

[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
