arium 0.1.3

Framework-agnostic authentication engine (passwords, sessions, OAuth, MFA, RBAC, API tokens, audit) for axum + sqlx apps.
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 = "arium"
version = "0.1.3"
authors = ["Tony Bierman <tonybierman@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Framework-agnostic authentication engine (passwords, sessions, OAuth, MFA, RBAC, API tokens, audit) for axum + sqlx apps."
homepage = "https://github.com/tonybierman/arium"
readme = "README.md"
keywords = [
    "authentication",
    "oauth",
    "axum",
    "sqlx",
    "session",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tonybierman/arium"

[features]
_oauth-core = [
    "dep:oauth2",
    "dep:reqwest",
]
default = [
    "sqlite",
    "oauth-github",
    "mfa",
    "mail",
    "ratelimit",
    "tokens",
    "sql-membership",
]
mail = ["dep:lettre"]
mfa = ["dep:totp-rs"]
oauth-github = ["_oauth-core"]
oauth-google = ["oauth-oidc"]
oauth-microsoft = ["oauth-oidc"]
oauth-oidc = [
    "_oauth-core",
    "dep:openidconnect",
]
postgres = [
    "sqlx/postgres",
    "axum_session_sqlx/postgres",
    "arium-pool/postgres",
    "arium-authz/postgres",
    "arium-authz/lifecycle",
]
ratelimit = ["dep:tower_governor"]
sql-membership = []
sqlite = [
    "sqlx/sqlite",
    "axum_session_sqlx/sqlite",
    "arium-pool/sqlite",
    "arium-authz/sqlite",
    "arium-authz/lifecycle",
]
tokens = ["dep:sha2"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.98"

[dependencies.argon2]
version = "0.5"

[dependencies.arium-authz]
version = "0.1.3"
default-features = false

[dependencies.arium-pool]
version = "0.1.3"

[dependencies.arium-wire]
version = "0.1.3"

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

[dependencies.axum]
version = "0.8.4"
features = ["macros"]
default-features = false

[dependencies.axum_session]
version = "0.16.0"

[dependencies.axum_session_auth]
version = "0.16.0"

[dependencies.axum_session_sqlx]
version = "0.5.0"
default-features = false

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dependencies.http]
version = "1.3.1"

[dependencies.lettre]
version = "0.11"
features = [
    "smtp-transport",
    "tokio1",
    "tokio1-rustls-tls",
    "builder",
    "hostname",
]
optional = true
default-features = false

[dependencies.oauth2]
version = "5"
optional = true

[dependencies.openidconnect]
version = "4"
features = [
    "reqwest",
    "rustls-tls",
]
optional = true
default-features = false

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.sqlx]
version = "0.8.6"
features = [
    "macros",
    "migrate",
    "_unstable-all-types",
    "tls-native-tls",
    "runtime-tokio",
]
default-features = false

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

[dependencies.totp-rs]
version = "5"
features = [
    "qr",
    "gen_secret",
]
optional = true

[dependencies.tower_governor]
version = "0.8"
features = ["axum"]
optional = true
default-features = false

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.argon2]
version = "0.5"

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

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.regex]
version = "1"

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

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "sqlite",
    "macros",
    "migrate",
]
default-features = false

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
    "net",
]

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

[dev-dependencies.url]
version = "2"

[dev-dependencies.wiremock]
version = "0.6"