Two experiments of the brotli encoder / decoder compiled from Rust to WebAssembly.
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
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