update layout for the rest

This commit is contained in:
NikVolf
2018-03-12 15:30:38 +03:00
parent f326e46f5c
commit fc5f5adf2a
13 changed files with 4 additions and 45 deletions
+22
View File
@@ -0,0 +1,22 @@
extern crate parity_wasm;
extern crate wasm_utils;
use std::env;
fn main() {
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 module = wasm_utils::externalize(
parity_wasm::deserialize_file(&args[1]).expect("Module to deserialize ok"),
vec!["_free", "_malloc", "_memcpy", "_memset", "_memmove"],
);
parity_wasm::serialize_to_file(&args[2], module).expect("Module to serialize ok");
}