This commit updates the wasm-tools family of crates, notably pulling in the refactorings and updates from bytecodealliance/wasm-tools#621 for the latest iteration of the component model. This commit additionally updates all support for the component model for these changes, notably: * Many bits and pieces of type information was refactored. Many `FooTypeIndex` namings are now `TypeFooIndex`. Additionally there is now `TypeIndex` as well as `ComponentTypeIndex` for the two type index spaces in a component. * A number of new sections are now processed to handle the core and component variants. * Internal maps were split such as the `funcs` map into `component_funcs` and `funcs` (same for `instances`). * Canonical options are now processed individually instead of one bulk `into` definition. Overall this was not a major update to the internals of handling the component model in Wasmtime. Instead this was mostly a surface-level refactoring to make sure that everything lines up with the new binary format for components. * All text syntax used in tests was updated to the new syntax.
23 lines
352 B
Plaintext
23 lines
352 B
Plaintext
(component)
|
|
|
|
(component
|
|
(core module)
|
|
)
|
|
|
|
(component
|
|
(core module)
|
|
(core module)
|
|
(core module)
|
|
)
|
|
|
|
(component
|
|
(core module
|
|
(func (export "a") (result i32) i32.const 0)
|
|
(func (export "b") (result i64) i64.const 0)
|
|
)
|
|
(core module
|
|
(func (export "c") (result f32) f32.const 0)
|
|
(func (export "d") (result f64) f64.const 0)
|
|
)
|
|
)
|