1414: Update doc comment for `RuntimeError` r=Hywan a=MarkMcCaskey
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Ivan Enderlin <ivan@mnt.io>
1413: some minor improvements r=MarkMcCaskey a=michaelvoronov
<!--
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests
-->
# Description
Some minor improvements.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: vms <michail.vms@gmail.com>
1401: Make runtime and trap errors well defined r=syrusakbary a=MarkMcCaskey
Resolves#1328
This PR goes through and gives explicit types for all the errors instead of using `Box<dyn Any + Send>` where possible. This gives users better insight into what the specific errors are and should help with debugging in the case of mistakes in our code.
The remaining uses of `Box<dyn Any>` are due to the structure of our dependency graph -- this is probably solvable but it seems fine as is as all error types are now explicit and the remaining `Box<dyn Any>`s are either fully user controlled or not for end-user consumption.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
1410: feat(runtime-core) Implement `ImportObjectIterator::size_hint`. r=MarkMcCaskey a=Hywan
Because it is helpful in some circumstances.
Co-authored-by: Ivan Enderlin <ivan@mnt.io>
1358: Update C API to use new API r=MarkMcCaskey a=MarkMcCaskey
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
1375: chore(deps): bump smallvec from 1.2.0 to 1.3.0 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.2.0 to 1.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/servo/rust-smallvec/releases">smallvec's releases</a>.</em></p>
<blockquote>
<h2>v1.3.0</h2>
<ul>
<li>Add a new unstable <code>const_generics</code> feature (<a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/204">#204</a>).</li>
<li>Improve inlining of constructor functions (<a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/206">#206</a>).</li>
<li>Add a <code>slice.to_smallvec()</code> convenience method (<a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/203">#203</a>).</li>
<li>Documentation and testing improvements.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3957cd8b36"><code>3957cd8</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/207">#207</a> - mbrubeck:bump, r=mbrubeck</li>
<li><a href="851d222629"><code>851d222</code></a> Version 1.3.0</li>
<li><a href="6a14df03e5"><code>6a14df0</code></a> Document Cargo features</li>
<li><a href="c48902fb78"><code>c48902f</code></a> Make ToSmallVec trait public</li>
<li><a href="faca460f0c"><code>faca460</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/206">#206</a> - hiddenhare:inline-constructors, r=mbrubeck</li>
<li><a href="f5f6d89e7e"><code>f5f6d89</code></a> Add #[inline] attribute to all fns which return SmallVec</li>
<li><a href="9cdf8fb424"><code>9cdf8fb</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/204">#204</a> - c410-f3r:const__generics, r=mbrubeck</li>
<li><a href="02cdf2492e"><code>02cdf24</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/servo/rust-smallvec/issues/205">#205</a> - c410-f3r:fix-ci, r=mbrubeck</li>
<li><a href="9f2f610d52"><code>9f2f610</code></a> Fix CI</li>
<li><a href="70e967edaa"><code>70e967e</code></a> Add support for constant generics</li>
<li>Additional commits viewable in <a href="https://github.com/servo/rust-smallvec/compare/v1.2.0...v1.3.0">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=smallvec&package-manager=cargo&previous-version=1.2.0&new-version=1.3.0)](https://dependabot.com/compatibility-score/?dependency-name=smallvec&package-manager=cargo&previous-version=1.2.0&new-version=1.3.0)
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
1394: Bump libc from 0.2.68 to 0.2.69 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.68 to 0.2.69.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rust-lang/libc/releases">libc's releases</a>.</em></p>
<blockquote>
<h2>0.2.69</h2>
<p>Bump patch version to 0.2.69</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d833b6b2d6"><code>d833b6b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/1732">#1732</a> from Minoru/feature/release-0.2.69</li>
<li><a href="9604f461dc"><code>9604f46</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-lang/libc/issues/1697">#1697</a> from JohnTitor/emscripten</li>
<li><a href="542eef19b9"><code>542eef1</code></a> Fix <code>max_align_t</code> size and align</li>
<li><a href="c1a4d6271d"><code>c1a4d62</code></a> Use wasi values for <code>errno</code>s</li>
<li><a href="622e6f5d25"><code>622e6f5</code></a> Update node to v12.16.2</li>
<li><a href="991678ce0b"><code>991678c</code></a> Skip test for <code>SYS_gettid</code></li>
<li><a href="3d8197ec2b"><code>3d8197e</code></a> Update links</li>
<li><a href="80a2f9cbb2"><code>80a2f9c</code></a> Update emsdk to 1.39.12</li>
<li><a href="4eb6331c4f"><code>4eb6331</code></a> Remove <code>TCP_FASTOPEN_CONNECT</code> from emscripten</li>
<li><a href="be0347bbec"><code>be0347b</code></a> Remove <code>IPV6_FLOWINFO</code> from emscripten</li>
<li>Additional commits viewable in <a href="https://github.com/rust-lang/libc/compare/0.2.68...0.2.69">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.68&new-version=0.2.69)](https://dependabot.com/compatibility-score/?dependency-name=libc&package-manager=cargo&previous-version=0.2.68&new-version=0.2.69)
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
1374: chore(deps): bump parking_lot from 0.10.0 to 0.10.2 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.10.0 to 0.10.2.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md">parking_lot's changelog</a>.</em></p>
<blockquote>
<h2>parking_lot 0.10.2 (2020-04-10)</h2>
<ul>
<li>Update minimum version of <code>lock_api</code>.</li>
</ul>
<h2>parking_lot 0.10.1, parking_lot_core 0.7.1, lock_api 0.3.4 (2020-04-10)</h2>
<ul>
<li>Add methods to construct <code>Mutex</code>, <code>RwLock</code>, etc in a <code>const</code> context. (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/217">#217</a>)</li>
<li>Add <code>FairMutex</code> which always uses fair unlocking. (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/204">#204</a>)</li>
<li>Fixed panic with deadlock detection on macOS. (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/203">#203</a>)</li>
<li>Fixed incorrect synchronization in <code>create_hashtable</code>. (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/210">#210</a>)</li>
<li>Use <code>llvm_asm!</code> instead of the deprecated <code>asm!</code>. (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/223">#223</a>)</li>
</ul>
<h2>lock_api 0.3.3 (2020-01-04)</h2>
<ul>
<li>Deprecate unsound <code>MappedRwLockWriteGuard::downgrade</code> (<a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/198">#198</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4cb93a3268"><code>4cb93a3</code></a> Bump parking_lot to version 0.10.2</li>
<li><a href="d070a26900"><code>d070a26</code></a> Merge <a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/224">#224</a></li>
<li><a href="8030870c0f"><code>8030870</code></a> Update required parking_lot_core version</li>
<li><a href="413432c43e"><code>413432c</code></a> Fix required lock_api version</li>
<li><a href="699325c9a7"><code>699325c</code></a> Add test for <a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/203">#203</a></li>
<li><a href="761a4d567f"><code>761a4d5</code></a> Bump versions of all crates</li>
<li><a href="87a574488c"><code>87a5744</code></a> Merge <a href="https://github-redirect.dependabot.com/Amanieu/parking_lot/issues/223">#223</a></li>
<li><a href="806e5c1c1e"><code>806e5c1</code></a> Attempt to fix CI</li>
<li><a href="9bed8e3dd1"><code>9bed8e3</code></a> Fix documentation link</li>
<li><a href="dce000d302"><code>dce000d</code></a> Use llvm_asm! instead of asm!</li>
<li>Additional commits viewable in <a href="https://github.com/Amanieu/parking_lot/compare/0.10.0...0.10.2">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=parking_lot&package-manager=cargo&previous-version=0.10.0&new-version=0.10.2)](https://dependabot.com/compatibility-score/?dependency-name=parking_lot&package-manager=cargo&previous-version=0.10.0&new-version=0.10.2)
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
1376: chore(deps): bump structopt from 0.3.12 to 0.3.13 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.12 to 0.3.13.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md">structopt's changelog</a>.</em></p>
<blockquote>
<h1>v0.3.13 (2020-04-9)</h1>
<ul>
<li>Bump <code>proc-macro-error</code> to <code>1.0</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/TeXitoi/structopt/commits">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=structopt&package-manager=cargo&previous-version=0.3.12&new-version=0.3.13)](https://dependabot.com/compatibility-score/?dependency-name=structopt&package-manager=cargo&previous-version=0.3.12&new-version=0.3.13)
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
1392: Bump blake3 from 0.3.1 to 0.3.2 r=MarkMcCaskey a=dependabot-preview[bot]
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3) from 0.3.1 to 0.3.2.
<details>
<summary>Commits</summary>
<ul>
<li><a href="fcb4b83419"><code>fcb4b83</code></a> version 0.3.2</li>
<li><a href="d5e26538fc"><code>d5e2653</code></a> refactor build.rs</li>
<li><a href="7ef795d62e"><code>7ef795d</code></a> Do not require AVX512DQ</li>
<li><a href="370ba3644a"><code>370ba36</code></a> print the compiler version in CI, for help with debugging</li>
<li><a href="86c3174d5b"><code>86c3174</code></a> unbreak neon benchmarks</li>
<li><a href="e3069da68e"><code>e3069da</code></a> only run CI on branches and PRs, not tags</li>
<li>See full diff in <a href="https://github.com/BLAKE3-team/BLAKE3/compare/0.3.1...0.3.2">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=blake3&package-manager=cargo&previous-version=0.3.1&new-version=0.3.2)](https://dependabot.com/compatibility-score/?dependency-name=blake3&package-manager=cargo&previous-version=0.3.1&new-version=0.3.2)
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>