Conform to Cargo's conventional file layout

Move `src/*.rs` to `src/bin/*.rs` which are automatically inferred as
binaries and move `src/utils.rs` to `src/lib.rs` which is compiled as a
reusable library for each of the binaries we're building.
This commit is contained in:
Alex Crichton
2019-08-13 12:47:33 -07:00
committed by Dan Gohman
parent e7fd72bd5c
commit 5fe550f533
5 changed files with 8 additions and 34 deletions

View File

@@ -9,18 +9,6 @@ categories = ["wasm"]
repository = "https://github.com/CraneStation/wasmtime"
edition = "2018"
[[bin]]
name = "wasmtime"
path = "src/wasmtime.rs"
[[bin]]
name = "wast"
path = "src/wast.rs"
[[bin]]
name = "wasm2obj"
path = "src/wasm2obj.rs"
[dependencies]
cranelift-codegen = { version = "0.38.0", features = ["enable-serde"] }
cranelift-native = "0.38.0"