Skip to content

jeansibelius/wasm-brotli-with-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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