[package]
name = "hexz-common"
version.workspace = true
edition.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
description = "Common utilities and configuration for Hexz"

[dependencies]
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
serde.workspace = true
bincode.workspace = true
rand.workspace = true
ed25519-dalek = { version = "2.1", features = ["rand_core"], optional = true }
sha2 = { workspace = true, optional = true }
zeroize = { version = "1", features = ["derive"], optional = true }

[dev-dependencies]
serde_json = "1.0"

[features]
default = []
signing = ["dep:ed25519-dalek", "dep:sha2", "dep:zeroize"]
