Skip to content
  • dependabot[bot]'s avatar
    Bump wasmi from 0.31.0 to 0.31.2 (#3164) · 41db45a2
    dependabot[bot] authored
    
    
    Bumps [wasmi](https://github.com/paritytech/wasmi) from 0.31.0 to
    0.31.2.
    <details>
    <summary>Release notes</summary>
    <p><em>Sourced from <a
    href="https://github.com/paritytech/wasmi/releases">wasmi's
    releases</a>.</em></p>
    <blockquote>
    <h2>v0.31.1 - 2023-12-01</h2>
    <h3>Fixes</h3>
    <ul>
    <li>Fixed a bug, in the <code>wasmi</code> engine executor, that causes
    an out of bounds buffer write when calling or resuming a Wasm function
    with a high number of parameters from the host side.</li>
    </ul>
    </blockquote>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a
    href="https://github.com/paritytech/wasmi/blob/master/CHANGELOG.md">wasmi's
    changelog</a>.</em></p>
    <blockquote>
    <h1>Changelog</h1>
    <p>All notable changes to this project will be documented in this
    file.</p>
    <p>The format is loosely based on <a
    href="https://keepachangelog.com/en/1.0.0/">Keep a Changelog</a>,
    and this project adheres to <a
    href="https://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.
    Additionally we have an <code>Internal</code> section for changes that
    are of interest to developers.</p>
    <p>Dates in this file are formattes as <code>YYYY-MM-DD</code>.</p>
    <h2>[<code>0.32.0-beta.5</code>] - 2024-01-15</h2>
    <p><strong>Note:</strong></p>
    <ul>
    <li>This is the beta of the upcoming <code>v0.32.0</code> release.
    This version is not production ready yet and might contain serious bugs.
    Please use this only for experimentation or at your own risk.</li>
    <li>Performance tests indicated that the new register-machine bytecode
    based
    Wasmi engine performance is very sensitive to hardware or OS specifics
    which may lead to very different performance characteristics.
    <ul>
    <li>We are working on fixing this until the stable release.</li>
    <li>Measurements concluded that execution performance can be equal or
    sometimes
    even surpass Wasm3 execution performance.</li>
    </ul>
    </li>
    </ul>
    <h3>Added</h3>
    <ul>
    <li>Added a new execution engine based on register-machine bytecode. (<a
    href="https://redirect.github.com/paritytech/wasmi/pull/729">paritytech/wasmi#729</a>)
    <ul>
    <li>The register-machine Wasmi <code>Engine</code> executes roughly
    80-100% faster and
    compiles roughly 30% slower according to benchmarks conducted so
    far.</li>
    </ul>
    </li>
    <li>Added <code>Module::new_unchecked</code> API. (<a
    href="https://redirect.github.com/paritytech/wasmi/pull/829">paritytech/wasmi#829</a>)
    <ul>
    <li>This allows to compile a Wasm module without Wasm validation which
    can be useful
    when users know that their inputs are valid Wasm binaries.</li>
    <li>This improves Wasm compilation performance for faster startup times
    by roughly 10-20%.</li>
    </ul>
    </li>
    <li>Added Wasm compilation modes. (<a
    href="https://redirect.github.com/paritytech/wasmi/pull/844">paritytech/wasmi#844</a>)
    <ul>
    <li>When using <code>Module::new</code> Wasmi eagerly compiles Wasm
    bytecode into Wasmi bytecode
    which is optimized for efficient execution. However, this compilation
    can become very
    costly especially for large Wasm binaries.</li>
    <li>The solution to this problem is to introduce new compilation modes,
    namely:
    <ul>
    <li><code>CompilationMode::Eager</code>: Eager compilation, what Wasmi
    did so far. (default)</li>
    <li><code>CompilationMode::LazyTranslation</code>: Eager Wasm validation
    and lazy Wasm translation.</li>
    <li><code>CompilationMode::Lazy</code>: Lazy Wasm validation and
    translation.</li>
    </ul>
    </li>
    <li>Benchmarks concluded that
    <ul>
    <li><code>CompilationMode::LazyTanslation</code>: Usually improves
    startup performance by a factor of 2 to 3.</li>
    <li><code>CompilationMode::Lazy</code>: Usually improves startup
    performance by a factor of up to 27.</li>
    </ul>
    </li>
    <li>Note that <code>CompilationMode::Lazy</code> can lead to partially
    validated Wasm modules
    which can introduce non-determinism when using different Wasm
    implementations.
    Therefore users should know what they are doing when using
    <code>CompilationMode::Lazy</code> if this is a concern.</li>
    <li>Enable lazy Wasm compilation with:
    <pre lang="rust"><code>let mut config = wasmi::Config::default();
    </code></pre>
    </li>
    </ul>
    </li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/0218dfc74b4c4a83261d46d90ac83fb513fd6b3f"><code>0218dfc</code></a>
    Fix <code>InstanceCache</code> bug (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/904">#904</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/3fd0cc2b2d7b7a55142e6a6cffffbe4212ed00ae"><code>3fd0cc2</code></a>
    Bump <code>wasmi_arena</code> version (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/903">#903</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/86c874029eba5067f4ecd01bc3c4f6dacab5a16e"><code>86c8740</code></a>
    Fix <code>Sync</code> impl bug in <code>wasmi_arena</code> crate (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/902">#902</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/27def282b06613e770d0ab96de88b9909973a12b"><code>27def28</code></a>
    Bump actions/cache from 3 to 4 (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/900">#900</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/59f9acc4776c09a35c6d563609de6818e9b65084"><code>59f9acc</code></a>
    Fix typos (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/899">#899</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/4c06acd816ccde6f45f9cc16aac4e18d36066054"><code>4c06acd</code></a>
    Update and improve Wasmi's readme (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/898">#898</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/2354a20ecc5e4209af2ba7458a8c383789ad8b4f"><code>2354a20</code></a>
    Prepare release for Wasmi <code>v0.32.0 beta.5</code> (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/893">#893</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/a4dc251bf066c362a2fc6acf00da924659894c6d"><code>a4dc251</code></a>
    Fix heap buffer overflow due to Wasmi codegen bug (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/892">#892</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/e60da4979009370cb1149b29dbb612886854efa9"><code>e60da49</code></a>
    Add CI test job using LLVM's Address Sanitizer (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/891">#891</a>)</li>
    <li><a
    href="https://github.com/paritytech/wasmi/commit/28c770ac9623d78ce10c67d9bec013e0d3a43bcb"><code>28c770a</code></a>
    Prepare release for Wasmi <code>v0.32.0-beta.4</code> (<a
    href="https://redirect.github.com/paritytech/wasmi/issues/889">#889</a>)</li>
    <li>Additional commits viewable in <a
    href="https://github.com/paritytech/wasmi/compare/v0.31.0...v0.31.2">compare
    view</a></li>
    </ul>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasmi&package-manager=cargo&previous-version=0.31.0&new-version=0.31.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    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-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    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 show <dependency name> ignore conditions` will show all
    of the ignore conditions of the specified dependency
    - `@dependabot ignore <dependency name> major version` will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's major version (unless you unignore this specific
    dependency's major version or upgrade to it yourself)
    - `@dependabot ignore <dependency name> minor version` will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's minor version (unless you unignore this specific
    dependency's minor version or upgrade to it yourself)
    - `@dependabot ignore <dependency name>` will close this group update PR
    and stop Dependabot creating any more for the specific dependency
    (unless you unignore this specific dependency or upgrade to it yourself)
    - `@dependabot unignore <dependency name>` will remove all of the ignore
    conditions of the specified dependency
    - `@dependabot unignore <dependency name> <ignore condition>` will
    remove the ignore condition of the specified dependency and ignore
    conditions
    
    
    </details>
    
    Signed-off-by: default avatardependabot[bot] <[email protected]>
    Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    41db45a2