wasmbind-js-file-macro-0.1.0 has been yanked.
Wasmbind JS File Macro
Provide a macro to generate JavaScript bindings from an external JS file.
The procedural macro will generate the #[wasm_bindgen] attribute with parameter inline_js.
The parameter inline_js will be filled by this macro with the content of the file
that the path is passed as the argument path of this macro.
The path can contain ${outDir} placeholders which is the value of the OUT_DIR environment variable.
Pre-requisites
The crate wasm-bindgen must be in the dependencies of the project.
Example
use wasmbind_js;
extern "C"
This will generate the following code:
extern "C"