[package]
name = "sp-version"
version = "37.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "Version module for the Substrate runtime; Provides a function that returns the runtime version. (polkadot v1.15.0)"
documentation = "https://docs.rs/sp-version"
readme = "README.md"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { features = ["derive"], workspace = true }
impl-serde = { optional = true, workspace = true }
parity-wasm = { optional = true, workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde = { features = ["alloc", "derive"], optional = true, workspace = true }
thiserror = { optional = true, workspace = true }
sp-crypto-hashing-proc-macro.workspace = true
sp-crypto-hashing-proc-macro.default-features = true
sp-runtime.workspace = true
sp-std.workspace = true
sp-version-proc-macro.workspace = true
[features]
default = ["std"]
std = [
"codec/std",
"impl-serde/std",
"parity-wasm",
"scale-info/std",
"serde/std",
"sp-runtime/std",
"sp-std/std",
"thiserror",
]
serde = ["dep:serde", "impl-serde", "sp-runtime/serde"]