canic_memory/lib.rs
1//! Core stable-memory utilities shared across Canic consumers.
2//!
3//! This crate hosts the shared memory manager, eager TLS helpers, registry
4//! (ID/range reservation), and ergonomics macros (`ic_memory!`, `ic_memory_range!`,
5//! `eager_static!`) so external crates can coordinate stable memory without
6//! depending on the full `canic` stack.
7
8/// Supported high-level API for bootstrapping, registering, and inspecting
9/// stable-memory slots.
10pub mod api;
11mod macros;
12#[doc(hidden)]
13pub mod manager;
14/// Stable-memory range and ID registry used by the public API and macros.
15pub mod registry;
16#[doc(hidden)]
17pub mod runtime;
18pub mod serialize;
19
20pub use ::canic_cdk as cdk;
21
22// internal derive support
23#[doc(hidden)]
24pub(crate) use thiserror::Error as ThisError;
25
26// re-exports
27#[doc(hidden)]
28pub mod __reexports {
29 pub use ctor;
30}