embed_js 0.1.2

Minimalist lightweight inline JavaScript for Rust applications targeting WebAssembly via the `wasm32-unknown-unknown` target. See also embed_js_build, the accompanying crate for use by build scripts.
Documentation

This crate allows you to embed inline javascript in your Rust code for use with the wasm32-unknown-unknown target. Crates also need to use the embed_js_build crate in their build script (see that crate's documentation for more details). Crates that generate binaries must also use embed_js_build in a post-build step to collect the generated accompanying javascript from itself and all dependencies.

See the documentation pages of the macros in this crate for more details and examples. The embed_js repository also contains example projects.