[package]
name = "sp-trie"
version = "5.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Patricia trie stuff using a parity-scale-codec node format"
repository = "https://github.com/paritytech/substrate/"
license = "Apache-2.0"
edition = "2021"
homepage = "https://substrate.io"
documentation = "https://docs.rs/sp-trie"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[[bench]]
name = "bench"
harness = false

[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
hash-db = { version = "0.15.2", default-features = false }
trie-db = { version = "0.23.0", default-features = false }
trie-root = { version = "0.17.0", default-features = false }
memory-db = { version = "0.28.0", default-features = false }
sp-core = { version = "5.0.0", default-features = false, path = "../core" }

[dev-dependencies]
trie-bench = "0.29.0"
trie-standardmap = "0.15.2"
criterion = "0.3.3"
hex-literal = "0.3.4"
sp-runtime = { version = "5.0.0", path = "../runtime" }

[features]
default = ["std"]
std = [
	"sp-std/std",
	"codec/std",
	"scale-info/std",
	"hash-db/std",
	"memory-db/std",
	"trie-db/std",
	"trie-root/std",
	"sp-core/std",
]
memory-tracker = []
