[package] name = "sp-npos-elections" version = "34.0.0" authors.workspace = true edition.workspace = true license = "Apache-2.0" homepage = "https://substrate.io" repository.workspace = true description = "NPoS election algorithm primitives (polkadot v1.15.0)" readme = "README.md" [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { features = ["derive"], workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = ["alloc", "derive"], optional = true, workspace = true } sp-arithmetic.workspace = true sp-core.workspace = true sp-runtime.workspace = true [dev-dependencies] rand = { workspace = true, default-features = true } substrate-test-utils = { path = "../../test-utils" } [features] default = ["std"] bench = [] std = [ "codec/std", "scale-info/std", "serde/std", "sp-arithmetic/std", "sp-core/std", "sp-runtime/std", ] # Serde support without relying on std features. serde = [ "dep:serde", "scale-info/serde", "sp-arithmetic/serde", "sp-core/serde", "sp-runtime/serde", ]