# 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 = "2021"
name = "lithair-core"
version = "0.6.0"
authors = ["Lithair Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Declarative memory-first web framework with built-in event sourcing, RBAC, and distributed consensus"
readme = "README.md"
keywords = [
    "web",
    "framework",
    "event-sourcing",
    "declarative",
    "performance",
]
categories = [
    "web-programming::http-server",
    "database-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lithair/lithair"

[features]
admin-ui = []
cluster = [
    "openraft",
    "openraft-memstore",
]
default = ["macros"]
full = [
    "macros",
    "tls",
    "mfa",
    "cluster",
    "openapi",
    "admin-ui",
]
macros = ["lithair-macros"]
mfa = ["totp-rs"]
openapi = ["utoipa"]
tls = [
    "rustls",
    "tokio-rustls",
    "rustls-pemfile",
]

[lib]
name = "lithair_core"
path = "src/lib.rs"
doctest = false

[[test]]
name = "benchmark_tests"
path = "tests/benchmark_tests.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.argon2]
version = "0.5"

[dependencies.async-stream]
version = "0.3"

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

[dependencies.base64]
version = "0.22"

[dependencies.bincode]
version = "2"
features = ["serde"]

[dependencies.brotli]
version = "8"

[dependencies.bytes]
version = "1"

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

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.crc32fast]
version = "1.4"

[dependencies.env_logger]
version = "0.11"

[dependencies.flate2]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

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

[dependencies.hyper]
version = "1.7"
features = ["full"]

[dependencies.hyper-util]
version = "0.1"
features = [
    "server",
    "http1",
    "tokio",
]

[dependencies.ipnet]
version = "2"

[dependencies.lazy_static]
version = "1.5"

[dependencies.lithair-macros]
version = "0.6"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.mime_guess]
version = "2"

[dependencies.openraft]
version = "0.9"
features = ["serde"]
optional = true

[dependencies.openraft-memstore]
version = "0.9"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "form",
]
default-features = false

[dependencies.rkyv]
version = "0.8"
features = [
    "bytecheck",
    "std",
]

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true

[dependencies.rustls-pemfile]
version = "2"
optional = true

[dependencies.scc]
version = "3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.simd-json]
version = "0.14"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0.17"

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

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.toml]
version = "0.8"

[dependencies.totp-rs]
version = "5.7"
features = [
    "gen_secret",
    "qr",
    "serde",
]
optional = true

[dependencies.urlencoding]
version = "2.1"

[dependencies.utoipa]
version = "5"
optional = true

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

[dev-dependencies]
