wasm-bindgen 0.2.28

Easy support for interacting between JS and Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
const fs = require('fs');
const assert = require('assert');

exports.assert_comments_exist = function() {
  const bindings_file = require.resolve('wasm-bindgen-test');
  const contents = fs.readFileSync(bindings_file);
  assert.ok(contents.includes("* annotated function"));
  assert.ok(contents.includes("* annotated struct type"));
  assert.ok(contents.includes("* annotated struct field"));
  assert.ok(contents.includes("* annotated struct method"));
};