From 320c88f3654b06a02a1b0f606d2257f3bdac10a1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 5 Sep 2017 16:27:38 -0700 Subject: [PATCH] Rename cretonne_wasm to cton_wasm, for consistency with the other libraries. --- cranelift/src/cton-util.rs | 2 +- cranelift/src/wasm.rs | 2 +- lib/wasm/Cargo.toml | 3 +++ lib/wasm/tests/testsuite.rs | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cranelift/src/cton-util.rs b/cranelift/src/cton-util.rs index b940947523..3d9b979e2f 100644 --- a/cranelift/src/cton-util.rs +++ b/cranelift/src/cton-util.rs @@ -1,7 +1,7 @@ #[macro_use(dbg)] extern crate cretonne; extern crate cton_reader; -extern crate cretonne_wasm; +extern crate cton_wasm; extern crate docopt; #[macro_use] extern crate serde_derive; diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index c418c3cc2c..87efd7d629 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -5,7 +5,7 @@ //! IL. Can also executes the `start` function of the module by laying out the memories, globals //! and tables, then emitting the translated code with hardcoded addresses to memory. -use cretonne_wasm::{translate_module, FunctionTranslation, DummyRuntime, WasmRuntime}; +use cton_wasm::{translate_module, FunctionTranslation, DummyRuntime, WasmRuntime}; use std::path::PathBuf; use cretonne::loop_analysis::LoopAnalysis; use cretonne::flowgraph::ControlFlowGraph; diff --git a/lib/wasm/Cargo.toml b/lib/wasm/Cargo.toml index 28710bdc76..15dd4bb342 100644 --- a/lib/wasm/Cargo.toml +++ b/lib/wasm/Cargo.toml @@ -7,6 +7,9 @@ description = "Translator from WebAssembly to Cretonne IL" repository = "https://github.com/stoklund/cretonne" license = "Apache-2.0" +[lib] +name = "cton_wasm" + [dependencies] wasmparser = "0.8.2" cretonne = { path = "../cretonne" } diff --git a/lib/wasm/tests/testsuite.rs b/lib/wasm/tests/testsuite.rs index cb56779b00..91f514fde4 100644 --- a/lib/wasm/tests/testsuite.rs +++ b/lib/wasm/tests/testsuite.rs @@ -1,7 +1,7 @@ -extern crate cretonne_wasm; +extern crate cton_wasm; extern crate cretonne; -use cretonne_wasm::{translate_module, FunctionTranslation, DummyRuntime, WasmRuntime}; +use cton_wasm::{translate_module, FunctionTranslation, DummyRuntime, WasmRuntime}; use std::path::PathBuf; use std::fs::File; use std::error::Error;