Rename wasmtime-runtime to wasmtime-environ.
This mirrors changes in cranelift.
This commit is contained in:
@@ -7,5 +7,5 @@ license = "Apache-2.0 WITH LLVM-exception"
|
||||
|
||||
[dependencies]
|
||||
cranelift-codegen = "0.18.1"
|
||||
wasmtime-runtime = { path = "../runtime" }
|
||||
wasmtime-environ = { path = "../environ" }
|
||||
faerie = "0.4.4"
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user