M1 primary view: wx-rs patched+extended (Linux/GTK3 build, widget bridge), vendored wx 3.3.3 + asic-rs in thirdparty/, UI-SPEC table+KPIs+dialogs, build scripts

This commit is contained in:
2026-09-15 13:59:55 -06:00
parent 165d899fd8
commit b264cdd6d1
16316 changed files with 4932188 additions and 58 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
# ADR 0002: GUI bindings — wxWidgets shell in C++ + Rust core, spike to revisit
Status: PROPOSED (default; reversible until M3). UPDATE 2026-09-15: the
operator accepted wxWidgets as vendored-in (ADR-0003) and fixed the primary
UI shape (`docs/UI-SPEC.md`); the binding question (A vs B) is unchanged
and still settled by the M0 spike.
Status: RESOLVED 2026-09-15 - the operator chose Option B (pure Rust via
wx-rs) with vendoring (ADR-0003). wx-rs 0.2.0 was extended via the patch
queue: Linux/GTK3 wx-config build path plus the widget bridge (panel,
sizers, static text, button, text ctrl, checkbox, checklistbox, dialog,
data view list ctrl, timer). The app ships this way; no C++ shell.
Date: 2026-09-14
## Context
+13 -4
View File
@@ -16,14 +16,20 @@ Both dependencies are vendored under `vendor/` as **pristine upstream
archives plus a patch queue**:
```
vendor/
asic-rs/ cargo-vendored crate tree (every transitive crate source);
regenerated by `cargo vendor vendor` on version bump;
driven by the version pin in crates/*/Cargo.toml
vendor/ cargo-managed crate sources ONLY (regenerated by
`cargo vendor vendor`; it deletes unmanaged dirs - never
put hand-made trees here; learned the hard way)
thirdparty/
asic-rs lives in vendor/ (pure crates.io dep, cargo-vendored)
wxwidgets/
wxWidgets-3.3.3/ pristine release tree, never edited directly
VERSION upstream version + tarball URL + sha256
patches/ our changes as numbered .patch files (empty today)
wx-rs/
wx-rs-0.2.0-patched/ the used crate (path dep from alkane-gui)
VERSION upstream version + tarball URL + sha256
patches/ 0001 linux build path, 0002 rust widgets binding,
0003 C++ widget bridge, 0004 upstream wx3.3 fixes
```
Rules:
@@ -35,6 +41,9 @@ Rules:
2. Every vendored tree records its upstream source URL and sha256 in
`VERSION`. Updates are a diff of one version-pinning line plus the
patch-queue rebase.
3. Builds happen out-of-tree (`~/.cache/wxbuild`, `~/.cache/wx-3.3.3-linux`)
because the synced project mount is noexec; scripts/build-wx-linux.sh
automates it.
3. asic-rs is pinned per semver in Cargo.toml and materialized with
`cargo vendor`; the build uses `.cargo/config.toml`'s vendored-sources
replacement, so builds never touch the network.