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
5mod engine;
6mod hash;
7mod key;
8mod memory;
9mod runtime;
10mod stable_cell;
11pub mod storable;
12
13/// WebAssembly stable-memory page size in bytes.
14pub const WASM_PAGE_SIZE_BYTES: u64 = 65_536;
15pub use key::{StableKey, StableKeyError};
16pub use memory::{DefaultMemoryImpl, Memory, VectorMemory};
17pub use runtime::*;
18pub use stable_cell::{
19    STABLE_CELL_HEADER_SIZE, StableCellPayloadError, stable_cell_payload_length,
20};
21/// Governed collections over Storage-owned memory and codecs.
22pub mod adapter;
23#[cfg(any(test, feature = "test-support"))]
24pub mod testing;