Skip to main content

Module runtime

Module runtime 

Source
Expand description

Module: memory::runtime

Responsibility: enforce memory bootstrap readiness before lazy store access. Does not own: stable schema definitions, allocation policy, or lifecycle hooks. Boundary: macros and lifecycle call this before stable-memory-backed statics are used.

Functions§

assert_memory_bootstrap_ready
Panic if a stable-memory slot is touched before memory bootstrap is ready.
has_test_bootstrap_hook
Return whether a test bootstrap hook has been installed.
install_test_bootstrap_hook
Install a test-only hook that can run the crate’s normal memory bootstrap before host unit tests first touch macro-backed stable memory.
is_memory_bootstrap_ready
Return whether memory access is currently allowed during bootstrap.