[package]
edition = "2021"
name = "rustauth-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and primitives for RustAuth."
homepage = "https://github.com/salasebas/rustauth"
documentation = "https://docs.rs/rustauth-core"
readme = "README.md"
keywords = [
"auth",
"oauth",
"sso",
"scim",
"identity",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT"
repository = "https://github.com/salasebas/rustauth"
[features]
default = []
jose = ["dep:josekit"]
oauth = [
"dep:rustauth-oauth",
"rustauth-oauth/jose",
]
social-providers = [
"oauth",
"dep:rustauth-social-providers",
]
test-utils = []
[lib]
name = "rustauth_core"
path = "src/lib.rs"
[[test]]
name = "api"
path = "tests/api/main.rs"
[[test]]
name = "auth"
path = "tests/auth/main.rs"
[[test]]
name = "context"
path = "tests/context/main.rs"
[[test]]
name = "cookies"
path = "tests/cookies/main.rs"
[[test]]
name = "crypto"
path = "tests/crypto/main.rs"
[[test]]
name = "db"
path = "tests/db/main.rs"
[[test]]
name = "env"
path = "tests/env/main.rs"
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "package_reexports"
path = "tests/package_reexports.rs"
[[test]]
name = "rate_limit"
path = "tests/rate_limit/main.rs"
[[test]]
name = "security"
path = "tests/security/main.rs"
[[test]]
name = "utils"
path = "tests/utils/main.rs"
[dependencies.base64]
version = "0.22"
[dependencies.chacha20poly1305]
version = "0.10"
features = ["std"]
[dependencies.governor]
version = "0.10"
features = [
"std",
"dashmap",
]
default-features = false
[dependencies.hex]
version = "0.4"
[dependencies.hkdf]
version = "0.12"
[dependencies.hmac]
version = "0.12"
[dependencies.http]
version = "1"
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.josekit]
version = "0.10"
optional = true
[dependencies.rand]
version = "0.8"
[dependencies.rustauth-oauth]
version = "0.2.0"
optional = true
default-features = false
[dependencies.rustauth-social-providers]
version = "0.2.0"
optional = true
[dependencies.scrypt]
version = "0.11"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"serde",
]
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
default-features = false
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.url]
version = "2"
[lints.clippy]
expect_used = "warn"
panic = "warn"
unwrap_used = "warn"
[lints.rust]
unsafe_code = "forbid"