Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs

This commit is contained in:
2026-09-15 10:41:00 -06:00
parent 78e54915e4
commit 165d899fd8
16428 changed files with 6973006 additions and 25 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
# ADR 0002: GUI bindings — wxWidgets shell in C++ + Rust core, spike to revisit
Status: PROPOSED (default; reversible until M3)
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.
Date: 2026-09-14
## Context
+49
View File
@@ -0,0 +1,49 @@
# ADR 0003: Vendoring policy — pristine upstream archives + patch queue
Status: ACCEPTED
Date: 2026-09-15
## Context
The operator directed that ASIC-rs and wxWidgets live vendored in this repo
"so that we can handle merging updates easily". Upstream is not reachable
through our suspended GitHub account, and we want reproducible offline
builds and conflict-free updates.
## Decision
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
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)
```
Rules:
1. Never edit a vendored pristine tree in place — every local change is a
patch in `patches/`, applied by the build in numeric order. This makes
an upstream update: replace pristine archive, `git apply` surviving
patches, rebase the rest.
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. 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.
4. wxWidgets 3.3.3 release tarball is the merge unit (wx upstream supports
it); the C++ shell links the vendored tree via CMake `add_subdirectory`.
## Consequences
- The repo grows by the vendored sources (one-time; git-compressed).
- Offline/reproducible builds on any machine, including the bench Pi.
- Updating either dependency is mechanical, reviewable, and never
entangles our changes with upstream files.