Skip to content

Instantly share code, notes, and snippets.

View alexcrichton's full-sized avatar

Alex Crichton alexcrichton

  • 21:50 (UTC -06:00)
View GitHub Profile
diff --git a/wasmtime/_bindings.py b/wasmtime/_bindings.py
index 9de3cb8..a9218a0 100644
--- a/wasmtime/_bindings.py
+++ b/wasmtime/_bindings.py
@@ -2148,6 +2148,18 @@ _wasmtime_config_wasm_wide_arithmetic_set.argtypes = [POINTER(wasm_config_t), c_
def wasmtime_config_wasm_wide_arithmetic_set(arg0: Any, arg1: Any) -> None:
return _wasmtime_config_wasm_wide_arithmetic_set(arg0, arg1) # type: ignore
+_wasmtime_config_wasm_exceptions_set = dll.wasmtime_config_wasm_exceptions_set
+_wasmtime_config_wasm_exceptions_set.restype = None
diff --git a/crates/wasmtime/src/runtime/debug.rs b/crates/wasmtime/src/runtime/debug.rs
index 0977bf8bc8..374e3d11c5 100644
--- a/crates/wasmtime/src/runtime/debug.rs
+++ b/crates/wasmtime/src/runtime/debug.rs
@@ -3,11 +3,9 @@
use crate::{
AnyRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, Instance, Module, OwnedRooted,
StoreContext, StoreContextMut, Val,
- prelude::Box,
store::{AutoAssertNoGc, StoreOpaque},
diff --git a/crates/wasmtime/src/runtime/debug.rs b/crates/wasmtime/src/runtime/debug.rs
index 0977bf8bc8..374e3d11c5 100644
--- a/crates/wasmtime/src/runtime/debug.rs
+++ b/crates/wasmtime/src/runtime/debug.rs
@@ -3,11 +3,9 @@
use crate::{
AnyRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, Instance, Module, OwnedRooted,
StoreContext, StoreContextMut, Val,
- prelude::Box,
store::{AutoAssertNoGc, StoreOpaque},
diff --git a/lua-5.4.8/lauxlib.c b/lua-5.4.8/lauxlib.c
index 923105e..6df05d0 100644
--- a/lua-5.4.8/lauxlib.c
+++ b/lua-5.4.8/lauxlib.c
@@ -265,7 +265,7 @@ LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) {
#if !defined(l_inspectstat) /* { */
-#if defined(LUA_USE_POSIX)
+#if defined(LUA_USE_POSIX) && !defined(__wasi__)
(module
(func (export "f")
(param
i32 i32 i32 i32
i32 i32 i32 i32
i32 i32 i32 i32
i32 i32 i32 i32
i32
)
(result
commit b1bf88344905ac4813ec4a7bce58e475678b175f
Author: Alex Crichton <[email protected]>
Date: Fri Aug 22 17:15:17 2025 -0700
wip
diff --git a/examples/min-platform/embedding/src/lib.rs b/examples/min-platform/embedding/src/lib.rs
index 460ea5d2c8..9448c3785e 100644
--- a/examples/min-platform/embedding/src/lib.rs
+++ b/examples/min-platform/embedding/src/lib.rs
(component
(type $f (future))
(core func $new (canon future.new $f))
(core module $libc (memory (export "mem") 1))
(core instance $libc (instantiate $libc))
(core func $read (canon future.read $f async (memory $libc "mem")))
(core func $cancel (canon future.cancel-write $f))
(core func $close-write (canon future.close-writable $f))
(core module $m
(import "" "new" (func $new (result i64)))
(component
(type $f (future))
(component $c
(type $f (future))
(core module $libc (memory (export "mem") 1))
(core instance $libc (instantiate $libc))
(core func $read (canon future.read $f async (memory $libc "mem")))
(core func $close-read (canon future.close-readable $f))
(component
(type $f (future))
(component $c
(type $f (future))
(core module $libc (memory (export "mem") 1))
(core instance $libc (instantiate $libc))
(core func $read (canon future.read $f async (memory $libc "mem")))
(core func $close-read (canon future.close-readable $f))
(component
(type $f (future))
(core func $new (canon future.new $f))
(core module $libc (memory (export "mem") 1))
(core instance $libc (instantiate $libc))
(core func $write (canon future.write $f async (memory $libc "mem")))
(core func $cancel (canon future.cancel-write $f))
(core func $close-read (canon future.close-readable $f))
(core module $m
(import "" "new" (func $new (result i64)))