abrown opened PR #10777 from abrown:fix-mpk-example to bytecodealliance:main:
The
--memory-sizeargument caused failures when running thempk.rsexample. This was due to someclap-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 u64This change explicitly uses
u64for the CLI argument, fixing the failure.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
abrown requested alexcrichton for a review on PR #10777.
abrown requested wasmtime-core-reviewers for a review on PR #10777.
pchickey submitted PR review.
abrown has enabled auto merge for PR #10777.
jlb6740 submitted PR review:
Cool! Runs well.
abrown merged PR #10777.
Last updated: Dec 06 2025 at 07:03 UTC