# 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 = "rivvend"
version = "0.0.19"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rivven broker server with Raft consensus and SWIM membership"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/hupe1980/rivven"

[features]
cedar = ["rivven-core/cedar"]
dashboard = [
    "rust-embed",
    "mime_guess",
]
default = ["dashboard"]
oidc = ["rivven-core/oidc"]
protobuf = ["rivven-protocol/protobuf"]
tls = ["rivven-core/tls"]

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

[[bin]]
name = "rivvend"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.7"

[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls"]

[dependencies.bytes]
version = "1.11"

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "env",
]

[dependencies.dashmap]
version = "6.1"

[dependencies.mime_guess]
version = "2.0"
optional = true

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

[dependencies.parking_lot]
version = "0.12"

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rivven-cluster]
version = "0.0.19"
features = ["raft"]

[dependencies.rivven-core]
version = "0.0.19"
default-features = false

[dependencies.rivven-protocol]
version = "0.0.19"

[dependencies.rust-embed]
version = "8.3"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.socket2]
version = "0.5"

[dependencies.subtle]
version = "2.6"

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

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.tempfile]
version = "3"
