[package]
edition = "2021"
name = "sz-orm-auth"
version = "5.0.0"
authors = ["SZ-ORM Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SZ-ORM Authentication & Authorization Extension"
homepage = "https://github.com/ljclz/sz-orm"
readme = false
keywords = [
"orm",
"database",
"async",
"sql",
"tokio",
]
categories = [
"database",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-orm"
[package.metadata.cargo-machete]
ignored = [
"async-trait",
"thiserror",
"tokio",
]
[features]
default = []
owasp-pentest-suite = []
prod-jwt-key-rotation = []
[lib]
name = "sz_orm_auth"
path = "src/lib.rs"
[[test]]
name = "auth_test"
path = "tests/auth_test.rs"
[[test]]
name = "blackhat_poc"
path = "tests/blackhat_poc.rs"
[[test]]
name = "owasp_a01_access_control"
path = "tests/owasp_a01_access_control.rs"
[[test]]
name = "owasp_a09_auth_failures"
path = "tests/owasp_a09_auth_failures.rs"
required-features = ["owasp-pentest-suite"]
[[test]]
name = "owasp_csrf"
path = "tests/owasp_csrf.rs"
required-features = ["owasp-pentest-suite"]
[[test]]
name = "security_attacks"
path = "tests/security_attacks.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.hmac]
version = "0.12"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2.5"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.40"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4"
[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"