0.3.5 • Published 5 years ago

wasm_val_module v0.3.5

Weekly downloads
10
License
MIT/Apache-2.0
Repository
github
Last release
5 years ago

wasm_val_module - The javascript companion library for the rust wasm_val crate.

Basic usage

const aRustWasmModule = new WasmValModule(pathToWasm, context, options);

aRustWasmModule.run()
    .then( (instance) => instance.some_rust_function());

The arguments are:

  • pathToWasm: the path to the wasm file. Note: The provided wasm file must import the wasm_val crate.
  • context: The execution context: the contents of this object will be accessible from the rust program.
  • options: Additional options

The default options are:

{
    rust_panic: {
        register_hook: true,
        panic_fn: console.error,
    }
}

Consult the documentation of the wasm_val crate for additional information.

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago