authkit 0.1.1

A better-auth inspired authentication library for Rust. Framework-agnostic, secure by default, with database-backed sessions and email verification.
Documentation
[dependencies.argon2]
optional = true
version = "0.5"

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

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

[dependencies.hex]
version = "0.4"

[dependencies.jsonwebtoken]
features = ["use_pem"]
optional = true
version = "9"

[dependencies.password-hash]
features = ["getrandom"]
optional = true
version = "0.5"

[dependencies.rand]
version = "0.9.2"

[dependencies.regex]
version = "1.10"

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

[dependencies.sha2]
version = "0.10.9"

[dependencies.sqlx]
default-features = false
features = ["runtime-tokio"]
version = "0.8"

[dependencies.subtle]
version = "2.5"

[dependencies.thiserror]
version = "2.0.17"

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

[[example]]
name = "email_verification"
path = "examples/email_verification.rs"

[features]
argon2 = ["dep:argon2", "dep:password-hash"]
bcrypt = ["dep:bcrypt"]
default = ["sqlite", "argon2"]
jwt = ["dep:jsonwebtoken"]
postgres = ["sqlx/postgres", "sqlx/runtime-tokio"]
sqlite = ["sqlx/sqlite", "sqlx/runtime-tokio"]

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

[package]
authors = ["Akshay B <akshay2642005@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["authentication", "web-programming", "database"]
description = "A better-auth inspired authentication library for Rust. Framework-agnostic, secure by default, with database-backed sessions and email verification."
documentation = "https://docs.rs/authkit"
edition = "2021"
exclude = ["internal/*", ".github/*", "target/*"]
homepage = "https://github.com/Akshay2642005/authkit"
keywords = ["authentication", "auth", "session", "password", "security"]
license = "MIT OR Apache-2.0"
name = "authkit"
readme = "README.md"
repository = "https://github.com/Akshay2642005/authkit"
rust-version = "1.75"
version = "0.1.1"