From 397a37627a7ade5072e758ffaca380e040d2de73 Mon Sep 17 00:00:00 2001 From: Patrick Andrew Date: Mon, 15 Jun 2026 19:27:04 +0000 Subject: [PATCH] fix(examples): register critical-section impl for canvas_waves wasm canvas_waves has no committed lockfile, so a fresh resolve pulls a current ratatui_core (via ratzilla/tachyonfx) that requires a registered critical-section implementation. Without one the wasm link fails with `undefined symbol: _critical_section_1_0_acquire`. Add critical-section with the std feature to provide it. Pre-existing dependency drift, unrelated to the ligature feature; kept off the upstream feature branch. Co-Authored-By: Claude Opus 4.8 (1M context) --- examples/canvas_waves/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/canvas_waves/Cargo.toml b/examples/canvas_waves/Cargo.toml index 9800e27c..09de00fe 100644 --- a/examples/canvas_waves/Cargo.toml +++ b/examples/canvas_waves/Cargo.toml @@ -8,6 +8,10 @@ publish = false ratzilla = { git = "https://github.com/orhun/ratzilla", branch = "main" } # ratzilla = { path = "../../../ratzilla" } console_error_panic_hook = "0.1.7" +# ratatui_core (via ratzilla/tachyonfx) needs a registered critical-section impl +# on wasm32; the std impl provides it. Without this the wasm link fails with +# `undefined symbol: _critical_section_1_0_acquire`. +critical-section = { version = "1.1", features = ["std"] } tachyonfx = { version = "0.25.0", default-features = false, features = ["wasm"] } web-time = "1.1.0" web-sys = { version = "0.3", features = ["Window", "Location", "UrlSearchParams"] }