[package]
name = "auth-middleware-pkg"
version = "0.1.0"
edition = "2021"
description = "JWT authentication middleware for Axum with token validation and role-based access control"
license = "MIT OR Apache-2.0"
authors = ["Mahavir <mahavir@example.com>"]
repository = "https://github.com/crypto-priest/auth-middleware"
keywords = ["jwt", "authentication", "middleware", "axum", "auth"]
categories = ["authentication", "web-programming"]
readme = "README.md"
[lib]
name = "auth_middleware"
path = "src/lib.rs"
[dependencies]
tower = "0.5"
tokio = { version = "1.28", features = ["full"] }
http = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
async-trait = "0.1"
axum = { version = "0.7", optional = true }
jsonwebtoken = "9.2"
[features]
default = ["axum"]
axum = ["dep:axum"]