Skip to main content

Module runtime

Module runtime 

Source

Modules§

registry

Functions§

assert_memory_bootstrap_ready
Panic if a stable-memory slot is touched before memory bootstrap is ready.
defer_eager_init
Register an eager-init function for lifecycle bootstrap execution.
defer_tls_initializer
Register a TLS initializer function for eager execution.
has_test_bootstrap_hook
Return whether a test bootstrap hook has been installed.
init_eager_tls
Run all deferred TLS initializers and clear the registry.
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_eager_tls_initializing
Return whether eager TLS initializers are currently being executed.
is_memory_bootstrap_ready
Return whether memory access is currently allowed during bootstrap.
run_registered_eager_init
Run all registered eager-init hooks and clear the registry.