Skip to content

Commit

Permalink
Update wasmtime and h2 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-arm authored Jun 25, 2023
2 parents 870db97 + ca03ffb commit 81f9d9f
Show file tree
Hide file tree
Showing 12 changed files with 1,586 additions and 628 deletions.
2 changes: 1 addition & 1 deletion execution-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ strum_macros = "0.24"
typetag = "=0.1.6"
wasi-types = { path = "../third-party/wasi-types" }
wasmi = { path = "../third-party/wasmi" }
wasmtime = { version = "3.0.1", optional = true }
wasmtime = { version = "9.0.1", optional = true }

[lib]
name = "execution_engine"
Expand Down
4 changes: 2 additions & 2 deletions execution-engine/src/engines/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ impl WasmtimeRuntimeState {

let return_from_main = match check_main(&export.ty(&store)) {
EntrySignature::ArgvAndArgc => instance
.get_typed_func::<(i32, i32), (), _>(&mut store, WasiWrapper::ENTRY_POINT_NAME)?
.get_typed_func::<(i32, i32), ()>(&mut store, WasiWrapper::ENTRY_POINT_NAME)?
.call(&mut store, (0, 0)),
EntrySignature::NoParameters => instance
.get_typed_func::<(), (), _>(&mut store, WasiWrapper::ENTRY_POINT_NAME)?
.get_typed_func::<(), ()>(&mut store, WasiWrapper::ENTRY_POINT_NAME)?
.call(&mut store, ()),
EntrySignature::NoEntryFound => {
return Err(anyhow!(FatalEngineError::NoProgramEntryPoint))
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.65.0
1.66.0
4 changes: 2 additions & 2 deletions workspaces/applications/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion workspaces/applications/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.65.0"
channel = "1.66.0"
components = [ "rustfmt" ]
targets = [ "wasm32-wasi" ]
Loading

0 comments on commit 81f9d9f

Please sign in to comment.