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:
committed by
Dan Gohman
parent
e7fd72bd5c
commit
5fe550f533
12
Cargo.toml
12
Cargo.toml
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user