Registry / utility / ink-prelude

ink-prelude

JSON →
library5.1.1rscratesunverified

Common API for no_std and std to access alloc crate types in ink! smart contracts.

# Cargo.toml [dependencies] ink_prelude = "5.1.1"
INSTALL
IMPORT
SIG · INK-PRELUDE
I
ink-prelude
utilityrustv5.1.1
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 ink_prelude::vec::Vec;

Demonstrates using ink_prelude's Vec in a no_std environment.

use ink_prelude::vec::Vec; fn main() { let mut v: Vec<i32> = Vec::new(); v.push(1); println!("{:?}", v); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ink-prelude — cargo add ink-prelude · libregistry