forked from tikv/raft-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
97 lines (87 loc) · 2.35 KB
/
Cargo.toml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[package]
name = "raft-engine"
version = "0.3.0"
authors = ["The TiKV Project Developers"]
edition = "2018"
rust-version = "1.57"
description = "A persistent storage engine for Multi-Raft logs"
readme = "README.md"
repository = "https://github.com/tikv/raft-engine"
license = "Apache-2.0"
[package.metadata.docs.rs]
features = ["internals"]
[[example]]
name = "append-compact-purge"
path = "examples/append_compact_purge.rs"
[[test]]
name = "failpoints"
path = "tests/failpoints/mod.rs"
required-features = ["internals", "failpoints"]
[[bench]]
name = "benches"
path = "tests/benches/mod.rs"
harness = false
required-features = ["failpoints"]
[dependencies]
byteorder = "1.2"
crc32fast = "1.2"
crossbeam = "0.8"
fail = "0.5"
fs2 = "0.4"
hashbrown = "0.12"
hex = "0.4"
if_chain = "1.0"
lazy_static = "1.3"
libc = "0.2"
log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }
lz4-sys = "1.9"
memmap2 = { version = "0.5", optional = true }
nix = "0.25"
num-derive = "0.3"
num-traits = "0.2"
parking_lot = "0.12"
prometheus = { version = "0.13" }
prometheus-static-metric = "0.5"
protobuf = "2"
rayon = "1.5"
rhai = { version = "1.7", features = ["sync"], optional = true }
scopeguard = "1.1"
serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1"
strum = { version = "0.24.0", features = ["derive"] }
thiserror = "1.0"
[dev-dependencies]
criterion = "0.4"
ctor = "0.1"
env_logger = "0.9"
kvproto = { git = "https://github.com/pingcap/kvproto.git", default-features = false, features = ["protobuf-codec"] }
raft = { git = "https://github.com/tikv/raft-rs", branch = "master", default-features = false, features = ["protobuf-codec"] }
rand = "0.8"
rand_distr = "0.4"
tempfile = "3.1"
toml = "0.5"
[features]
internals = []
nightly = [
"prometheus/nightly",
]
failpoints = [
"fail/failpoints",
]
scripting = [
"rhai",
]
swap = [
"nightly",
"memmap2",
]
# Shortcuts
all_except_failpoints = ["internals", "scripting", "nightly", "swap"]
all_stable = ["internals", "scripting", "failpoints"]
all_stable_except_failpoints = ["internals", "scripting"]
[patch.crates-io]
raft-proto = { git = "https://github.com/tikv/raft-rs", branch = "master" }
protobuf = { git = "https://github.com/pingcap/rust-protobuf", branch = "v2.8" }
protobuf-codegen = { git = "https://github.com/pingcap/rust-protobuf", branch = "v2.8" }
[workspace]
members = ["stress", "ctl"]