bytecodealliance / preview2-prototyping

Polyfill adapter for preview1-using wasm modules to call preview2 functions.
Other
77 stars 20 forks source link

scaffold out preview 1 support #162

Closed pchickey closed 1 year ago

pchickey commented 1 year ago

Based on #159 and #160

This PR scaffolds out support for preview 1 in wasi-common in terms of the preview 2 implementation.

The entire implementation itself is left as todo!(), but the skeleton is there: wiggle generates the preview 1 trait, and the implementation must be in terms of the wasmtime::component::bindgen! traits.

Runner and test suite are all added, so we can measure when the preview 1 support is "done" when it passes all tests, or at least fails the same trailing slash ones as its component based parent.

I had to rejigger the test suites as part of this PR: