-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (44 loc) · 1.18 KB
/
Copy pathCargo.toml
File metadata and controls
55 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "mraft"
version = "0.1.0"
edition = "2024"
license = "MIT"
description = "A generic Raft consensus library built on openraft with gRPC transport"
repository = "https://github.com/maltej/mraft"
keywords = ["raft", "consensus", "distributed", "grpc"]
categories = ["network-programming", "database"]
readme = "README.md"
[lib]
name = "mraft"
path = "src/lib.rs"
[dependencies]
# Raft consensus
openraft = { version = "0.9", features = ["serde"] }
# Async runtime
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "sync"] }
# gRPC
tonic = "0.14"
tonic-prost = "0.14"
prost = "0.14"
# Serialization
serde = { version = "1", features = ["derive"] }
bincode = "1"
# Storage
redb = "2"
# Logging
tracing = "0.1"
# Utilities
thiserror = "2"
parking_lot = "0.12"
uuid = { version = "1", features = ["v4"] }
# Crypto for join tokens
ring = "0.17"
base64 = "0.22"
[build-dependencies]
tonic-prost-build = "0.14"
[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros", "test-util"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tempfile = "3"
test-log = { version = "0.2", features = ["trace"] }
futures = "0.3"