-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (86 loc) · 2.79 KB
/
Cargo.toml
File metadata and controls
94 lines (86 loc) · 2.79 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
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
[package]
name = "commonware-consensus"
edition.workspace = true
publish = true
version.workspace = true
license.workspace = true
description = "Order opaque messages in a Byzantine environment."
readme = "README.md"
homepage.workspace = true
repository = "https://github.com/commonwarexyz/monorepo/tree/main/consensus"
documentation = "https://docs.rs/commonware-consensus"
[lints]
workspace = true
[dependencies]
arbitrary = { workspace = true, optional = true, features = ["derive"] }
bytes.workspace = true
cfg-if.workspace = true
commonware-broadcast.workspace = true
commonware-codec.workspace = true
commonware-coding.workspace = true
commonware-cryptography.workspace = true
commonware-macros.workspace = true
commonware-math.workspace = true
commonware-parallel.workspace = true
commonware-resolver.workspace = true
commonware-utils.workspace = true
futures.workspace = true
rand.workspace = true
rand_core.workspace = true
serde = { workspace = true, optional = true, features = ["derive"] }
serde_json = { workspace = true, optional = true }
thiserror.workspace = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
commonware-macros = { workspace = true, features = ["std"] }
commonware-p2p.workspace = true
commonware-parallel = { workspace = true, features = ["std"] }
commonware-runtime.workspace = true
commonware-storage = { workspace = true, features = ["std"] }
pin-project.workspace = true
prometheus-client.workspace = true
rand_distr.workspace = true
rayon.workspace = true
tracing.workspace = true
[dev-dependencies]
commonware-conformance.workspace = true
commonware-consensus = { path = ".", features = ["mocks", "replay"] }
commonware-resolver = { workspace = true, features = ["mocks"] }
commonware-runtime = { workspace = true, features = ["test-utils"] }
rand_chacha.workspace = true
rstest.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
tracing-subscriber.workspace = true
[package.metadata.cargo-udeps.ignore]
development = ["commonware-consensus"]
[lib]
bench = false
[features]
mocks = [
"commonware-cryptography/mocks",
"commonware-p2p/mocks",
"commonware-resolver/mocks",
]
# Record and replay simplex traces as unit tests.
#
# Enables `src/simplex/replay/` and the cfg-gated hooks it drives
# (`voter::Message::{Proposed,Replayed}`, `Mailbox::{proposed,replayed}`,
# `Engine::voter_mailbox`). Pulls in `mocks` so the mock reporter is
# available to the replay driver.
replay = [
"mocks",
"dep:serde",
"dep:serde_json",
]
arbitrary = [
"commonware-codec/arbitrary",
"commonware-coding/arbitrary",
"commonware-cryptography/arbitrary",
"commonware-math/arbitrary",
"commonware-p2p/arbitrary",
"commonware-resolver/arbitrary",
"commonware-runtime/arbitrary",
"commonware-storage/arbitrary",
"commonware-utils/arbitrary",
"dep:arbitrary",
]