Skip to main content

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
8pub mod macros;
9#[doc(hidden)]
10pub mod manager;
11pub mod registry;
12#[doc(hidden)]
13pub mod runtime;
14pub mod serialize;
15
16pub use ::canic_cdk as cdk;
17
18// internal derive support
19#[doc(hidden)]
20pub use thiserror::Error as ThisError;
21
22// re-exports
23#[doc(hidden)]
24pub mod __reexports {
25    pub use ctor;
26}