Registry / other / sp-weights

sp-weights

JSON →
library34.0.0rscratesunverified

Types and traits for interfacing between the host and the wasm runtime in Substrate.

# Cargo.toml [dependencies] sp-weights = "34.0.0"
INSTALL
IMPORT
SIG · SP-WEIGHTS
S
sp-weights
otherrustv34.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Weight
✓ use sp_weights::Weight;

Creates a `Weight` instance representing computation and storage costs.

use sp_weights::Weight; fn main() { let weight = Weight::from_parts(1000, 0); println!("Weight: {:?}", weight); }
Debug
Known issues
breakingBreaking changes in version 34.0.0: `Weight` fields may have been restructured.
fix
Check the changelog for migration details.
affects: >=34.0.0
Upgrade
Version history
34.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
Resources
sp-weights — cargo add sp-weights · libregistry