Skip to content

Commit ba1f263

Browse files
chore: update deps & testsuite, add msrv
Signed-off-by: Henry Gressmann <[email protected]>
1 parent fc76c1e commit ba1f263

File tree

17 files changed

+132
-362
lines changed

17 files changed

+132
-362
lines changed

Cargo.lock

Lines changed: 80 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ inherits="release"
1212

1313
[workspace.package]
1414
version="0.7.0"
15+
rust-version="1.79"
1516
edition="2021"
1617
license="MIT OR Apache-2.0"
1718
authors=["Henry Gressmann <[email protected]>"]
@@ -20,7 +21,8 @@ repository="https://github.com/explodingcamera/tinywasm"
2021
[package]
2122
name="tinywasm-root"
2223
publish=false
23-
edition="2021"
24+
edition.workspace=true
25+
rust-version.workspace=true
2426

2527
[[example]]
2628
name="wasm-rust"

benchmarks/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
name="benchmarks"
33
publish=false
44
edition.workspace=true
5+
rust-version.workspace=true
56

67
[dependencies]
78
criterion={version="0.5"}
89
tinywasm={path="../crates/tinywasm"}
910
wat={version="1"}
10-
wasmi={version="0.32", features=["std"]}
11+
wasmi={version="0.33", features=["std"]}
1112
wasmer={version="4.3", features=["cranelift", "singlepass"]}
1213
argon2={version="0.5"}
1314

crates/cli/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition.workspace=true
66
license.workspace=true
77
authors.workspace=true
88
repository.workspace=true
9+
rust-version.workspace=true
910

1011
[[bin]]
1112
name="tinywasm-cli"
@@ -19,7 +20,7 @@ argh="0.1"
1920
color-eyre={version="0.6", default-features=false}
2021
log="0.4"
2122
pretty_env_logger="0.5"
22-
wast={version="210.0", optional=true}
23+
wast={version="211.0", optional=true}
2324

2425
[features]
2526
default=["wat"]

crates/parser/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ edition.workspace=true
66
license.workspace=true
77
authors.workspace=true
88
repository.workspace=true
9+
rust-version.workspace=true
910

1011
[dependencies]
11-
wasmparser={version="0.210", default-features=false, features=["validate"]}
12+
wasmparser={version="0.211", default-features=false, features=["validate"]}
1213
log={version="0.4", optional=true}
1314
tinywasm-types={version="0.7.0", path="../types", default-features=false}
1415

crates/parser/src/conversion.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ pub(crate) fn process_const_operators(ops: OperatorsReader<'_>) -> Result<ConstI
256256

257257
pub(crate) fn convert_heaptype(heap: wasmparser::HeapType) -> ValType {
258258
match heap {
259-
wasmparser::HeapType::Func => ValType::RefFunc,
260-
wasmparser::HeapType::Extern => ValType::RefExtern,
259+
wasmparser::HeapType::Abstract { shared: false, ty: wasmparser::AbstractHeapType::Func } => ValType::RefFunc,
260+
wasmparser::HeapType::Abstract { shared: false, ty: wasmparser::AbstractHeapType::Extern } => {
261+
ValType::RefExtern
262+
}
261263
_ => unimplemented!("Unsupported heap type: {:?}", heap),
262264
}
263265
}

crates/tinywasm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition.workspace=true
66
license.workspace=true
77
authors.workspace=true
88
repository.workspace=true
9+
rust-version.workspace=true
910
readme="../../README.md"
1011

1112
[lib]
@@ -20,7 +21,7 @@ libm={version="0.2", default-features=false}
2021

2122
[dev-dependencies]
2223
wasm-testsuite={path="../wasm-testsuite"}
23-
wast={version="209.0"}
24+
wast={version="211.0"}
2425
owo-colors={version="4.0"}
2526
eyre={version="0.6"}
2627
serde_json={version="1.0"}

crates/tinywasm/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use alloc::{boxed::Box, format, rc::Rc, string::ToString};
22
use tinywasm_types::*;
33

44
use crate::func::{FromWasmValueTuple, IntoWasmValueTuple};
5-
use crate::{Error, FuncHandle, FuncHandleTyped, GlobalRef, Imports, MemoryRef, MemoryRefMut, Module, Result, Store};
5+
use crate::{Error, FuncHandle, FuncHandleTyped, Imports, MemoryRef, MemoryRefMut, Module, Result, Store};
66

77
/// An instanciated WebAssembly module
88
///

crates/tinywasm/src/store/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,17 @@ mod tests {
213213

214214
match table_instance.get_wasm_val(0) {
215215
Ok(WasmValue::RefFunc(_)) => {}
216-
_ => assert!(false, "get_wasm_val failed to return the correct WasmValue"),
216+
_ => panic!("get_wasm_val failed to return the correct WasmValue"),
217217
}
218218

219219
match table_instance.get_wasm_val(1) {
220220
Ok(WasmValue::RefNull(ValType::RefFunc)) => {}
221-
_ => assert!(false, "get_wasm_val failed to return the correct WasmValue"),
221+
_ => panic!("get_wasm_val failed to return the correct WasmValue"),
222222
}
223223

224224
match table_instance.get_wasm_val(999) {
225225
Err(Error::Trap(Trap::TableOutOfBounds { .. })) => {}
226-
_ => assert!(false, "get_wasm_val failed to handle undefined element correctly"),
226+
_ => panic!("get_wasm_val failed to handle undefined element correctly"),
227227
}
228228
}
229229

crates/tinywasm/tests/generated/2.0.csv

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)