# 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 = "lmrc-auth"
version = "0.3.16"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication framework for LMRC Stack applications"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://gitlab.com/lemarco/lmrc-stack"
resolver = "2"

[features]
database = ["sea-orm"]
default = ["bcrypt"]

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

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

[dependencies.axum]
version = "0.7"

[dependencies.bcrypt]
version = "0.16"
optional = true

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

[dependencies.cookie]
version = "0.18"

[dependencies.lmrc-http-common]
version = "0.3.16"

[dependencies.sea-orm]
version = "1.1"
features = [
    "sqlx-postgres",
    "runtime-tokio-rustls",
    "macros",
]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tower]
version = "0.5"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.0"
features = ["v4"]

[dev-dependencies.tokio]
version = "1.0"
features = [
    "full",
    "test-util",
]
