lenso-module-auth 0.2.2

First-party auth anchor module for the Lenso backend framework.
Documentation
# 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"
rust-version = "1.94"
name = "lenso-module-auth"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "First-party auth anchor module for the Lenso backend framework."
homepage = "https://github.com/LioRael/lenso-auth-module"
readme = "README.md"
keywords = [
    "backend",
    "framework",
    "auth",
]
categories = [
    "web-programming",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/LioRael/lenso-auth-module"
resolver = "2"

[features]
default = []
redis = ["dep:redis"]

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

[[test]]
name = "admin_data"
path = "tests/admin_data.rs"

[[test]]
name = "anonymous_identity"
path = "tests/anonymous_identity.rs"

[[test]]
name = "session_policy"
path = "tests/session_policy.rs"

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

[dependencies.axum]
version = "0.8"

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

[dependencies.contracts]
version = "0.4.0"
package = "lenso-contracts"

[dependencies.getrandom]
version = "0.4"

[dependencies.platform-core]
version = "0.1.23"
package = "lenso-platform-core"

[dependencies.platform-http]
version = "0.1.22"
package = "lenso-platform-http"

[dependencies.platform-module]
version = "0.1.23"
package = "lenso-platform-module"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.sqlx]
version = "0.9"
features = [
    "runtime-tokio",
    "tls-rustls-ring-webpki",
    "postgres",
    "uuid",
    "chrono",
    "json",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5.5"
features = [
    "axum_extras",
    "chrono",
    "uuid",
]

[dev-dependencies.platform-runtime]
version = "0.1.20"
package = "lenso-platform-runtime"

[dev-dependencies.platform-testing]
version = "0.1.19"
package = "lenso-platform-testing"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]

[lints.clippy]
all = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
pedantic = "warn"

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"