Based on https://github.com/phiresky/rust-brotli-wasm
Built on Ubuntu Server (20.10). Some packages (binaryen) may not be available in older versions of ubuntu
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
sudo apt-get update
sudo apt install build-essential
sudo apt-get install pkg-config libssl-dev
sudo apt-get install binaryen
curl https://sh.rustup.rs -sSf | sh
rustup default nightly rustup target add wasm32-unknown-unknown cargo install wasm-bindgen-cli cargo install --git https://github.com/alexcrichton/wasm-gc
sh ./build.sh