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
28
29
30
31
32
33
34
#[cfg(target_family = "wasm")]
mod ic;
mod inject;
mod interface;
mod mock;
#[cfg(target_family = "wasm")]
pub use ic::*;
pub use interface::*;
pub use mock::*;
pub use ic_cdk::export::candid;
pub use ic_cdk::export::Principal;
pub mod macros {
#[cfg(not(target_family = "wasm"))]
pub use async_std::test;
pub use ic_cdk_macros::*;
}
pub mod interfaces;
#[inline(always)]
pub fn get_context() -> &'static mut impl Context {
#[cfg(not(target_family = "wasm"))]
return inject::get_context();
#[cfg(target_family = "wasm")]
return IcContext::context();
}