[package] name = "sp-consensus-babe" version = "0.40.0" authors.workspace = true description = "Primitives for BABE consensus (polkadot v1.15.0)" edition.workspace = true license = "Apache-2.0" homepage = "https://substrate.io" repository.workspace = true readme = "README.md" [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] async-trait = { optional = true, workspace = true } codec = { workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } sp-api.workspace = true sp-application-crypto.workspace = true sp-consensus-slots.workspace = true sp-core.workspace = true sp-inherents.workspace = true sp-runtime.workspace = true sp-timestamp = { optional = true, workspace = true } [features] default = ["std"] std = [ "async-trait", "codec/std", "scale-info/std", "serde/std", "sp-api/std", "sp-application-crypto/std", "sp-consensus-slots/std", "sp-core/std", "sp-inherents/std", "sp-runtime/std", "sp-timestamp/std", ] # Serde support without relying on std features. serde = [ "dep:serde", "scale-info/serde", "sp-application-crypto/serde", "sp-consensus-slots/serde", "sp-core/serde", "sp-runtime/serde", ]