rylev / wepl

A repl for WebAssembly Components
Apache License 2.0
105 stars 7 forks source link

Stub out resources and handle wasi imports that are not the wasi:cli/command world #17

Closed rylev closed 6 months ago

rylev commented 6 months ago

This stubs out resources so that we don't get linker errors when the input component imports resources.

wepl is also a bit more precise about which wasi imports it stubs. It checks only for those packages that are used by wasi:cli/command and lets other wasi packages (e.g., wasi:http) through.