Remove all uses of wasmer_runtime from tests

This commit is contained in:
Mark McCaskey
2020-04-09 15:50:35 -07:00
parent c9460e3a03
commit 5c09fedcd3
2 changed files with 19 additions and 5 deletions

View File

@@ -65,10 +65,12 @@ pub mod wasm {
//! Various types exposed by the Wasmer Runtime relating to Wasm.
//!
//! TODO: Add index with links to sub sections
//!
//
//! # Globals
//!
//! # Tables
pub use wasmer_runtime_core::backend::Features;
pub use wasmer_runtime_core::export::Export;
pub use wasmer_runtime_core::global::Global;
pub use wasmer_runtime_core::instance::{DynFunc, Instance};
pub use wasmer_runtime_core::memory::Memory;
@@ -88,8 +90,13 @@ pub mod vm {
pub mod compiler {
//! Types and functions for compiling wasm;
use crate::module::Module;
pub use wasmer_runtime_core::backend::{BackendCompilerConfig, Compiler, CompilerConfig};
pub use wasmer_runtime_core::backend::{
BackendCompilerConfig, Compiler, CompilerConfig, Features,
};
pub use wasmer_runtime_core::compile_with;
#[cfg(unix)]
pub use wasmer_runtime_core::fault::{pop_code_version, push_code_version};
pub use wasmer_runtime_core::state::CodeVersion;
/// Enum used to select which compiler should be used to generate code.
#[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)]
@@ -266,6 +273,11 @@ pub mod compiler {
}
}
pub mod codegen {
//! Types and functions for generating native code.
pub use wasmer_runtime_core::codegen::ModuleCodeGenerator;
}
// TODO: `import` or `imports`?
pub mod import {
//! Types and functions for Wasm imports.