940 B
940 B
ADR 0002: GUI bindings
Date: 2026-09-14 Resolved: 2026-09-15
Context
The toolkit needs a native wxWidgets GUI. At the time of evaluation,
wxRust 0.0.1-alpha had seen no maintenance since 2022, and wx-rs
0.2.0 lacked widgets needed for the Toolkit.
Decision
The operator chose a Rust GUI through a vendored, patched wx-rs 0.2.0.
The patch queue adds the Linux/GTK3 build path and bindings for panels,
sizers, controls, dialogs, data views, timers, and event dispatch. The
application uses this bridge; it has no separate C++ shell.
The original proposal was a small C++17 wxWidgets shell calling a Rust
core through a C ABI. The wx-rs spike met the GUI need, so that proposal
was not adopted.
Consequences
- Keep business logic and safety checks in testable Rust code.
- Carry wx-rs changes as numbered patches under
thirdparty/wx-rs/patches. - Recheck the bridge on Linux, Windows, and macOS packaging changes.