Skip to content

Commit b41f354

Browse files
committed
use fixed macros
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 5e5dd7a commit b41f354

File tree

8 files changed

+138
-119
lines changed

8 files changed

+138
-119
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ repository = "https://github.com/hyperlight-dev/hyperlight-wasm"
1313
readme = "README.md"
1414

1515
[workspace.dependencies]
16-
hyperlight-host = { version = "0.8.0", default-features = false, features = ["executable_heap", "init-paging"] }
16+
hyperlight-host = { version = "0.9.0", default-features = false, features = ["executable_heap", "init-paging"] }

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.8.0" }
61+
hyperlight-component-macro = { version = "0.9.0" }
6262
examples_common = { path = "../examples_common" }
6363
criterion = { version = "0.7.0", features = ["html_reports"] }
6464
crossbeam-queue = "0.3"

src/hyperlight_wasm_macro/Cargo.lock

Lines changed: 10 additions & 10 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ proc-macro2 = { version = "1.0.101" }
1616
syn = { version = "2.0.106" }
1717
itertools = { version = "0.14.0" }
1818
prettyplease = { version = "0.2.37" }
19-
hyperlight-component-util = { version = "0.8.0" }
19+
hyperlight-component-util = { version = "0.9.0" }

src/hyperlight_wasm_macro/src/wasmguest.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ limitations under the License.
2424
// the `Resources` struct with.)
2525

2626
use hyperlight_component_util::emit::{
27-
FnName, State, WitName, kebab_to_fn, kebab_to_namespace, kebab_to_type, kebab_to_var,
28-
split_wit_name,
27+
FnName, ResolvedBoundVar, State, WitName, kebab_to_fn, kebab_to_namespace, kebab_to_type,
28+
kebab_to_var, split_wit_name,
2929
};
3030
use hyperlight_component_util::etypes::{
3131
self, Component, Defined, ExternDecl, ExternDesc, Handleable, Instance, Tyvar,
@@ -94,10 +94,12 @@ fn emit_import_extern_decl<'b>(
9494
}
9595
ExternDesc::Type(t) => match t {
9696
Defined::Handleable(Handleable::Var(Tyvar::Bound(b))) => {
97-
let (b, _) = s.resolve_tv(*b);
97+
let ResolvedBoundVar::Resource { rtidx } = s.resolve_bound_var(*b) else {
98+
return quote! {};
99+
};
98100
let li = format_ident!("li{}", depth);
99101
let edkn = ed.kebab_name;
100-
let rtid = format_ident!("HostResource{}", b);
102+
let rtid = format_ident!("HostResource{rtidx}");
101103
quote! {
102104
#li.resource(#edkn, ::wasmtime::component::ResourceType::host::<#rtid>(), |_, _| { Ok(()) });
103105
}

src/wasm_runtime/Cargo.lock

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

src/wasm_runtime/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ doctest = false
1111
bench = false
1212

1313
[dependencies]
14-
hyperlight-common = { version = "0.8.0", default-features = false }
15-
hyperlight-guest-bin = { version = "0.8.0", features = [ "printf" ] }
16-
hyperlight-guest = { version = "0.8.0" }
14+
hyperlight-common = { version = "0.9.0", default-features = false }
15+
hyperlight-guest-bin = { version = "0.9.0", features = [ "printf" ] }
16+
hyperlight-guest = { version = "0.9.0" }
1717
wasmtime = { version = "36.0.2", default-features = false, features = [ "runtime", "custom-virtual-memory", "custom-native-signals", "component-model" ] }
1818
hyperlight-wasm-macro = { path = "../hyperlight_wasm_macro" }
1919
spin = "0.10.0"

0 commit comments

Comments
 (0)