Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit adds a new WASI-specific CLI option dubbed "p3" which controls whether WASIp3 interfaces are added to the component linker and whether WASIp3 exports are searched for. Integration here is only added with wasmtime run and support for wasmtime serve will come once wasi:http is migrated to this repository from the p3-prototyping repository.

The -Sp3 option is off-by-default at this time but this is structured to enable it by default in the future. A test is added to ensure that WASIp3 is usable and a basic "hello world" works.

Some internal refactoring was done to share more code between run and serve with respect to adding WASI interfaces to a linker.

Closes bytecodealliance/wasip3-prototyping#108

This commit adds a new WASI-specific CLI option dubbed "p3" which
controls whether WASIp3 interfaces are added to the component linker and
whether WASIp3 exports are searched for. Integration here is only added
with `wasmtime run` and support for `wasmtime serve` will come once
wasi:http is migrated to this repository from the p3-prototyping
repository.

The `-Sp3` option is off-by-default at this time but this is structured
to enable it by default in the future. A test is added to ensure that
WASIp3 is usable and a basic "hello world" works.

Some internal refactoring was done to share more code between `run` and
`serve` with respect to adding WASI interfaces to a linker.
@alexcrichton alexcrichton requested review from a team as code owners August 12, 2025 22:41
@alexcrichton alexcrichton requested review from dicej and removed request for a team August 12, 2025 22:41
@alexcrichton alexcrichton enabled auto-merge August 12, 2025 22:56
@alexcrichton alexcrichton added this pull request to the merge queue Aug 12, 2025
Merged via the queue into bytecodealliance:main with commit eced7c7 Aug 12, 2025
44 checks passed
@alexcrichton alexcrichton deleted the wasip3-cli branch August 12, 2025 23:30
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
* Add a new `-Sp3` option to the CLI

This commit adds a new WASI-specific CLI option dubbed "p3" which
controls whether WASIp3 interfaces are added to the component linker and
whether WASIp3 exports are searched for. Integration here is only added
with `wasmtime run` and support for `wasmtime serve` will come once
wasi:http is migrated to this repository from the p3-prototyping
repository.

The `-Sp3` option is off-by-default at this time but this is structured
to enable it by default in the future. A test is added to ensure that
WASIp3 is usable and a basic "hello world" works.

Some internal refactoring was done to share more code between `run` and
`serve` with respect to adding WASI interfaces to a linker.

* Use a normal blocking test

* Fix warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce -S p3 wasip3 CLI feature gate

2 participants