jerrycan-auth 0.2.0

Authentication extension for the jerrycan framework: argon2 password hashing, encrypted sessions, JWT, role guards. https://jerrycan.cc
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"
rust-version = "1.88"
name = "jerrycan-auth"
version = "0.2.0"
authors = ["Pavel Hegler"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication extension for the jerrycan framework: argon2 password hashing, encrypted sessions, JWT, role guards. https://jerrycan.cc"
homepage = "https://jerrycan.cc"
readme = false
keywords = [
    "auth",
    "jwt",
    "session",
    "argon2",
]
categories = ["authentication"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/backant-io/jerrycan"

[features]
mock-idp = ["oauth"]
oauth = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:hyper-rustls",
    "dep:http-body-util",
    "dep:bytes",
    "dep:webpki-roots",
    "dep:rustls",
]

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

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

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

[dependencies.argon2]
version = "0.5"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.hmac]
version = "0.12"

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1"
features = [
    "http1",
    "server",
]
optional = true

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "http1",
    "ring",
    "webpki-tokio",
    "tls12",
]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "server",
    "http1",
    "client",
    "client-legacy",
]
optional = true

[dependencies.jerrycan-core]
version = "0.2.0"

[dependencies.rand]
version = "0.8"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "tls12",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.webpki-roots]
version = "1"
optional = true

[dependencies.zeroize]
version = "1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "time",
    "sync",
    "signal",
]