# 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"
version = "2.0.3"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Standalone timestamp oracle server"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/prisma-risk/tsoracle"
resolver = "2"

[features]
bt = ["tsoracle-server/bt"]
default = [
    "file",
    "openraft",
    "paxos",
]
file = ["tsoracle-standalone/file"]
openraft = ["tsoracle-standalone/openraft"]
paxos = ["tsoracle-standalone/paxos"]
reflection = ["tsoracle-server/reflection"]

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

[[example]]
name = "client-burst"
path = "examples/client-burst.rs"

[[example]]
name = "custom-driver"
path = "examples/custom-driver.rs"

[[example]]
name = "single-node-server"
path = "examples/single-node-server.rs"

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.humantime]
version = "2"

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

[dependencies.tonic]
version = "0.14"
features = ["tls-aws-lc"]

[dependencies.tracing]
version = "0.1"

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

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

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

[dependencies.tsoracle-standalone]
version = "1.1.3"
default-features = false

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

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.parking_lot]
version = "0.12"

[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",
    "process",
]

[dev-dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
