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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! The Wasmer Engine.

mod error;
#[cfg(not(target_arch = "wasm32"))]
mod resolver;
#[cfg(not(target_arch = "wasm32"))]
mod trap;
#[cfg(not(target_arch = "wasm32"))]
mod tunables;

#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
mod artifact;
#[cfg(feature = "translator")]
mod builder;
#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
mod code_memory;
#[cfg(feature = "translator")]
mod inner;
#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
mod link;
#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
mod unwind;

pub use self::error::{InstantiationError, LinkError};
#[cfg(not(target_arch = "wasm32"))]
pub use self::resolver::resolve_imports;
#[cfg(not(target_arch = "wasm32"))]
pub use self::trap::*;
#[cfg(not(target_arch = "wasm32"))]
pub use self::tunables::{BaseTunables, Tunables};

#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
pub use self::artifact::Artifact;
#[cfg(feature = "translator")]
pub use self::builder::EngineBuilder;
#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
pub use self::code_memory::CodeMemory;
#[cfg(feature = "translator")]
pub use self::inner::{Engine, EngineInner};
#[cfg(feature = "translator")]
#[cfg(not(target_arch = "wasm32"))]
pub use self::link::link_module;