mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-06-27 13:31:37 +00:00
remove memory symbol from export
This commit is contained in:
@ -14,7 +14,7 @@ use std::path::PathBuf;
|
||||
use clap::{App, Arg};
|
||||
use parity_wasm::elements;
|
||||
|
||||
use wasm_utils::{CREATE_SYMBOL, CALL_SYMBOL, MEMORY_SYMBOL, ununderscore_funcs, externalize_mem};
|
||||
use wasm_utils::{CREATE_SYMBOL, CALL_SYMBOL, ununderscore_funcs, externalize_mem};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
@ -147,7 +147,7 @@ fn main() {
|
||||
if !matches.is_present("skip_optimization") {
|
||||
wasm_utils::optimize(
|
||||
&mut module,
|
||||
vec![CALL_SYMBOL, MEMORY_SYMBOL]
|
||||
vec![CALL_SYMBOL]
|
||||
).expect("Optimizer to finish without errors");
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,6 @@ extern crate byteorder;
|
||||
|
||||
pub static CREATE_SYMBOL: &'static str = "deploy";
|
||||
pub static CALL_SYMBOL: &'static str = "call";
|
||||
pub static MEMORY_SYMBOL: &'static str = "memory";
|
||||
|
||||
pub mod rules;
|
||||
|
||||
|
Reference in New Issue
Block a user