Skip to content

Commit d5f2a94

Browse files
committed
hyperlight_component_macro changes for wasm-parser
Signed-off-by: James Sturtevant <[email protected]>
1 parent 0739693 commit d5f2a94

File tree

6 files changed

+21
-24
lines changed

6 files changed

+21
-24
lines changed

Cargo.lock

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

src/hyperlight_wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ windows = { version = "0.61", features = ["Win32_System_Threading"] }
5858
page_size = "0.6.0"
5959

6060
[dev-dependencies]
61-
hyperlight-component-macro = { version = "0.7.0", git = "https://github.com/hyperlight-dev/hyperlight", rev = "ea6fa8f" }
61+
hyperlight-component-macro = { version = "0.7.0", git = "https://github.com/hyperlight-dev/hyperlight", rev = "b61265e4aa9e2ecf8d648b994022caeea0205352" }
6262
examples_common = { path = "../examples_common" }
6363
criterion = { version = "0.6.0", features = ["html_reports"] }
6464
crossbeam-queue = "0.3"

src/hyperlight_wasm_macro/Cargo.lock

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

src/hyperlight_wasm_macro/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ name = "hyperlight_wasm_macro"
1111
proc-macro = true
1212

1313
[dependencies]
14-
wasmparser = { version = "0.224.0" }
1514
quote = { version = "1.0.38" }
1615
proc-macro2 = { version = "1.0.93" }
1716
syn = { version = "2.0.96" }
1817
itertools = { version = "0.14.0" }
1918
prettyplease = { version = "0.2.31" }
20-
hyperlight-component-util = { version = "0.7.0", git = "https://github.com/hyperlight-dev/hyperlight", rev = "ea6fa8f" }
19+
hyperlight-component-util = { version = "0.7.0", git = "https://github.com/hyperlight-dev/hyperlight", rev = "b61265e4aa9e2ecf8d648b994022caeea0205352" }

src/hyperlight_wasm_macro/src/wasmguest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn emit_import_extern_decl<'b>(
6868
})
6969
.unzip::<_, _, Vec<_>, Vec<_>>();
7070
let ret = format_ident!("ret");
71-
let is_ret_empty = matches!(&ft.result, etypes::Result::Named(rs) if rs.is_empty());
71+
let is_ret_empty = ft.result.is_none();
7272
let ur = if is_ret_empty {
7373
quote! { () }
7474
} else {
@@ -210,7 +210,7 @@ fn emit_wasm_function_call(
210210

211211
// if the result is empty we don't want a return result with `get_typed_func`
212212
let rwt = match result {
213-
etypes::Result::Named(rs) if rs.is_empty() => {
213+
None => {
214214
quote! {
215215
instance.get_typed_func::<(#(#pwts,)*), ()>(&mut *store, func_idx)?
216216
.call(&mut *store, (#(#pus,)*))?;

src/wasm_runtime/Cargo.lock

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

0 commit comments

Comments
 (0)