[package] name = "sp-consensus-slots" version = "0.40.1" authors.workspace = true description = "Primitives for slots-based consensus" edition.workspace = true license = "Apache-2.0" homepage.workspace = true repository.workspace = true readme = "README.md" [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { features = ["derive", "max-encoded-len"], workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } sp-timestamp.workspace = true [features] default = ["std"] std = [ "codec/std", "scale-info/std", "serde/std", "sp-timestamp/std", ] # Serde support without relying on std features. serde = ["dep:serde", "scale-info/serde"]