Skip to content

Add char, variant and flags component values - #384

Merged
martindevans merged 1 commit into
bytecodealliance:mainfrom
phillipcaofph:add-var-variant-flag-component-values
Oct 11, 2026
Merged

martindevans merged 1 commit into
bytecodealliance:mainfrom
phillipcaofph:add-var-variant-flag-component-values

Conversation

@phillipcaofph

Copy link
Copy Markdown
Contributor

Add support for the rest of the simpler component value types. Resource and Map types remain unsupported.

@phillipcaofph
phillipcaofph force-pushed the add-var-variant-flag-component-values branch from 8d3afd1 to 1d4e2fd Compare October 11, 2026 01:55
Comment thread src/Components/ComponentValue.cs

@martindevans martindevans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'm happy to merge as-is if you don't think the overloads I mentioned are worthwhile/feasible to implement.

Support validated Unicode scalars and named variants and flags in the component value API. Marshal caller-owned arguments and Wasmtime-owned callback results with the correct native layouts and allocation ownership.

Add boundary, nested-value, owned-allocation and native clone tests.
@phillipcaofph
phillipcaofph force-pushed the add-var-variant-flag-component-values branch from 1d4e2fd to 4044981 Compare October 11, 2026 20:52
@martindevans
martindevans merged commit 0cc6b5f into bytecodealliance:main Oct 11, 2026
6 checks passed
@martindevans

Copy link
Copy Markdown
Member

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants