pchickey opened PR #13582 from pchickey:pch/wizer_component_wave_exprs to bytecodealliance:main:
Draft: needs testing, which is a problem for monday
github-actions[bot] added the label wizer on PR #13582.
github-actions[bot] commented on PR #13582:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "wizer"Thus the following users have been cc'd because of the following labels:
- fitzgen: wizer
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
pchickey updated PR #13582.
pchickey updated PR #13582.
pchickey edited PR #13582:
Wizer now supports wave function call expressions being used as an init func for components, e.g.
local:local/init.add-string@0.1.0("hello, world")This works from both the crate interface and the wasmtime-cli interface.
The diff for the change is straightforward. New test-program to exercise, and a test exercising this functionality has been added to the wizer crate and wasmtime-cli.
pchickey has marked PR #13582 as ready for review.
pchickey requested dicej for a review on PR #13582.
pchickey requested wasmtime-core-reviewers for a review on PR #13582.
pchickey requested fitzgen for a review on PR #13582.
pchickey edited PR #13582:
Wizer now supports wave function call expressions being used as an init func for components, e.g.
local:local/init.add-string@0.1.0("hello, world")This works from both the crate interface and the wasmtime-cli interface.
The diff for the change is straightforward. New test-program to exercise, and a test exercising this functionality has been added to the wizer crate and wasmtime-cli.
Docs for the wasmtime-cli options were updated, including a case I missed from
run --invokein #13564
:thumbs_up: dicej submitted PR review.
:speech_balloon: dicej created PR review comment:
Not a blocker for this PR, but it would be nice to return them from
Wizer::run_componentand, in the case of the CLI, print them to stdout.
:speech_balloon: dicej created PR review comment:
eprintln!("don't use as a command");
pchickey updated PR #13582.
pchickey edited PR #13582:
Wizer now supports wave function call expressions being used as an init func for components, e.g.
local:local/init.add-string@0.1.0("hello, world")This works from both the crate interface and the wasmtime-cli interface.
When
wasmtime wizer --init-func (func expr)is used with a component, it will print the function results in wave to stdout. This opens up a clever mode where you can use a component on disk as a stateful rpc server with wave encoding for the request and response.The diff for the change is straightforward. New test-program to exercise, and a test exercising this functionality has been added to the wizer crate and wasmtime-cli.
Docs for the wasmtime-cli options were updated, including a case I missed from
run --invokein #13564
:memo: pchickey submitted PR review.
:speech_balloon: pchickey created PR review comment:
Agreed, and already done :) They actually already print to stdout in the cli because its using the
run --invokecode under the hood in there -- command/wizer.rs is integrated so nicely with command/run.rs! great work @alexcrichton it was a joy to realize how little I had to do to benefit from that.
pchickey updated PR #13582.
pchickey updated PR #13582.
pchickey updated PR #13582.
pchickey has enabled auto merge for PR #13582.
pchickey updated PR #13582.
pchickey added PR #13582 wizer: support init func as a wave function call (components only) to the merge queue
:check: pchickey merged PR #13582.
pchickey removed PR #13582 wizer: support init func as a wave function call (components only) from the merge queue
Last updated: Jul 29 2026 at 05:03 UTC