Registry / other / sp-std

sp-std

JSON →
library14.0.0rscratesunverified

Lowest-abstraction level for the Substrate runtime, re-exporting useful primitives from std or alloc for no_std environments.

# Cargo.toml [dependencies] sp-std = "14.0.0"
INSTALL
IMPORT
SIG · SP-STD
S
sp-std
otherrustv14.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.

Vec
use sp_std::vec::Vec;

Using Vec from sp_std in a no_std environment.

#![no_std] use sp_std::vec::Vec; fn main() { let mut v: Vec<u32> = Vec::new(); v.push(1); v.push(2); assert_eq!(v.len(), 2); }
Debug
Known issues
gotchaThis crate is intended for Substrate runtime development; using it outside that context may cause confusion.
fix
Use `std` or `alloc` directly for general Rust development.
affects: *
Upgrade
Version history
14.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
sp-std — cargo add sp-std · libregistry