Format with rustfmt.
This commit is contained in:
@@ -9,8 +9,8 @@ use cranelift_codegen::ir::{
|
|||||||
use cranelift_codegen::isa;
|
use cranelift_codegen::isa;
|
||||||
use cranelift_codegen::settings;
|
use cranelift_codegen::settings;
|
||||||
use cranelift_wasm::{
|
use cranelift_wasm::{
|
||||||
self, FunctionIndex, Global, GlobalIndex, GlobalVariable, Memory, MemoryIndex, SignatureIndex, Table,
|
self, translate_module, FunctionIndex, Global, GlobalIndex, GlobalVariable, Memory,
|
||||||
TableIndex, WasmResult, translate_module,
|
MemoryIndex, SignatureIndex, Table, TableIndex, WasmResult,
|
||||||
};
|
};
|
||||||
use module::{DataInitializer, Export, LazyContents, Module, TableElements};
|
use module::{DataInitializer, Export, LazyContents, Module, TableElements};
|
||||||
use target_lexicon::Triple;
|
use target_lexicon::Triple;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use cranelift_codegen::settings;
|
use cranelift_codegen::settings;
|
||||||
use cranelift_codegen::settings::Configurable;
|
use cranelift_codegen::settings::Configurable;
|
||||||
use faerie::Artifact;
|
use faerie::Artifact;
|
||||||
use wasmtime_environ::{Module, Compilation, Relocations};
|
use wasmtime_environ::{Compilation, Module, Relocations};
|
||||||
|
|
||||||
/// Emits a module that has been emitted with the `wasmtime-environ` environment
|
/// Emits a module that has been emitted with the `wasmtime-environ` environment
|
||||||
/// implementation to a native object file.
|
/// implementation to a native object file.
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
extern crate cranelift_codegen;
|
extern crate cranelift_codegen;
|
||||||
extern crate cranelift_native;
|
extern crate cranelift_native;
|
||||||
extern crate docopt;
|
extern crate docopt;
|
||||||
extern crate wasmtime_execute;
|
|
||||||
extern crate wasmtime_environ;
|
extern crate wasmtime_environ;
|
||||||
|
extern crate wasmtime_execute;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate tempdir;
|
extern crate tempdir;
|
||||||
@@ -39,8 +39,8 @@ use std::path::Path;
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process::{exit, Command};
|
use std::process::{exit, Command};
|
||||||
use tempdir::TempDir;
|
use tempdir::TempDir;
|
||||||
use wasmtime_execute::{compile_and_link_module, execute, Instance};
|
|
||||||
use wasmtime_environ::{Module, ModuleEnvironment};
|
use wasmtime_environ::{Module, ModuleEnvironment};
|
||||||
|
use wasmtime_execute::{compile_and_link_module, execute, Instance};
|
||||||
|
|
||||||
const USAGE: &str = "
|
const USAGE: &str = "
|
||||||
Wasm to Cranelift IL translation utility.
|
Wasm to Cranelift IL translation utility.
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
extern crate cranelift_codegen;
|
extern crate cranelift_codegen;
|
||||||
extern crate cranelift_native;
|
extern crate cranelift_native;
|
||||||
extern crate docopt;
|
extern crate docopt;
|
||||||
extern crate wasmtime_obj;
|
|
||||||
extern crate wasmtime_environ;
|
extern crate wasmtime_environ;
|
||||||
|
extern crate wasmtime_obj;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate faerie;
|
extern crate faerie;
|
||||||
@@ -36,8 +36,8 @@ use std::io::prelude::*;
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process;
|
use std::process;
|
||||||
use wasmtime_obj::emit_module;
|
|
||||||
use wasmtime_environ::{compile_module, Module, ModuleEnvironment};
|
use wasmtime_environ::{compile_module, Module, ModuleEnvironment};
|
||||||
|
use wasmtime_obj::emit_module;
|
||||||
|
|
||||||
const USAGE: &str = "
|
const USAGE: &str = "
|
||||||
Wasm to native object translation utility.
|
Wasm to native object translation utility.
|
||||||
|
|||||||
Reference in New Issue
Block a user