jeansibelius / wasm-brotli-with-rust

A simple WebAssembly (wasm) module that allows compression with Brotli.

Home Page:https://littlebitof.xyz/blog/simple-brotli-webassembly-module-with-rust/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brotli compression WebAssembly module with Rust

A simple WebAssembly (wasm) module that allows compression with Brotli.

For details, see the related dev log in my blog.

References:

Building

For web targets: wasm-pack build --target web

For e.g. Cloudflare Workers: wasm-pack build --target bundler

NB: To use this in Cloudflare Workers, a JavaScript shim is required as detailed in the Cloudflare Workers Rust documentation.

Serving the example index.html

python3 -m http.server

About

A simple WebAssembly (wasm) module that allows compression with Brotli.

https://littlebitof.xyz/blog/simple-brotli-webassembly-module-with-rust/


Languages

Language:JavaScript 79.0%Language:HTML 11.5%Language:Rust 9.5%