bytecodealliance / componentize-py

Apache License 2.0
136 stars 13 forks source link

various updates to support `wasi:http@0.2.0-rc-2023-10-18` #43

Closed dicej closed 9 months ago

dicej commented 9 months ago

This fixes various issues:

This also bumps the version to 0.6.0.

Note that I've had to remove the matrix-math example since wasmtime-py does not yet support resources. Although the example itself doesn't use them, the new WASI Preview 1 adapter pulls them in as WASI Preview 2 imports, and there's no feasible way to work around that. Ideally, we'd provide the option to allow users to supply their own adapter, in which case we could use a pre-resource version of the adapter. However, that won't work given that pre-initialization is central to how componentize-py works. Hopefully we can bring back this example in the future, e.g. when wasmtime-py adds support for resources.