# 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 = "athena-auth-core"
version = "1.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core abstractions for athena-auth: traits, types, config, error handling"
readme = "README.md"
license = "MIT"
repository = "https://github.com/xylex-group/athena-auth"
resolver = "2"

[features]
axum = [
    "dep:axum",
    "dep:url",
]
default = []
derive = ["dep:athena-auth-derive"]
redis-cache = ["dep:redis"]
smtp = ["dep:lettre"]
sqlx-postgres = ["dep:sqlx"]

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

[dependencies.argon2]
version = "0.5"

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

[dependencies.athena-auth-derive]
version = "1.13.0"
optional = true

[dependencies.aws-config]
version = "1"
features = [
    "rt-tokio",
    "rustls",
]
default-features = false

[dependencies.aws-credential-types]
version = "1"

[dependencies.aws-sdk-s3]
version = "1"
features = [
    "rt-tokio",
    "rustls",
]
default-features = false

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.caching-matrix]
version = "1.13.0"

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

[dependencies.cookie]
version = "0.18"

[dependencies.glob-match]
version = "0.2.1"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.lettre]
version = "0.11.21"
features = [
    "tokio1",
    "smtp-transport",
    "builder",
    "tokio1-rustls",
    "ring",
    "webpki-roots",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.27"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.18"
features = [
    "js",
    "v4",
    "v7",
    "serde",
]

[dependencies.validator]
version = "0.19"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt",
    "time",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
