mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-16 13:01:03 +00:00
Refactor executables to separate crates
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "pwasm-utils-prune"
|
||||
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-prune"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
parity-wasm = { git = "https://github.com/paritytech/parity-wasm" }
|
||||
pwasm-utils = { path = ".." }
|
||||
pwasm-utils-logger = { path = "../logger" }
|
||||
clap = "2.24"
|
||||
@@ -1,11 +1,12 @@
|
||||
extern crate parity_wasm;
|
||||
extern crate pwasm_utils as utils;
|
||||
extern crate logger;
|
||||
extern crate clap;
|
||||
|
||||
use clap::{App, Arg};
|
||||
|
||||
fn main() {
|
||||
utils::init_log();
|
||||
logger::init_log();
|
||||
|
||||
let matches = App::new("wasm-opt")
|
||||
.arg(Arg::with_name("input")
|
||||
Reference in New Issue
Block a user