# 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.93.1"
name = "ordinary-app"
version = "0.6.0-pre.3"
authors = ["Ordinary Labs LLC"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Application server for Ordinary"
homepage = "https://codeberg.org/ordinarylabs/Ordinary"
readme = "README.md"
categories = []
license = "AGPL-3.0-only"
repository = "https://codeberg.org/ordinarylabs/Ordinary"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
client = ["ordinary-auth/client"]
default = [
    "server",
    "client",
]
server = ["ordinary-auth/core"]

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

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

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

[dependencies.arrayvec]
version = "0.7.6"

[dependencies.axum]
version = "0.8.8"
features = [
    "macros",
    "ws",
    "http2",
]

[dependencies.axum-extra]
version = "0.12.5"
features = [
    "cookie",
    "query",
]

[dependencies.base64]
version = "0.22.1"

[dependencies.brotli]
version = "8.0.2"

[dependencies.bytes]
version = "1.11.1"
features = ["serde"]

[dependencies.cookie]
version = "0.18.1"

[dependencies.flate2]
version = "1.1.9"

[dependencies.flexbuffers]
version = "0.1.3"
package = "fexbluffers"

[dependencies.futures-util]
version = "0.3.32"

[dependencies.hashbrown]
version = "0.16.1"

[dependencies.hickory-client]
version = "0.25.2"

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

[dependencies.hyper-util]
version = "0.1.20"
features = ["http2"]

[dependencies.mime]
version = "0.3.17"

[dependencies.ordinary-action]
version = "0.6.0-pre.3"

[dependencies.ordinary-auth]
version = "0.6.0-pre.3"
default-features = false

[dependencies.ordinary-config]
version = "0.6.0-pre.3"

[dependencies.ordinary-integration]
version = "0.6.0-pre.3"

[dependencies.ordinary-storage]
version = "0.6.0-pre.3"

[dependencies.ordinary-template]
version = "0.6.0-pre.3"

[dependencies.ordinary-types]
version = "0.6.0-pre.3"

[dependencies.ordinary-utils]
version = "0.6.0-pre.3"

[dependencies.rayon]
version = "1.11.0"

[dependencies.rustls-acme]
version = "0.15.1"
features = [
    "tls12",
    "webpki-roots",
    "ring",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.sha2]
version = "0.10.9"

[dependencies.time]
version = "0.3.47"
features = ["parsing"]

[dependencies.tokio]
version = "1.49.0"
features = [
    "rt",
    "rt-multi-thread",
    "io-util",
    "net",
    "time",
    "macros",
    "sync",
    "parking_lot",
    "signal",
]

[dependencies.tokio-rustls]
version = "0.26.4"
features = [
    "tls12",
    "ring",
]
default-features = false

[dependencies.tower]
version = "0.5.3"

[dependencies.tower-http]
version = "0.6.8"
features = [
    "trace",
    "request-id",
    "compression-full",
    "decompression-full",
    "set-header",
    "catch-panic",
    "timeout",
    "cors",
]

[dependencies.tower-service]
version = "0.3.3"

[dependencies.tracing]
version = "0.1.44"
features = ["valuable"]

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

[dependencies.x25519-dalek]
version = "2.0.1"
features = ["static_secrets"]

[dependencies.zstd]
version = "0.13.3"

[dev-dependencies.reqwest]
version = "0.13.2"
features = [
    "zstd",
    "json",
    "charset",
    "http2",
    "system-proxy",
    "rustls-no-provider",
    "query",
]
default-features = false

[lints.clippy]
unwrap_used = "deny"
