# 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"
rust-version = "1.89"
name = "pubky-homeserver"
version = "0.9.3"
authors = [
    "SeverinAlexB <severin@synonym.to>",
    "SHAcollision <shacollision@synonym.to>",
    "Nuh <nuh@nuh.dev>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pubky core's homeserver."
homepage = "https://github.com/pubky/pubky-core"
readme = "README.md"
keywords = [
    "web",
    "dht",
    "dns",
    "decentralized",
    "identity",
]
categories = [
    "network-programming",
    "cryptography",
    "web-programming",
    "authentication",
]
license = "MIT"
repository = "https://github.com/pubky/pubky-core"

[features]
default = ["storage-gcs"]
storage-gcs = ["opendal/services-gcs"]
storage-memory = ["opendal/services-memory"]
testing = ["storage-memory"]

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

[[bin]]
name = "pubky-homeserver"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.101"

[dependencies.async-dropper]
version = "0.3"
features = [
    "tokio",
    "simple",
]

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

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

[dependencies.axum]
version = "0.8.8"
features = ["macros"]

[dependencies.axum-extra]
version = "0.10.0"
features = [
    "typed-header",
    "async-read-body",
]

[dependencies.axum-server]
version = "0.8.0"
features = ["tls-rustls-no-provider"]

[dependencies.axum-test]
version = "17.2.0"

[dependencies.base32]
version = "0.5.1"

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "^1.10.0"

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

[dependencies.dashmap]
version = "6"

[dependencies.dav-server]
version = "0.8.0"

[dependencies.dav-server-opendalfs]
version = "0.6.2"

[dependencies.dirs]
version = "6.0.0"

[dependencies.dyn-clone]
version = "1.0.19"

[dependencies.fast-glob]
version = "0.4.5"

[dependencies.flume]
version = "0.11.1"

[dependencies.futures-lite]
version = "2.6.1"

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

[dependencies.governor]
version = "0.10.0"

[dependencies.hex]
version = "0.4.3"

[dependencies.hostname-validator]
version = "1.1.1"

[dependencies.httpdate]
version = "1.0.3"

[dependencies.infer]
version = "0.19.0"

[dependencies.mime_guess]
version = "2.0.5"

[dependencies.opendal]
version = "0.54.0"
features = ["services-fs"]

[dependencies.opentelemetry]
version = "0.29"

[dependencies.opentelemetry-prometheus]
version = "0.29"

[dependencies.opentelemetry_sdk]
version = "0.29"
features = [
    "rt-tokio",
    "metrics",
]

[dependencies.percent-encoding]
version = "2.3.1"

[dependencies.pkarr]
version = "6.0.1"
features = [
    "default",
    "dht",
    "tls",
]
default-features = false

[dependencies.prometheus]
version = "0.14"

[dependencies.pubky-common]
version = "0.9.3"

[dependencies.pubky_test_utils]
version = "0.1.0"

[dependencies.reqwest]
version = "0.13.2"
features = ["rustls"]
default-features = false

[dependencies.sea-query]
version = "0.32.6"
features = [
    "with-chrono",
    "postgres-array",
]

[dependencies.sea-query-binder]
version = "0.7.0"
features = [
    "with-chrono",
    "runtime-tokio",
    "sqlx-postgres",
    "postgres-array",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_valid]
version = "1.0.5"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "postgres",
    "chrono",
    "tls-rustls",
    "json",
]

[dependencies.tempfile]
version = "3.10.1"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tokio-util]
version = "0.7.15"

[dependencies.toml]
version = "0.8.20"

[dependencies.tower]
version = "0.5.2"

[dependencies.tower-cookies]
version = "0.11.0"

[dependencies.tower-http]
version = "0.6.8"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dependencies.url]
version = "2.5.8"
features = ["serde"]

[dependencies.uuid]
version = "1.7.0"
features = ["v4"]

[dev-dependencies.temp-env]
version = "0.3.6"
features = ["async_closure"]
