1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#![feature(never_type)] // modules pub mod error; pub mod global_state; pub mod protocol_data; pub mod protocol_data_store; pub mod store; pub mod transaction_source; pub mod trie; pub mod trie_store; #[cfg(test)] use lazy_static::lazy_static; const MAX_DBS: u32 = 2; #[cfg(test)] lazy_static! { // 10 MiB = 10485760 bytes // page size on x86_64 linux = 4096 bytes // 10485760 / 4096 = 2560 static ref TEST_MAP_SIZE: usize = { let page_size = engine_shared::os::get_page_size().unwrap(); page_size * 2560 }; }