tabify all

This commit is contained in:
NikVolf
2017-05-19 16:54:53 +03:00
parent 360c308e09
commit f2d99ce888
11 changed files with 904 additions and 904 deletions
+11 -11
View File
@@ -5,18 +5,18 @@ use std::env;
fn main() {
wasm_utils::init_log();
wasm_utils::init_log();
let args = env::args().collect::<Vec<_>>();
if args.len() != 3 {
println!("Usage: {} input_file.wasm output_file.wasm", args[0]);
return;
}
let args = env::args().collect::<Vec<_>>();
if args.len() != 3 {
println!("Usage: {} input_file.wasm output_file.wasm", args[0]);
return;
}
let module = wasm_utils::externalize(
parity_wasm::deserialize_file(&args[1]).expect("Module to deserialize ok"),
vec!["_free", "_malloc"],
);
let module = wasm_utils::externalize(
parity_wasm::deserialize_file(&args[1]).expect("Module to deserialize ok"),
vec!["_free", "_malloc"],
);
parity_wasm::serialize_to_file(&args[2], module).expect("Module to serialize ok");
parity_wasm::serialize_to_file(&args[2], module).expect("Module to serialize ok");
}