Skip to main content

ic_storage/
lib.rs

1#![deny(unsafe_code, unsafe_op_in_unsafe_fn)]
2#![deny(rustdoc::broken_intra_doc_links)]
3#![doc = include_str!("../README.md")]
4
5/// Governed collections over checked named allocations and Storage codecs.
6pub mod adapter;
7mod hash;
8mod key;
9
10mod memory;
11mod runtime;
12mod stable_cell;
13#[cfg(feature = "test-support")]
14pub mod testing;
15
16pub mod storable;
17
18pub use key::{StableKey, StableKeyError};
19pub use memory::{BackingIdentity, DefaultMemoryImpl, Memory, VectorMemory};
20pub use runtime::*;
21pub use stable_cell::{
22    STABLE_CELL_HEADER_SIZE, StableCellPayloadError, stable_cell_payload_length,
23};
24
25/// WebAssembly stable-memory page size in bytes.
26pub const WASM_PAGE_SIZE_BYTES: u64 = 65_536;