From 27bc78698dfa45748acb2fec767b78e63a07b92e Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Mon, 20 Jan 2025 23:23:47 -0500 Subject: [PATCH] feat(lib): implement `Send` + `Sync` for `WasmStore` --- lib/binding_rust/wasm_language.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/binding_rust/wasm_language.rs b/lib/binding_rust/wasm_language.rs index 7aedad4d..76aff50a 100644 --- a/lib/binding_rust/wasm_language.rs +++ b/lib/binding_rust/wasm_language.rs @@ -26,6 +26,9 @@ pub struct wasm_engine_t { pub struct WasmStore(*mut ffi::TSWasmStore); +unsafe impl Send for WasmStore {} +unsafe impl Sync for WasmStore {} + #[derive(Debug, PartialEq, Eq)] pub struct WasmError { pub kind: WasmErrorKind,