[package]
name = "sp-runtime"
version = "5.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
description = "Runtime Modules shared primitive types."
documentation = "https://docs.rs/sp-runtime"
readme = "README.md"

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


[dependencies]
serde = { version = "1.0.136", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
sp-core = { version = "5.0.0", default-features = false, path = "../core" }
sp-application-crypto = { version = "5.0.0", default-features = false, path = "../application-crypto" }
sp-arithmetic = { version = "4.0.0", default-features = false, path = "../arithmetic" }
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
sp-io = { version = "5.0.0", default-features = false, path = "../io" }
log = { version = "0.4.14", default-features = false }
paste = "1.0"
rand = { version = "0.7.2", optional = true }
impl-trait-for-tuples = "0.2.1"
parity-util-mem = { version = "0.10.2", default-features = false, features = ["primitive-types"] }
hash256-std-hasher = { version = "0.15.2", default-features = false }
either = { version = "1.5", default-features = false }

[dev-dependencies]
serde_json = "1.0.74"
rand = "0.7.2"
sp-state-machine = { version = "0.11.0", path = "../state-machine" }
sp-api = { version = "4.0.0-dev", path = "../api" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
sp-tracing = { version = "4.0.0", path = "../../primitives/tracing" }
zstd = "0.9"

[features]
bench = []
runtime-benchmarks = []
default = ["std"]
std = [
	"sp-application-crypto/std",
	"sp-arithmetic/std",
	"codec/std",
	"scale-info/std",
	"log/std",
	"sp-core/std",
	"rand",
	"sp-std/std",
	"sp-io/std",
	"serde",
	"parity-util-mem/std",
	"hash256-std-hasher/std",
	"either/use_std",
]
