component-model
component-model copied to clipboard
Repository for design and specification of the Component Model
This PR adds a `map` to the set of Component Model and WIT value types as discussed in #125, specifically based on [this design](https://github.com/WebAssembly/component-model/issues/125#issuecomment-3129960033) by @yordis. With the approach of...
A few days ago WASM 3.0 was standardized, supporting GC. However, I am trying to use the component model and I cannot find any information how/if it supports/will support WASM...
Situation: I want to map the JS DOM Node, Element, HTMLElement, etc. classes to WIT somehow so that I can import them from the JS host in my Rust WASM...
Currently one can use `include` to derive one world from another, however I've been finding myself wanting more ways: - `include_imports` - Like `include`, but only includes imports - `include_exports`...
I think that these two snippets should be equivalent: ```wit @since(version = 0.1.0) interface handler { handle: func(); @since(version = 0.2.0); new-handle: func(); } ``` ```wit @since(version = 0.1.0) interface...
It appears that when a stream operation is cancelled the resulting `copy-result` could be either `completed` or `cancelled`. Given that the caller "knows" it has cancelled the stream is there...
(post-0.3.0) Currently we use `option` (e.g. [here](https://github.com/WebAssembly/wasi-http/blob/ed620562ee1d089a20aa67cd7790782d03f2f505/wit-0.3.0-draft/types.wit#L259)) to avoid stream bookkeeping for empty streams (iirc). As an alternative, how about a `stream.empty` built-in that returns a "pre-dropped" readable stream? This...
The current syntax for a package declaration is this: ```ebnf package-decl ::= 'package' ( id ':' )+ id ( '/' id )* ('@' valid-semver)? ``` The spec doesn't describe the...
Hello! First off, I am not sure if this is the proper place for this issue, as I don't know if this issue is a problem with the component model...
Doing a search in the github issues, I have yet to see a ticket where anyone has explicitly asked for this yet. [Apparently](https://github.com/WebAssembly/component-model/issues/357#issuecomment-2109018082), there has been [discussion](https://github.com/WebAssembly/component-model/issues/172) on something similar...