Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Create a builder-style object for WasiExecutionContext #6

Closed
radu-matei opened this issue Aug 15, 2021 · 0 comments · Fixed by #7
Closed

Create a builder-style object for WasiExecutionContext #6

radu-matei opened this issue Aug 15, 2021 · 0 comments · Fixed by #7

Comments

@radu-matei
Copy link
Member

radu-matei commented Aug 15, 2021

It would very convenient to a builder object for the execution context -- this would allow importers to choose which host imports to use when instantiating a specific engine -- and it would make it much clearer what host imports are available.

Currently, core WASI, experimental HTTP, and WASI NN are imported by default -- the default should probably just be core WASI, with the other options (and as we add more) available through the builder.

The builder will probably have to contain references to the store and linker used for pre-instantiation.

This could also be a good exercise in thinking about allowing implementers to define their own host imports.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant