summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-10-07 20:45:14 -0400
committerMica White <botahamec@outlook.com>2024-10-07 20:45:14 -0400
commitea5db5846bc700f0da912225ddcb4be372359044 (patch)
treef478f7a1e9e3fbb6ca162ea51c5c626ceb3898c2 /scripts
parent509e5ce1e17417a70b9bcce8bc6e33c05106811d (diff)
Finish basic windowing stuff
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Cargo.toml2
-rw-r--r--scripts/src/wasm.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Cargo.toml b/scripts/Cargo.toml
index a9fe5e4..8854678 100644
--- a/scripts/Cargo.toml
+++ b/scripts/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-wasmtime = "15"
+wasmtime = "24"
rayon = "1"
thiserror = "1"
rand = "0.8"
diff --git a/scripts/src/wasm.rs b/scripts/src/wasm.rs
index 06d840f..7f8f0b5 100644
--- a/scripts/src/wasm.rs
+++ b/scripts/src/wasm.rs
@@ -72,7 +72,7 @@ fn validate_module(module: &Module) -> Result<(), InvalidWasmScript> {
let Some(heap_base) = export.global() else {
return Err(InvalidWasmScript::HeapBaseIsNotGlobal);
};
- if *heap_base.content() != ValType::I32 {
+ if heap_base.content().matches(&ValType::I32) {
return Err(InvalidWasmScript::HeapBaseMustBeI32);
}
if heap_base.mutability() != Mutability::Const {