Skip to main content

ic_storage/memory/
mod.rs

1//! Upstream memory contract and Platform-backed canister storage.
2pub use crate::substrate::{Memory, VectorMemory};
3
4/// Native default backing for fixture and host integration.
5#[cfg(not(target_arch = "wasm32"))]
6pub type DefaultMemoryImpl = VectorMemory;
7
8#[cfg(target_arch = "wasm32")]
9mod wasm;
10#[cfg(target_arch = "wasm32")]
11pub use wasm::DefaultMemoryImpl;