ic-storage 0.65.1

Governed stable allocation and collections for Internet Computer applications
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_storage::{DefaultMemoryImpl, MemoryRuntime};
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) };
}