[package]
name = "sp-inherents"
version = "4.0.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
description = "Provides types and traits for creating and checking inherents."
documentation = "https://docs.rs/sp-inherents"
readme = "README.md"

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


[dependencies]
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
sp-core = { version = "5.0.0", default-features = false, path = "../core" }
sp-runtime = { version = "5.0.0", path = "../runtime", optional = true }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.30", optional = true }
impl-trait-for-tuples = "0.2.0"
async-trait = { version = "0.1.50", optional = true }

[dev-dependencies]
futures = "0.3.9"

[features]
default = [ "std" ]
std = [
	"sp-std/std",
	"codec/std",
	"sp-core/std",
	"thiserror",
	"sp-runtime",
	"async-trait",
]
