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
8/// Supported high-level API for bootstrapping, registering, and inspecting
9/// stable-memory slots.
10pub mod api;
11mod ledger;
12mod macros;
13#[doc(hidden)]
14pub mod manager;
15/// Stable-memory range and ID registry used by the public API and macros.
16pub mod registry;
17#[doc(hidden)]
18pub mod runtime;
19pub mod serialize;
20
21pub use ::canic_cdk as cdk;
22
23// internal derive support
24#[doc(hidden)]
25pub(crate) use thiserror::Error as ThisError;
26
27// re-exports
28#[doc(hidden)]
29pub mod __reexports {
30    pub use ctor;
31}