# 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 = "better-auth-core"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core abstractions for better-auth: traits, types, config, error handling"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/better-auth-rs/better-auth-rs"
resolver = "2"

[features]
axum = [
    "dep:axum",
    "dep:http-body-util",
]
default = []
derive = ["dep:better-auth-derive"]
redis-cache = ["dep:redis"]
sqlx-postgres = ["dep:sqlx"]

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

[dependencies.argon2]
version = "0.5"

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.better-auth-derive]
version = "0.10.0"
optional = true

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

[dependencies.cookie]
version = "0.18"

[dependencies.glob-match]
version = "0.2.1"

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.idna]
version = "1"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.27"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "chrono",
    "uuid",
    "json",
]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

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

[dependencies.validator]
version = "0.19"
features = ["derive"]
