Update wasm-tools crates (#4246)
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.
This commit is contained in:
@@ -15,13 +15,13 @@ log = "0.4.8"
|
||||
rayon = "1.2.1"
|
||||
target-lexicon = "0.12.3"
|
||||
tempfile = "3.3.0"
|
||||
wasmparser = "0.85.0"
|
||||
wasmprinter = "0.2.35"
|
||||
wasmparser = "0.86.0"
|
||||
wasmprinter = "0.2.36"
|
||||
wasmtime = { path = "../wasmtime" }
|
||||
wasmtime-wast = { path = "../wast" }
|
||||
wasm-encoder = "0.12.0"
|
||||
wasm-smith = "0.10.1"
|
||||
wasm-mutate = "0.2.3"
|
||||
wasm-encoder = "0.13.0"
|
||||
wasm-smith = "0.11.0"
|
||||
wasm-mutate = "0.2.4"
|
||||
wasm-spec-interpreter = { path = "./wasm-spec-interpreter", optional = true }
|
||||
wasmi = "0.7.0"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use arbitrary::{Arbitrary, Result, Unstructured};
|
||||
use std::ops::RangeInclusive;
|
||||
use wasm_encoder::{
|
||||
CodeSection, EntityType, Export, ExportSection, Function, FunctionSection, GlobalSection,
|
||||
CodeSection, EntityType, ExportKind, ExportSection, Function, FunctionSection, GlobalSection,
|
||||
ImportSection, Instruction, Module, TableSection, TableType, TypeSection, ValType,
|
||||
};
|
||||
|
||||
@@ -103,7 +103,7 @@ impl TableOps {
|
||||
functions.function(1);
|
||||
|
||||
let mut exports = ExportSection::new();
|
||||
exports.export("run", Export::Function(3));
|
||||
exports.export("run", ExportKind::Func, 3);
|
||||
|
||||
// Give ourselves one scratch local that we can use in various `TableOp`
|
||||
// implementations.
|
||||
|
||||
Reference in New Issue
Block a user