alexcrichton opened PR #10896 from alexcrichton:component-instance-id to bytecodealliance:main:
This is intended to be similar to
InstanceId, but used for components.<!--
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
-->
alexcrichton requested dicej for a review on PR #10896.
alexcrichton requested wasmtime-core-reviewers for a review on PR #10896.
alexcrichton commented on PR #10896:
This is split out of https://github.com/bytecodealliance/wasmtime/pull/10870 and is needed for a method of defining globals where globals can be flags for instances.
dicej submitted PR review.
dicej created PR review comment:
Will we also be adding a
component_instance_mutmethod for getting a&mut ComponentInstancefrom a&mut self?
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Indeed! I'll go ahead and add that in to indicate that it's desired too.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Hm ok no just kidding. There's not a safe
instance_mutaccessor due to my historical (and probably irrational paranoia). When we move more towards indices though I believe it should be safe to add that, but it'll need some other changes too.
alexcrichton merged PR #10896.
Last updated: Dec 06 2025 at 06:05 UTC