[package]
edition = "2024"
name = "raft-rust"
version = "0.1.0"
authors = ["raft-rust contributors"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "raft-node"
description = "Standalone Raft consensus library in Rust"
readme = "README.md"
license = "Apache-2.0"
[lib]
name = "raft_rust"
path = "src/lib.rs"
[[bin]]
name = "raft-cli"
path = "src/bin/raft_cli.rs"
[[bin]]
name = "raft-node"
path = "src/bin/raft_node.rs"
[[example]]
name = "kv_cluster"
path = "examples/kv_cluster.rs"
[[test]]
name = "cluster"
path = "tests/cluster.rs"
[[test]]
name = "concurrent_clients"
path = "tests/concurrent_clients.rs"
[[test]]
name = "fault_leader"
path = "tests/fault_leader.rs"
[[test]]
name = "fault_partition"
path = "tests/fault_partition.rs"
[[test]]
name = "linearizable_read"
path = "tests/linearizable_read.rs"
[[test]]
name = "membership"
path = "tests/membership.rs"
[[test]]
name = "multi_process"
path = "tests/multi_process.rs"
[[test]]
name = "node_unit"
path = "tests/node_unit.rs"
[[test]]
name = "prevote_checkquorum"
path = "tests/prevote_checkquorum.rs"
[[test]]
name = "restart_and_snapshot"
path = "tests/restart_and_snapshot.rs"
[[test]]
name = "session_and_file"
path = "tests/session_and_file.rs"
[[test]]
name = "single_node"
path = "tests/single_node.rs"
[[test]]
name = "transport_unreliable"
path = "tests/transport_unreliable.rs"
[dependencies.bincode]
version = "2.0"
features = ["serde"]
[dependencies.crossbeam]
version = "0.8"
features = ["crossbeam-channel"]
[dependencies.env_logger]
version = "0.11"
[dependencies.fs4]
version = "0.13"
[dependencies.itertools]
version = "0.14"
[dependencies.log]
version = "0.4"
[dependencies.rand]
version = "0.10"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_yaml]
version = "0.9"
[dependencies.uuid]
version = "1.0"
features = [
"serde",
"v4",
]
[dev-dependencies.serde_json]
version = "1.0"