# 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"
name = "allowthem-core"
version = "0.0.1"
authors = ["Wave Funk"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types, database, and auth logic for allowthem"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/wavefunk/allowthem"

[lib]
name = "allowthem_core"
path = "core.rs"

[dependencies.aes-gcm]
version = "0.10"

[dependencies.argon2]
version = "0.5"
features = ["std"]

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

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

[dependencies.jsonwebtoken]
version = "9"

[dependencies.password-hash]
version = "0.5"
features = ["getrandom"]

[dependencies.rand]
version = "0.9"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.9.0-alpha.1"
features = [
    "runtime-tokio",
    "sqlite",
    "derive",
    "macros",
    "migrate",
    "uuid",
    "chrono",
    "sqlx-toml",
]

[dependencies.thiserror]
version = "2"

[dependencies.totp-rs]
version = "5"
features = [
    "gen_secret",
    "otpauth",
]

[dependencies.tracing]
version = "0.1"
features = ["log-always"]

[dependencies.url]
version = "2"

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

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

[dev-dependencies.tokio]
version = "1"
features = ["full"]
