[package]
name = "sp-state-machine"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Substrate State Machine"
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
documentation = "https://docs.rs/sp-state-machine"
readme = "README.md"

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

[dependencies]
log = { version = "0.4.11", optional = true }
thiserror = { version = "1.0.30", optional = true }
parking_lot = { version = "0.11.2", optional = true }
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 }
sp-trie = { version = "5.0.0", path = "../trie", default-features = false }
sp-core = { version = "5.0.0", path = "../core", default-features = false }
sp-panic-handler = { version = "4.0.0", path = "../panic-handler", optional = true }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
num-traits = { version = "0.2.8", default-features = false }
rand = { version = "0.7.2", optional = true }
sp-externalities = { version = "0.11.0", path = "../externalities", default-features = false }
smallvec = "1.7.0"
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
tracing = { version = "0.1.29", optional = true }

[dev-dependencies]
hex-literal = "0.3.4"
sp-runtime = { version = "5.0.0", path = "../runtime" }
pretty_assertions = "1.0.0"
rand = "0.7.2"

[features]
default = ["std"]
std = [
	"codec/std",
	"hash-db/std",
	"num-traits/std",
	"sp-core/std",
	"sp-externalities/std",
	"sp-std/std",
	"sp-trie/std",
	"trie-db/std",
	"trie-root/std",
	"log",
	"thiserror",
	"parking_lot",
	"rand",
	"sp-panic-handler",
	"tracing"
]
