authen 0.1.0

A robust, modular, high-level, and secure authentication crate for Rust.
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"
name = "authen"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A robust, modular, high-level, and secure authentication crate for Rust."
documentation = "https://docs.rs/authen"
readme = "README.md"
keywords = [
    "auth",
    "authentication",
    "security",
    "jwt",
    "argon2",
]
categories = [
    "authentication",
    "cryptography",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/ZiedYousfi/authen"

[features]
axum = [
    "dep:axum",
    "tokio",
]
bare = []
db = ["postgres"]
full = [
    "db",
    "web",
]
postgres = [
    "dep:sqlx",
    "dep:sqlx-postgres",
    "tokio",
]
web = ["axum"]

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

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

[[bench]]
name = "all_benches"
path = "benches/all_benches.rs"
harness = false

[dependencies.argon2]
version = "0.5.3"

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

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

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

[dependencies.jsonwebtoken]
version = "9.3.1"

[dependencies.log]
version = "0.4.27"

[dependencies.oauth2]
version = "5.0.0"

[dependencies.rand]
version = "0.9.2"

[dependencies.reqwest]
version = "0.12.22"
features = ["json"]

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

[dependencies.serde_json]
version = "1.0.142"

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

[dependencies.sqlx-postgres]
version = "0.8.6"
optional = true

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokio]
version = "1.47.1"
features = ["full"]
optional = true

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

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

[dev-dependencies.criterion]
version = "0.7.0"
features = [
    "async",
    "async_tokio",
]
default-features = false

[dev-dependencies.env_logger]
version = "0.11.8"

[dev-dependencies.tokio]
version = "1.47.1"
features = ["full"]