Stream: git-wasmtime

Topic: wasmtime / PR #10777 mpk: fix example CLI argument


view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 20:55):

abrown opened PR #10777 from abrown:fix-mpk-example to bytecodealliance:main:

The --memory-size argument caused failures when running the mpk.rs example. This was due to some clap-related conversions that no longer worked as when this was written:

thread 'main' panicked at examples/mpk.rs:69:18:
Mismatch between definition and access of `memory_size`. Could not
downcast to usize, need to downcast to u64

This change explicitly uses u64 for the CLI argument, fixing the failure.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 20:55):

abrown requested alexcrichton for a review on PR #10777.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 20:55):

abrown requested wasmtime-core-reviewers for a review on PR #10777.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 20:57):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 21:07):

abrown has enabled auto merge for PR #10777.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 21:18):

jlb6740 submitted PR review:

Cool! Runs well.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2025 at 21:32):

abrown merged PR #10777.


Last updated: Dec 06 2025 at 07:03 UTC