From 2576d28d3de4957d7fe0991a71a9b260f8f5d2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 5 Aug 2022 10:50:53 +0200 Subject: [PATCH 1/2] Remove __wbindgen_thread_id After talking to John, he mentioned that this function was once implemented in Wasmer, but it isn't implemented anymore, therefore preventing running wasmer-wasi using wasmer itself. Removing this buinding should do absolutely nothing, as it's not used anywhere (anymore). --- lib/wasi/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/wasi/src/lib.rs b/lib/wasi/src/lib.rs index 74a7ff15530..2fa44e0f887 100644 --- a/lib/wasi/src/lib.rs +++ b/lib/wasi/src/lib.rs @@ -113,12 +113,6 @@ impl From for u32 { } } -#[cfg(target_family = "wasm")] -#[link(wasm_import_module = "__wbindgen_thread_xform__")] -extern "C" { - fn __wbindgen_thread_id() -> u32; -} - #[derive(Debug, Clone)] pub struct WasiThread { /// ID of this thread From 61af3934e1d42d1495214217944a1289dc3474e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 5 Aug 2022 11:05:30 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f555b3618a..d57e4504490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Looking for changes that affect our C API? See the [C API Changelog](lib/c-api/C ### Added ### Changed +- [#3075](https://github.com/wasmerio/wasmer/pull/3075) Remove __wbindgen_thread_id ### Fixed