mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 22:41:24 +00:00
Shrink binary size of distributed wasm-bindgen
This shaves a little over 2MB off the download locally for Linux, removing debuginfo (which no one's probably gonna use anyway) as well as switching from jemalloc to the system allocator.
This commit is contained in:
@ -13,6 +13,10 @@ use docopt::Docopt;
|
||||
use failure::Error;
|
||||
use wasm_bindgen_cli_support::Bindgen;
|
||||
|
||||
// no need for jemalloc bloat in this binary (and we don't need speed)
|
||||
#[global_allocator]
|
||||
static ALLOC: std::alloc::System = std::alloc::System;
|
||||
|
||||
const USAGE: &'static str = "
|
||||
Generating JS bindings for a wasm file
|
||||
|
||||
|
Reference in New Issue
Block a user