ic-memory 0.44.0

Durable stable-memory allocation governance for Internet Computer canisters
Documentation
1
2
3
4
5
6
7
8
9
10
//! This fixture binary owns its instance; the library owns no global runtime.
use ic_memory::{MemoryRuntime, ic_stable_structures::DefaultMemoryImpl};
use std::cell::RefCell;

/// Fixture-owned runtime with the platform default backing.
pub type Runtime = MemoryRuntime<DefaultMemoryImpl>;

thread_local! {
    pub static RUNTIME: RefCell<Option<Runtime>> = const { RefCell::new(None) };
}