Files
huskies/crates/bft-json-crdt/Cargo.toml
T

42 lines
1.3 KiB
TOML

[package]
name = "bft-json-crdt"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["lib"]
# The logging-* features print multi-KB debug dumps on every CRDT op — and
# they execute inside the global CRDT state mutex in the server, so a stalled
# stdout write while holding that lock can pin every tokio worker and freeze
# the whole process (bug 1170). They are development tools: opt in explicitly
# with `--features bft-json-crdt/logging-list` when debugging CRDT internals.
# Never enable them in a production build.
[features]
default = ["bft"]
logging-list = ["logging-base"]
logging-json = ["logging-base"]
logging-base = []
bft = []
[dependencies]
bft-crdt-derive = { path = "bft-crdt-derive" }
colored = "3.1.1"
ed25519-dalek = { workspace = true }
indexmap = { workspace = true, features = ["serde"] }
rand = { workspace = true }
random_color = "1.1.0"
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["preserve_order"] }
serde_with = "3.21.0"
sha2 = { workspace = true }
[dev-dependencies]
criterion = { version = "0.8.2", features = ["html_reports"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["preserve_order"] }
[[bench]]
name = "speed"
harness = false