Skip to content

Commit eefcb56

Browse files
Bump wasmtime from 30.0.2 to 34.0.1 (#75)
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 30.0.2 to 34.0.1. - [Release notes](https://github.com/bytecodealliance/wasmtime/releases) - [Changelog](https://github.com/bytecodealliance/wasmtime/blob/v34.0.1/RELEASES.md) - [Commits](bytecodealliance/wasmtime@v30.0.2...v34.0.1) Includes updates to the wasmtime api from the following commits: - bytecodealliance/wasmtime@f81c0dc - bytecodealliance/wasmtime@95cc029 --- updated-dependencies: - dependency-name: wasmtime dependency-version: 34.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 4586494 commit eefcb56

File tree

8 files changed

+448
-232
lines changed

8 files changed

+448
-232
lines changed

Cargo.lock

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

src/hyperlight_wasm_aot/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
wasmtime = { version = "30.0.2", default-features = false, features = ["cranelift", "runtime", "component-model" ] }
7+
wasmtime = { version = "34.0.1", default-features = false, features = ["cranelift", "runtime", "component-model" ] }
88
clap = "4.5"
99
cargo_metadata = "0.19"

src/hyperlight_wasm_aot/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn main() {
100100
let bytes = std::fs::read(file).unwrap();
101101
let config = get_config();
102102
let engine = Engine::new(&config).unwrap();
103-
match engine.detect_precompiled(&bytes) {
103+
match Engine::detect_precompiled(&bytes) {
104104
Some(pre_compiled) => {
105105
match pre_compiled {
106106
Precompiled::Module => {

src/hyperlight_wasm_macro/Cargo.lock

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

src/hyperlight_wasm_macro/src/wasmguest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn emit_export_extern_decl<'a, 'b, 'c>(
164164
})
165165
.unzip::<_, _, Vec<_>, Vec<_>>();
166166
let get_instance = path.iter().map(|export| quote! {
167-
let instance_idx = Some(instance.get_export(&mut *store, instance_idx.as_ref(), #export).unwrap());
167+
let instance_idx = Some(instance.get_export_index(&mut *store, instance_idx.as_ref(), #export).unwrap());
168168
}).collect::<Vec<_>>();
169169
let (function_call, ret) = emit_wasm_function_call(s, &ft.result, pwts, pus);
170170
let marshal_result = emit_hl_marshal_result(s, ret.clone(), &ft.result);
@@ -175,7 +175,7 @@ fn emit_export_extern_decl<'a, 'b, 'c>(
175175
let instance = CUR_INSTANCE.lock(); let mut instance = instance.unwrap();
176176
let instance_idx = None;
177177
#(#get_instance;)*
178-
let func_idx = instance.get_export(&mut *store, instance_idx.as_ref(), #nlit).unwrap();
178+
let func_idx = instance.get_export_index(&mut *store, instance_idx.as_ref(), #nlit).unwrap();
179179
#function_call
180180
::core::result::Result::Ok(::hyperlight_common::flatbuffer_wrappers::util::get_flatbuffer_result::<&[u8]>(&#marshal_result))
181181
}

0 commit comments

Comments
 (0)