Stream: git-wasmtime

Topic: wasmtime / PR #13582 wizer: support init func as a wave f...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2026 at 00:15):

pchickey opened PR #13582 from pchickey:pch/wizer_component_wave_exprs to bytecodealliance:main:

Draft: needs testing, which is a problem for monday

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2026 at 02:35):

github-actions[bot] added the label wizer on PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2026 at 02:35):

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:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 19:06):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 19:48):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:12):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:12):

pchickey has marked PR #13582 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:12):

pchickey requested dicej for a review on PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:12):

pchickey requested wasmtime-core-reviewers for a review on PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:12):

pchickey requested fitzgen for a review on PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:15):

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 --invoke in #13564

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:38):

:thumbs_up: dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:38):

:speech_balloon: dicej created PR review comment:

Not a blocker for this PR, but it would be nice to return them from Wizer::run_component and, in the case of the CLI, print them to stdout.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:38):

:speech_balloon: dicej created PR review comment:

    eprintln!("don't use as a command");

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:39):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:41):

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 --invoke in #13564

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:42):

:memo: pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:42):

: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 --invoke code 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.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 20:43):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 22:48):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 22:50):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 22:50):

pchickey has enabled auto merge for PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 23:10):

pchickey updated PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 23:19):

pchickey added PR #13582 wizer: support init func as a wave function call (components only) to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 23:43):

:check: pchickey merged PR #13582.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2026 at 23:43):

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