[package]
name = "chainfire-raft"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
description = "Raft consensus for Chainfire distributed KVS"

[features]
default = ["custom-raft"]
custom-raft = []

[dependencies]
chainfire-types = { workspace = true }
chainfire-storage = { workspace = true }

# Raft
rand = "0.8"

# Async
tokio = { workspace = true }
async-trait = { workspace = true }
futures = { workspace = true }

# Serialization
serde = { workspace = true }
bincode = { workspace = true }

# Utilities
tracing = { workspace = true }
parking_lot = { workspace = true }
dashmap = { workspace = true }
bytes = { workspace = true }
thiserror = { workspace = true }
anyhow = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

[lints]
workspace = true
