sp-weights 24.0.0

Types and traits for interfacing between the host and the wasm runtime.
Documentation
[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",
]
# By default some types have documentation, `full-metadata-docs` allows to add documentation to
# more types in the metadata.
full-metadata-docs = [ "scale-info/docs" ]

# Serde support without relying on std features.
serde = [
	"dep:serde",
	"scale-info/serde",
	"sp-arithmetic/serde",
	"sp-core/serde",
]