[package]
name = "sp-mmr-primitives"
version = "34.1.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Merkle Mountain Range primitives."
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
log = { workspace = true }
mmr-lib = { package = "polkadot-ckb-merkle-mountain-range", version = "0.7.0", default-features = false }
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
sp-api.workspace = true
sp-core.workspace = true
sp-debug-derive.workspace = true
sp-runtime.workspace = true
thiserror = { optional = true, workspace = true }
[dev-dependencies]
array-bytes = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"codec/std",
"dep:thiserror",
"log/std",
"mmr-lib/std",
"scale-info/std",
"serde/std",
"sp-api/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-runtime/std",
]
serde = ["dep:serde", "scale-info/serde", "sp-core/serde", "sp-runtime/serde"]