Rename wasmtime-runtime to wasmtime-environ.

This mirrors changes in cranelift.
This commit is contained in:
Dan Gohman
2018-08-03 15:20:19 -07:00
parent b8daa27884
commit 548c45c604
18 changed files with 38 additions and 37 deletions

View File

@@ -1,15 +1,15 @@
use cranelift_codegen::settings;
use cranelift_codegen::settings::Configurable;
use faerie::Artifact;
use wasmtime_runtime;
use wasmtime_environ::{Module, Compilation, Relocations};
/// Emits a module that has been emitted with the `WasmRuntime` runtime
/// Emits a module that has been emitted with the `wasmtime-environ` environment
/// implementation to a native object file.
pub fn emit_module(
obj: &mut Artifact,
module: &wasmtime_runtime::Module,
compilation: &wasmtime_runtime::Compilation,
relocations: &wasmtime_runtime::Relocations,
module: &Module,
compilation: &Compilation,
relocations: &Relocations,
) -> Result<(), String> {
debug_assert!(
module.start_func.is_none() || module.start_func.unwrap() >= module.imported_funcs.len(),

View File

@@ -1,4 +1,4 @@
//! Object-file writing library using the wasmtime runtime.
//! Object-file writing library using the wasmtime environment.
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates, unstable_features)]
#![warn(unused_import_braces)]
@@ -14,7 +14,7 @@
extern crate cranelift_codegen;
extern crate faerie;
extern crate wasmtime_runtime;
extern crate wasmtime_environ;
mod emit_module;