mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-11 10:41:09 +00:00
Refactor executables to separate crates
This commit is contained in:
@@ -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 {
|
||||
Reference in New Issue
Block a user