Skip to content

Component support for WASI p2 #432

Open
@jbourassa

Description

@jbourassa

Add support for WASI p2.

TODOs (potentially incomplete):

  • Replace wasi_common crate with wasmtime_wasi
    • Requires rebuilding deterministic context, hopefully it should be trivial.
  • Ensure deterministic context also disables udp, tcp, and other form of non-determinism.
  • Expose additional methods such as inherit_network, allow_ip_name_lookup, allow_udp, allow_tcp

WasiCtxBuilder has settings where the user can inject an implementation, e.g. socket_addr_check. Ideally, we'd allow Ruby blocks to define such implementations. But unsure how we can achieve this: calling an arbitrary Ruby block is faillible, and the implementations do not allow for failure. Given this challenge, I'd suggest skipping those config knobs initially.

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