alexcrichton requested fitzgen for a review on PR #4216.
alexcrichton opened PR #4216 from canonical-options-refactor to main:
When lifting and lowering for component host imports there won't be a
Funcavailable to represent the options and such for the lowering.
That means that the current construction of theComponentValuetrait
won't be sufficient for host imports. This commit instead refactors the
traits to instead work with anOptionstype where theOptionstype
can be manufactured from thin air out of the arguments passed to the
component host trampolines.This new
Optionstype is also suitable for storing inWasmStrand
WasmListto continue to be used to refer back to memory after
these lifted values have been given back to the embedder.Overall this should largely just be shuffling code around and renaming
func: &Functooptions: &Options.<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen submitted PR review.
alexcrichton merged PR #4216.
Last updated: Dec 06 2025 at 06:05 UTC