1#![deny(unsafe_code, unsafe_op_in_unsafe_fn)]
2#![deny(rustdoc::broken_intra_doc_links)]
3#![doc = include_str!("../README.md")]
4
5pub mod adapter;
7mod hash;
8mod key;
9mod memory;
10mod runtime;
11mod stable_cell;
12#[cfg(any(test, feature = "test-support"))]
13pub mod testing;
14
15use ic_platform::stable_structures as substrate;
16pub use substrate::storable;
17
18pub use key::{StableKey, StableKeyError};
19pub use memory::{DefaultMemoryImpl, Memory, VectorMemory};
20pub use runtime::*;
21pub use stable_cell::{
22 STABLE_CELL_HEADER_SIZE, StableCellPayloadError, stable_cell_payload_length,
23};
24
25pub const WASM_PAGE_SIZE_BYTES: u64 = 65_536;