[package]
name = "sp-weights"
version = "24.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "Types and traits for interfacing between the host and the wasm runtime."
documentation = "https://docs.rs/sp-wasm-interface"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.188", default-features = false, optional = true, features = ["derive", "alloc"] }
smallvec = "1.11.0"
sp-arithmetic = { path = "../arithmetic", default-features = false, version = "20.0.0" }
sp-core = { path = "../core", default-features = false, version = "25.0.0" }
sp-debug-derive = { path = "../debug-derive", default-features = false, version = "12.0.0" }
sp-std = { path = "../std", default-features = false, version = "12.0.0" }
[features]
default = [ "std" ]
std = [
"codec/std",
"scale-info/std",
"serde/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-debug-derive/std",
"sp-std/std",
]
full-metadata-docs = [ "scale-info/docs" ]
serde = [
"dep:serde",
"scale-info/serde",
"sp-arithmetic/serde",
"sp-core/serde",
]