1pub(crate) mod ledger;
8mod manager;
9mod policy;
10pub mod registry;
11pub mod runtime;
12
13pub use crate::{eager_init, eager_static, ic_memory_key, ic_memory_range};
14
15pub const CANIC_CORE_MEMORY_AUTHORITY: &str = "canic-core";
17pub const CANIC_CONTROL_PLANE_MEMORY_AUTHORITY: &str = "canic-control-plane";
19
20pub(crate) fn bootstrap_default_memory_manager()
21-> Result<(), ic_memory::RuntimeBootstrapError<registry::MemoryRegistryError>> {
22 ic_memory::bootstrap_default_memory_manager_with_policy(&policy::CanicMemoryManagerPolicy::new())
23 .map(|_| ())
24}