Skip to content

Using wasmtime-api with wasmtime-wasi and wasmtime-interface-types #556

@skyne98

Description

@skyne98

Hi there, awesome work you are doing here guys!

However, I have a small question: is wasmtime-api compatible with crates such as wasmtime-wasi or wasmtime-interface-types in any way?
Right now, it seems that for it to work the wasmtime_api crate will have to explicitly support WASI via a flag in the configuration or something for the Instance to create its handle via the function provided as an alternative by the wasmtime-wasi crate. Even in this case, it looks like it would be a much better idea to include a completely optional wasi_config: Option<WasiConfig> field in the configuration for the engine, that will include pre-opened dirs, etc.

Including WASI support seems pretty straighforward, if doing it this way and not trying to engineer a more generic solution like guys at Wasmer did here.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions