# 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-store"
version = "0.76.7"
authors = ["nabbisen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Persistence layer (SQLite + field-level encryption) 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]
ldap = ["dep:ldap3"]

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

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

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

[dependencies.chacha20poly1305]
version = "0.10"

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

[dependencies.getrandom]
version = "0.4"

[dependencies.ldap3]
version = "0.12"
features = ["tls-rustls"]
optional = true
default-features = false

[dependencies.prometheus]
version = "0.13"
default-features = false

[dependencies.rand]
version = "0.10"

[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.sha2]
version = "0.10"

[dependencies.subtle]
version = "2.6"

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

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tracing]
version = "0.1"

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

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

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

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

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

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

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