Repository navigation
Add support for the compact imports proposal - #14335
Conversation
Subscribe to Label Actioncc @fitzgen DetailsThis issue or pull request has been labeled: "fuzzing", "wasmtime:api", "wasmtime:c-api", "wasmtime:config", "wasmtime:docs"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
Label Messager: wasmtime:configIt looks like you are changing Wasmtime's configuration options. Make sure to
DetailsTo modify this label's message, edit the To add new label messages or remove existing label messages, edit the |
|
New config method has documentation in line with other feature config functions. In local fuzzing runs, Config is off by default pending fuzzing. Btw docs Wasm Proposals says 1 week of fuzzing, but reminder bot says 2 weeks. |
fitzgen
left a comment
There was a problem hiding this comment.
LGTM, modulo two minor things below. Thanks!
| /// Configures whether the WebAssembly compact imports proposal is enabled. | ||
| /// | ||
| /// This feature is `false` by default. | ||
| /// | ||
| /// [proposal]: https://github.com/WebAssembly/compact-import-section |
There was a problem hiding this comment.
The [proposal] link is not actually used in the docs above, but should be.
We should a short paragraph summary of what the proposal actually is/enables here as well, similar to other Wasm proposal knobs.
There was a problem hiding this comment.
Does the spec testsuite not cover compact imports? I would have expected that we also enable running the spec tests for compact imports somewhere in crates/test-util/src/wast.rs or something.
1a80f37 to
096829f
Compare
|
I've updated the config documentation. As of last week, the spec tests do have compact-imports tests. I updated the submodule revision and configured features for new tests. Some of the compact import tests currently fail because we reject zero-length compact import encoding groups. bytecodealliance/wasm-tools#2664 should fix that once Wasmtime uses a version of I'm not really sure what to do with the other test failures. Looks like |
|
Can you flag all those tests somewhere around in this function as "should fail"? Those are mostly expected failures for now and we'll get them fixed when the proposals are fully implemented. |
cef0a77 to
19da324
Compare
Adds support for the compact imports proposal, part of #14108.
Adds:
Config::wasm_compact_importsoption, defaultfalseWaiting on 1 week of fuzzer runs to move the proposal to tier 1 and enable the proposal by default.
Please let me know if anything else needs to be added.