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