Refactor executables to separate crates

This commit is contained in:
Wei Tang
2018-05-15 08:05:00 +08:00
parent fd8311983b
commit bb47c22618
16 changed files with 156 additions and 63 deletions
+17
View File
@@ -0,0 +1,17 @@
[package]
name = "pwasm-utils-stack-height"
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-stack-height"
path = "src/main.rs"
[dependencies]
parity-wasm = { git = "https://github.com/paritytech/parity-wasm" }
pwasm-utils = { path = ".." }
pwasm-utils-logger = { path = "../logger" }
@@ -1,11 +1,12 @@
extern crate pwasm_utils as utils;
extern crate parity_wasm;
extern crate logger;
use std::env;
use utils::stack_height;
fn main() {
utils::init_log();
logger::init_log();
let args = env::args().collect::<Vec<_>>();
if args.len() != 3 {