Skip to main content

ic_memory_key

Macro ic_memory_key 

Source
macro_rules! ic_memory_key {
    ($stable_key:literal, $label:path, $id:expr) => { ... };
}
Expand description

Declare a stable-memory slot with an explicit ABI-stable key.

Use this for every Canic-managed memory. The key, not the crate name or Rust type path, is the durable stable-memory identity.