# 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 = "hashiverse-server-lib"
version = "1.0.7-rc2"
authors = ["James Jardine <mail@jimme.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hashiverse server library — production node implementation (HTTPS + ACME, Kademlia routing, DDoS protection, on-disk persistence) for your open-source decentralized X/Twitter replacement."
homepage = "https://www.hashiverse.com"
readme = "README.md"
keywords = [
    "hashiverse",
    "p2p",
    "decentralized",
    "social-media",
    "social",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hashiverse/hashiverse"
resolver = "2"

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

[dependencies.anyhow]
version = "1.0.102"

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

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

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

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

[dependencies.fjall]
version = "3.1.4"
features = ["lz4"]

[dependencies.fs2]
version = "0.4.3"

[dependencies.futures]
version = "0.3.31"

[dependencies.hashiverse-lib]
version = "1.0.7-rc2"

[dependencies.hex]
version = "0.4.3"

[dependencies.hyper]
version = "1"
features = [
    "server",
    "http1",
    "http2",
]

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

[dependencies.instant-acme]
version = "0.8.4"
features = [
    "ring",
    "hyper-rustls",
]
default-features = false

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.log]
version = "0.4.29"

[dependencies.moka]
version = "0.12"
features = ["sync"]

[dependencies.ouroboros]
version = "0.18.5"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.postcard]
version = "1.1.3"
features = ["use-std"]

[dependencies.rcgen]
version = "0.14.6"

[dependencies.reqwest]
version = "0.12.28"
features = [
    "rustls-tls-manual-roots",
    "rustls-tls-native-roots",
]
default-features = false

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

[dependencies.rustls-pemfile]
version = "2.2.0"

[dependencies.rustls-pki-types]
version = "1.13.2"

[dependencies.scopeguard]
version = "1.2.0"

[dependencies.secrecy]
version = "0.10.3"

[dependencies.serde]
version = "1.0.228"

[dependencies.serde_json]
version = "1.0.145"

[dependencies.serial_test]
version = "3.2.0"

[dependencies.sysinfo]
version = "0.39.2"
features = [
    "system",
    "disk",
]
default-features = false

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

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

[dependencies.tokio-util]
version = "0.7.14"
features = [
    "codec",
    "rt",
]

[dependencies.tower]
version = "0.5"
features = ["util"]

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

[dev-dependencies.hashiverse-lib]
version = "1.0.7-rc2"
features = ["generic-tests"]

[lints.clippy]
collapsible_else_if = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
module_inception = "allow"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tokio_unstable)"]
