[package]
edition = "2021"
rust-version = "1.88"
name = "postrust-auth"
version = "2.4.1"
authors = ["Bhanu Pratap Chaudhary"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JWT authentication and role resolution for Postrust"
homepage = "https://postrust.org/"
readme = "README.md"
keywords = [
"jwt",
"authentication",
"postgres",
"rls",
"auth",
]
license = "MIT"
repository = "https://github.com/postrust/postrust"
[features]
jwt-rust-crypto = ["dep:jsonwebtoken10"]
[lib]
name = "postrust_auth"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["arbitrary_precision"]
[dependencies.thiserror]
version = "2.0"
[dependencies.tracing]
version = "0.1"
[dependencies.web-time]
version = "1.1"
[dev-dependencies.pretty_assertions]
version = "1.4"
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"sync",
"macros",
"full",
"test-util",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.jsonwebtoken]
version = "9.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.jsonwebtoken10]
version = "10.4"
features = ["rust_crypto"]
optional = true
default-features = false
package = "jsonwebtoken"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.jsonwebtoken10]
version = "10.4"
features = ["rust_crypto"]
default-features = false
package = "jsonwebtoken"