bytecodealliance / component-docs

Documentation around creating and using WebAssembly Components
https://component-model.bytecodealliance.org/
Other
73 stars 44 forks source link

Document all `wit` keywords: `const`, ... #107

Open nuke-web3 opened 7 months ago

nuke-web3 commented 7 months ago

I see resource used in https://github.com/WebAssembly/WASI/blob/main/preview2/http/types.wit#L146 and other places, notably https://github.com/WebAssembly/wasi-http/blob/main/wit-0.3.0-draft/types.wit#L254-L339 is one that is intuitively exposes a collection of func() and I am guessing optionally a constructor(). WIP covers resource :grin:

Some keywords mentioned in https://component-model.bytecodealliance.org/design/wit.html at this time are not covered in the book - I would expect all keywords would have a mention... but maybe I just have not found out yet that those are not user facing somehow and reserved for wasi internally or something? :sweat:

itowlson commented 7 months ago

Resources are in progress at https://github.com/bytecodealliance/component-docs/pull/103