eigr / massa

A Stateful Serverless framework on the BEAM VM
https://eigr.io
Apache License 2.0
55 stars 5 forks source link

Bump wasmex from 0.5.0 to 0.6.0 #76

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps wasmex from 0.5.0 to 0.6.0.

Release notes

Sourced from wasmex's releases.

v0.6.0

Added

  • Wasmex.Module.compile/1 which compiles a .wasm file into a module. This module can be given to the new methods Wasmex.Instance.new/2 and Wasmex.Instance.new_wasi/3 allowing to re-use precompiled modules. This has a big potential speed-up if one wishes to run a WASI instance multiple times. For example, the wasmex test suite went from 14.5s to 0.6s runtime with this release.
  • Wasmex.start_link can now be called with a precompiled module.
  • Wasmex.Module.compile/1 can now parse WebAssembly text format (WAT) too.
  • WASM modules without exported memory can now be instantiated without error.
  • Added the following functions to Wasmex.Module:
    • serialize/1 and unsafe_deserialize/1 which allows serializing a module into a binary and back
    • name/1 and set_name/1 which allows getting/setting a modules name for better debugging
    • imports/1 and exports/1 which lists a modules imports and exports

Deprecated

  • Instance.from_bytes/2 and Instance.wasi_from_bytes/3 are deprecated in favor of Wasmex.Instance.new/2 and Wasmex.Instance.new_wasi/3. Both may be removed in any release after this one.
Changelog

Sourced from wasmex's changelog.

[0.6.0] - 2021-08-07

Added

  • Wasmex.Module.compile/1 which compiles a .wasm file into a module. This module can be given to the new methods Wasmex.Instance.new/2 and Wasmex.Instance.new_wasi/3 allowing to re-use precompiled modules. This has a big potential speed-up if one wishes to run a WASI instance multiple times. For example, the wasmex test suite went from 14.5s to 0.6s runtime with this release.
  • Wasmex.start_link can now be called with a precompiled module.
  • Wasmex.Module.compile/1 can now parse WebAssembly text format (WAT) too.
  • WASM modules without exported memory can now be instantiated without error.
  • Added the following functions to Wasmex.Module:
    • serialize/1 and unsafe_deserialize/1 which allows serializing a module into a binary and back
    • name/1 and set_name/1 which allows getting/setting a modules name for better debugging
    • imports/1 and exports/1 which lists a modules imports and exports

Deprecated

  • Instance.from_bytes/2 and Instance.wasi_from_bytes/3 are deprecated in favor of Wasmex.Instance.new/2 and Wasmex.Instance.new_wasi/3. Both may be removed in any release after this one.
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)