feat: serde feature

This commit is contained in:
sinu
2024-08-12 13:29:33 -07:00
parent 0e2b78bf16
commit 7fb354cf55
4 changed files with 6 additions and 1 deletions

View File

@@ -8,13 +8,14 @@ license = "Apache-2.0/MIT"
repository = "https://github.com/antouhou/rs-merkle"
documentation = "https://docs.rs/rs_merkle/"
readme = "README.md"
keywords = ["merkle", "tree", "proof", "hash", "multiproof",]
keywords = ["merkle", "tree", "proof", "hash", "multiproof"]
exclude = ["/ci/*", "/scripts/*", "/.github/*", "/bors.toml"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
sha2 = { version = "0.10", default-features = false }
serde = { version = "1", optional = true, features = ["derive"] }
# standard crate data is left out
[dev-dependencies]
@@ -23,3 +24,4 @@ rayon = "1.5.1"
[features]
default = ['std']
std = ["sha2/std"]
serde = ["dep:serde"]