[][src]Crate embed_wasm_build

This crate provides compile-time utilities for packaging 'cargo-web' build output (rust compiled as wasm and associated html/css/etc files) inside native binaries and is meant to be invoked from custom build.rs scripts

Designed for use with the embed-wasm crate. See embed-wasm-example for a full example.

Functions

compile_wasm

Compile the cargo executable in the 'wasm' subdir using cargo-web and generate a static hashmap using 'phf' containing all static files output by the cargo-web build process