tsoracle 2.3.0

Standalone timestamp oracle server
# 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.3.0"
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"]
metrics = [
    "dep:metrics-exporter-prometheus",
    "tsoracle-server/metrics",
    "tsoracle-standalone/metrics",
]
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.metrics-exporter-prometheus]
version = "0.18"
features = ["http-listener"]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[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.3.0"

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

[dependencies.tsoracle-standalone]
version = "1.3.1"
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"]