50 lines
1.3 KiB
TOML
50 lines
1.3 KiB
TOML
[package]
|
|
name = "sp-version"
|
|
version = "29.0.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license = "Apache-2.0"
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
description = "Version module for the Substrate runtime; Provides a function that returns the runtime version."
|
|
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 }
|
|
sp-crypto-hashing-proc-macro = { workspace = true, default-features = true }
|
|
sp-runtime = { workspace = true }
|
|
sp-std = { workspace = true }
|
|
sp-version-proc-macro = { workspace = true }
|
|
thiserror = { optional = true, 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 support without relying on std features.
|
|
serde = ["dep:serde", "impl-serde", "sp-runtime/serde"]
|
|
runtime-benchmarks = [
|
|
"sp-runtime/runtime-benchmarks",
|
|
"sp-version-proc-macro/runtime-benchmarks",
|
|
]
|