canic_core/api/runtime/mod.rs
1pub mod install;
2
3use crate::{dto::error::Error, ops::runtime::memory::MemoryRegistryOps};
4
5///
6/// MemoryRuntimeApi
7///
8
9pub struct MemoryRuntimeApi;
10
11impl MemoryRuntimeApi {
12 /// Bootstrap Canic's stable-memory declaration snapshot.
13 pub fn bootstrap_registry() -> Result<(), Error> {
14 MemoryRegistryOps::bootstrap_registry().map_err(Error::from)?;
15
16 Ok(())
17 }
18}