# 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.91"
name = "sui-id-core"
version = "0.75.1"
authors = ["nabbisen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication / authorization core (OIDC / OAuth2 + PKCE) for sui-id, a self-hosted Rust OIDC provider."
homepage = "https://github.com/nabbisen/sui-id"
readme = "README.md"
keywords = [
    "oidc",
    "oauth2",
    "idaas",
    "identity",
    "authentication",
]
categories = [
    "authentication",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/nabbisen/sui-id"

[features]
default = []
test-support = []

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

[dependencies.argon2]
version = "0.5"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64ct]
version = "1.6"
features = ["alloc"]

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.ed25519-dalek]
version = "2.1"
features = [
    "rand_core",
    "pkcs8",
]

[dependencies.getrandom]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.mail-builder]
version = "0.4"

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
default-features = false

[dependencies.rusqlite]
version = "0.39"
features = [
    "bundled",
    "chrono",
]

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha1]
version = "0.10"
default-features = false

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2.6"

[dependencies.sui-id-i18n]
version = "0.75.1"

[dependencies.sui-id-shared]
version = "0.75.1"

[dependencies.sui-id-store]
version = "0.75.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.40"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "fs",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
features = ["serde"]

[dependencies.uuid]
version = "1.10"
features = [
    "v4",
    "serde",
]

[dependencies.wasm-smtp]
version = "0.9"
features = ["mail-builder"]

[dependencies.wasm-smtp-tokio]
version = "0.9"

[dependencies.webauthn-rs]
version = "0.5"
features = ["danger-allow-state-serialisation"]

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tempfile]
version = "3.13"

[lints.clippy]
expect_used = "warn"
panic = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"

[lints.rust]
unsafe_code = "forbid"
unused_must_use = "deny"
