hotdrink-wasm 0.1.1

WebAssembly wrappers for hotdrink-rs
Documentation

hotdrink-wasm

A wrapper library around hotdrink-rs for compilation to WebAssembly.

This library is still very experimental, and the API may change.

Prerequisites

The project uses multiple nightly features, and must be built using nightly Rust. I recommend using rustup, which can be downloaded here,

You also need wasm-pack, which can be downloaded here.

The standard library must be recompiled, which means that we need the standard library source code. This can be downloaded with rustup component add rust-src.

Build

To use Web Workers from Rust, the we must compile with --target no-modules. This should be as simple as running the following:

wasm-pack build --out-dir www/pkg --target no-modules --release

This will produce WebAssembly code and JS wrappers in www/pkg, which can then be imported there.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.