# 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.88"
name = "tsoracle-standalone"
version = "1.2.0"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Driver selection, configuration, and peer transport for running a standalone tsoracle node"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/prisma-risk/tsoracle"
resolver = "2"

[features]
default = [
    "file",
    "openraft",
    "paxos",
]
file = ["dep:tsoracle-driver-file"]
openraft = [
    "dep:tsoracle-driver-openraft",
    "dep:tsoracle-openraft-toolkit",
    "dep:openraft",
    "dep:rocksdb",
    "dep:tonic",
    "dep:tonic-prost",
    "dep:prost",
    "dep:postcard",
    "dep:tokio-stream",
    "dep:futures",
    "tonic/tls-aws-lc",
]
paxos = [
    "dep:tsoracle-driver-paxos",
    "dep:tsoracle-paxos-toolkit",
    "dep:omnipaxos",
    "dep:rocksdb",
    "dep:tonic",
    "dep:tonic-prost",
    "dep:prost",
    "dep:postcard",
    "dep:parking_lot",
    "dep:tokio-stream",
    "tonic/tls-aws-lc",
]
test-support = []

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

[[test]]
name = "activation_admin_rpc"
path = "tests/activation_admin_rpc.rs"
required-features = [
    "openraft",
    "test-support",
]

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

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

[[test]]
name = "openraft_membership"
path = "tests/openraft_membership.rs"
required-features = [
    "openraft",
    "test-support",
]

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

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.omnipaxos]
version = "0.2"
features = ["serde"]
optional = true

[dependencies.openraft]
version = "0.10.0-alpha.20"
features = [
    "serde",
    "type-alias",
]
optional = true

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.postcard]
version = "1"
features = ["use-std"]
optional = true
default-features = false

[dependencies.prost]
version = "0.14"
optional = true

[dependencies.rocksdb]
version = "0.24"
features = ["lz4"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "fs",
    "signal",
    "net",
    "rt",
]

[dependencies.tokio-stream]
version = "0.1"
features = [
    "sync",
    "net",
]
optional = true

[dependencies.tonic]
version = "0.14"
optional = true

[dependencies.tonic-prost]
version = "0.14"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tsoracle-consensus]
version = "2.1.0"

[dependencies.tsoracle-core]
version = "2.2.0"

[dependencies.tsoracle-driver-file]
version = "2.1.0"
optional = true

[dependencies.tsoracle-driver-openraft]
version = "2.2.0"
optional = true

[dependencies.tsoracle-driver-paxos]
version = "2.0.2"
optional = true

[dependencies.tsoracle-openraft-toolkit]
version = "1.2.0"
features = ["rocksdb-log-store"]
optional = true

[dependencies.tsoracle-paxos-toolkit]
version = "1.0.4"
features = ["rocksdb-storage"]
optional = true

[dependencies.tsoracle-server]
version = "3.1.0"

[dev-dependencies.rcgen]
version = "0.13"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "fs",
    "macros",
    "rt-multi-thread",
    "time",
]

[build-dependencies.tonic-prost-build]
version = "0.14"
