Skip to main content

canic_memory/
lib.rs

1//! Core stable-memory utilities shared across Canic consumers.
2//!
3//! This crate temporarily hosts the shared memory manager, eager TLS runtime,
4//! and registry backend while Canic memory ownership moves into `canic-core`
5//! and durable allocation-governance mechanics move into `ic-memory`.
6
7/// Supported high-level API for bootstrapping, registering, and inspecting
8/// stable-memory slots.
9pub mod api;
10mod ledger;
11#[doc(hidden)]
12pub mod manager;
13mod policy;
14/// Stable-memory range and ID registry used by the public API and macros.
15pub mod registry;
16#[doc(hidden)]
17pub mod runtime;
18pub use canic_cdk::serialize;
19pub use canic_cdk::{impl_storable_bounded, impl_storable_unbounded};
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}