Skip to content

wiggle: make wasmtime a mandatory dep, get rid of own Trap enum#5137

Merged
pchickey merged 8 commits into
mainfrom
pch/wiggle_wasmtime_mandatory
Oct 27, 2022
Merged

wiggle: make wasmtime a mandatory dep, get rid of own Trap enum#5137
pchickey merged 8 commits into
mainfrom
pch/wiggle_wasmtime_mandatory

Conversation

@pchickey
Copy link
Copy Markdown
Contributor

@pchickey pchickey commented Oct 26, 2022

Wiggle (& wasi-common) did a fair bit of cargo feature & other gymnastics to support Lucet and Wasmtime simultaneously. Supporting Lucet is no longer a concern, so I erased the cargo features that made wasmtime support optional in these crates, and got rid of the intermediate wiggle::Trap enum, using wasmtime::Trap directly instead.

Note this means wasi-common will no longer build for wasm32-unknown-emscripten nor armv7-unknown-linux because it depends on wasmtime. The emscripten used to build for that target to support a web polyfill, but we haven't maintained that polyfill in years and are fine with dropping that support. I have no idea what the armv7 target was used for. These targets were enforced in CI for a long time, and I deleted the CI job that checks for them.

We will be adding component support to wasi-common shortly, which will also incur a direct wasmtime dep in that crate, so those targets were going to be broken pretty soon anyway. I hope that this doesn't cause too much grief for anyone.

Pat Hickey added 5 commits October 26, 2022 13:35
this existed so we could use wiggle in lucet, but lucet is long EOL
formally add a dependency on wasmtime here to make it obvious, though
we do now have a transitive one via wiggle no matter what (and therefore
can get rid of the default-features=false on the wiggle dep)
there's no way the implementation of this func is actually
a good idea, it will panic the host process on any error,
but I'll ask @mtr to fix that
@github-actions github-actions Bot added the wasi Issues pertaining to WASI label Oct 26, 2022
@github-actions
Copy link
Copy Markdown

Subscribe to Label Action

cc @kubkon

Details This issue or pull request has been labeled: "wasi"

Thus the following users have been cc'd because of the following labels:

  • kubkon: wasi

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@pchickey pchickey merged commit 0290a83 into main Oct 27, 2022
@pchickey pchickey deleted the pch/wiggle_wasmtime_mandatory branch October 27, 2022 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasi Issues pertaining to WASI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants