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