Skip to main content

canic_control_plane/
lib.rs

1//! Control-plane runtime for root and `wasm_store` orchestration.
2//!
3//! This crate layers the template publication and managed-store workflows on
4//! top of `canic-core` and is re-exported through the `canic` facade when the
5//! control-plane feature is enabled.
6
7canic_core::ic_memory_range!(start = 80, end = 85);
8
9#[cfg(test)]
10const _: () = {
11    fn __canic_memory_test_bootstrap() {
12        canic_core::api::runtime::MemoryRuntimeApi::bootstrap_registry()
13            .expect("test stable-memory bootstrap");
14    }
15
16    #[canic_core::__reexports::ctor::ctor(
17        unsafe,
18        anonymous,
19        crate_path = canic_core::__reexports::ctor
20    )]
21    fn __canic_install_memory_test_bootstrap_hook() {
22        canic_core::memory::runtime::install_test_bootstrap_hook(__canic_memory_test_bootstrap);
23    }
24};
25
26pub mod api;
27pub(crate) mod config;
28pub mod dto;
29pub mod ids;
30pub(crate) mod ops;
31#[cfg(feature = "root-control-plane")]
32pub mod runtime;
33pub mod schema;
34pub mod state_contract;
35pub(crate) mod storage;
36#[cfg(feature = "root-control-plane")]
37pub(crate) mod workflow;