wasmbuild

A tiny build tool to generate wasm-bindgen glue for Deno.

Setup

Add a build task to the deno.json file in your project:

{
  "tasks": {
    "build": "deno run --unstable -A https://deno.land/x/wasmbuild@VERSION_GOES_HERE/main.ts"
  }
}

Usage

Now invoke deno task build in your project's root.

$ deno task build
# or build for debug
$ deno task build --debug

Bindings will be generated at ./lib/<crate-name>.generated.js:

import { greet } from "./lib/deno_test.generated.js";

greet("Deno");