rust-brotli-wasm

Two experiments of the brotli encoder / decoder compiled from Rust to WebAssembly.

brotli-stdweb

Compiled using brotli-stdweb. Needs explicit conversion between TypedArray<u8> and Vec<u8>, see here.

Hosted Example: https://phiresky.github.io/rust-brotli-wasm/brotli-stdweb/dist/example.html

brotli-wasm-bindgen

Compiled using wasm-bindgen. Code is a bit simpler, see here

Hosted Example: https://phiresky.github.io/rust-brotli-wasm/brotli-wasm-bindgen/dist/example.html