diff --git a/.travis.yml b/.travis.yml index b32df500..a8e10653 100644 --- a/.travis.yml +++ b/.travis.yml @@ -151,7 +151,12 @@ matrix: - rust: nightly env: JOB=dist-linux TARGET=x86_64-unknown-linux-musl before_script: rustup target add $TARGET - script: cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET --features vendored-openssl + script: + - cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET --features vendored-openssl + # no need to ship debuginfo to users + - strip -g target/$TARGET/release/wasm-bindgen + - strip -g target/$TARGET/release/wasm-bindgen-test-runner + - strip -g target/$TARGET/release/wasm2es6js addons: apt: packages: diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 899a5666..9bd8b672 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -36,6 +36,10 @@ use failure::{Error, ResultExt}; use parity_wasm::elements::{Deserialize, Module, Section}; 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; + mod headless; mod node; mod server; diff --git a/crates/cli/src/bin/wasm-bindgen.rs b/crates/cli/src/bin/wasm-bindgen.rs index 0f709047..cc162db8 100644 --- a/crates/cli/src/bin/wasm-bindgen.rs +++ b/crates/cli/src/bin/wasm-bindgen.rs @@ -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 diff --git a/crates/cli/src/bin/wasm2es6js.rs b/crates/cli/src/bin/wasm2es6js.rs index 8cf1f86c..503b7b77 100644 --- a/crates/cli/src/bin/wasm2es6js.rs +++ b/crates/cli/src/bin/wasm2es6js.rs @@ -11,6 +11,10 @@ use std::process; use docopt::Docopt; use failure::{Error, ResultExt}; +// 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 = " Converts a wasm file to an ES6 JS module