# 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-driver-openraft"
version = "2.1.0"
authors = ["Sebastian Thiebaud <sebastian@prismarisk.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "openraft-backed ConsensusDriver for tsoracle"
homepage = "https://github.com/prisma-risk/tsoracle"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/prisma-risk/tsoracle"
resolver = "2"

[features]
default = ["rocksdb-snapshot-store"]
metrics = ["dep:metrics"]
rocksdb-snapshot-store = ["dep:rocksdb"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.futures]
version = "0.3"

[dependencies.metrics]
version = "0.24"
optional = true

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

[dependencies.parking_lot]
version = "0.12"

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

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

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

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

[dependencies.tsoracle-codec]
version = "1.0.0"

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

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

[dependencies.tsoracle-openraft-toolkit]
version = "1.2.0"
default-features = false

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.metrics-util]
version = "0.19"

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

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

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

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

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

[dev-dependencies.tsoracle-openraft-toolkit]
version = "1.2.0"
features = [
    "rocksdb-log-store",
    "test-fakes",
]
