mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-17 10:01:03 +00:00
Refactor executables to separate crates
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[package]
|
||||
name = "pwasm-utils-build"
|
||||
version = "0.1.5"
|
||||
authors = ["Nikolay Volf <nikvolf@gmail.com>", "Sergey Pepyakin <s.pepyakin@gmail.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
readme = "README.md"
|
||||
description = "Collection of command-line utilities and corresponding Rust api for producing pwasm-compatible executables"
|
||||
keywords = ["wasm", "webassembly", "pwasm"]
|
||||
|
||||
[[bin]]
|
||||
name = "wasm-build"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
parity-wasm = { git = "https://github.com/paritytech/parity-wasm" }
|
||||
pwasm-utils = { path = ".." }
|
||||
pwasm-utils-logger = { path = "../logger" }
|
||||
glob = "0.2"
|
||||
clap = "2.24"
|
||||
@@ -4,6 +4,7 @@ extern crate glob;
|
||||
extern crate pwasm_utils as utils;
|
||||
extern crate clap;
|
||||
extern crate parity_wasm;
|
||||
extern crate logger;
|
||||
|
||||
mod source;
|
||||
|
||||
@@ -95,7 +96,7 @@ fn has_ctor(module: &elements::Module) -> bool {
|
||||
}
|
||||
|
||||
fn do_main() -> Result<(), Error> {
|
||||
utils::init_log();
|
||||
logger::init_log();
|
||||
|
||||
let matches = App::new("wasm-build")
|
||||
.arg(Arg::with_name("target")
|
||||
Reference in New Issue
Block a user