From c82fec1c5fd2209fa760e8f5b9b90eb6c366b7d2 Mon Sep 17 00:00:00 2001 From: Ian Kettlewell <4565191+kettle11@users.noreply.github.com> Date: Sat, 3 Jan 2026 04:24:57 -0500 Subject: [PATCH] Fix AudioWorklet example This fixes the example for the breaking change introduced by: https://github.com/rust-lang/rust/pull/147225 --- examples/audioworklet-beep/.cargo/config.toml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/examples/audioworklet-beep/.cargo/config.toml b/examples/audioworklet-beep/.cargo/config.toml index 456c37896..c6df64da1 100644 --- a/examples/audioworklet-beep/.cargo/config.toml +++ b/examples/audioworklet-beep/.cargo/config.toml @@ -1,5 +1,22 @@ [target.wasm32-unknown-unknown] -rustflags = ["-C", "target-feature=+atomics"] +rustflags = [ + "-C", + "target-feature=+atomics", + "-C", + "link-arg=--shared-memory", + "-C", + "link-arg=--max-memory=1073741824", + "-C", + "link-arg=--import-memory", + "-C", + "link-arg=--export=__wasm_init_tls", + "-C", + "link-arg=--export=__tls_size", + "-C", + "link-arg=--export=__tls_align", + "-C", + "link-arg=--export=__tls_base", +] [unstable] build-std = ["std", "panic_abort"]