Update wasm-tools crates

Nothing major here, just a routine update with a few extra things to
handle here-and-there.
This commit is contained in:
Alex Crichton
2022-02-02 09:45:43 -08:00
parent c83968575a
commit 65486a0680
15 changed files with 102 additions and 42 deletions

View File

@@ -20,7 +20,7 @@ wasmtime-cache = { path = "../cache", version = "=0.33.0", optional = true }
wasmtime-fiber = { path = "../fiber", version = "=0.33.0", optional = true }
wasmtime-cranelift = { path = "../cranelift", version = "=0.33.0", optional = true }
target-lexicon = { version = "0.12.0", default-features = false }
wasmparser = "0.81"
wasmparser = "0.82"
anyhow = "1.0.19"
region = "2.2.0"
libc = "0.2"

View File

@@ -77,6 +77,8 @@ struct WasmFeatures {
pub multi_memory: bool,
pub exceptions: bool,
pub memory64: bool,
pub relaxed_simd: bool,
pub extended_const: bool,
}
impl From<&wasmparser::WasmFeatures> for WasmFeatures {
@@ -93,20 +95,24 @@ impl From<&wasmparser::WasmFeatures> for WasmFeatures {
multi_memory,
exceptions,
memory64,
} = other;
relaxed_simd,
extended_const,
} = *other;
Self {
reference_types: *reference_types,
multi_value: *multi_value,
bulk_memory: *bulk_memory,
module_linking: *module_linking,
simd: *simd,
threads: *threads,
tail_call: *tail_call,
deterministic_only: *deterministic_only,
multi_memory: *multi_memory,
exceptions: *exceptions,
memory64: *memory64,
reference_types,
multi_value,
bulk_memory,
module_linking,
simd,
threads,
tail_call,
deterministic_only,
multi_memory,
exceptions,
memory64,
relaxed_simd,
extended_const,
}
}
}
@@ -669,6 +675,8 @@ impl<'a> SerializedModule<'a> {
multi_memory,
exceptions,
memory64,
relaxed_simd,
extended_const,
} = self.metadata.features;
Self::check_bool(
@@ -714,6 +722,16 @@ impl<'a> SerializedModule<'a> {
other.memory64,
"WebAssembly 64-bit memory support",
)?;
Self::check_bool(
extended_const,
other.extended_const,
"WebAssembly extended-const support",
)?;
Self::check_bool(
relaxed_simd,
other.relaxed_simd,
"WebAssembly relaxed-simd support",
)?;
Ok(())
}