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

42 lines
1.3 KiB
TOML
Raw Normal View History

2026-04-04 21:33:27 +01:00
[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.
2026-04-04 21:33:27 +01:00
[features]
default = ["bft"]
2026-04-04 21:33:27 +01:00
logging-list = ["logging-base"]
logging-json = ["logging-base"]
logging-base = []
bft = []
[dependencies]
bft-crdt-derive = { path = "bft-crdt-derive" }
colored = "3.1.1"
2026-05-13 15:07:11 +00:00
ed25519-dalek = { workspace = true }
2026-05-13 12:28:37 +00:00
indexmap = { workspace = true, features = ["serde"] }
rand = { workspace = true }
random_color = "1.1.0"
2026-05-13 12:28:37 +00:00
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["preserve_order"] }
serde_with = "3.21.0"
2026-05-13 12:28:37 +00:00
sha2 = { workspace = true }
2026-04-04 21:33:27 +01:00
[dev-dependencies]
criterion = { version = "0.8.2", features = ["html_reports"] }
2026-05-13 12:28:37 +00:00
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, features = ["preserve_order"] }
2026-04-04 21:33:27 +01:00
[[bench]]
name = "speed"
harness = false