S001: first build compiles; fix 5 compile errors in place

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-11 17:27:07 -06:00
commit d2bb67f4ea
3 changed files with 37 additions and 17 deletions

View file

@ -119,6 +119,10 @@ Prefs worth knowing: user_agent, network_http_proxy_uri, network_https_proxy_uri
Opts: config_dir (profile storage: cookies, local storage), temporary_storage, ignore_certificate_errors, multiprocess.
```
egui 0.37 deprecates `Ui::id` (now `Ui::scope_id`) and `Id::new` (now `Id::unique` / `IdSalt::new`); the code still
uses the old names, which build with warnings. The Servo 0.7 API above matched the crate: the first build had no
Servo signature errors.
Not in Servo 0.7, so Nacre does it itself: downloads, find in page, private mode, SOCKS proxies, spell check,
picture-in-picture, extensions, password capture, printing.

View file

@ -14,8 +14,10 @@ the test suite.
- Review passes done without compiling: API signatures checked against the crate sources in ~/.cargo/registry,
names cross-checked between modules (commands, UI state, shared fields, crate:: paths), every setting checked
to be read by the code. Bugs found and fixed are in git history.
- Never compiled. Expect a round of compile errors at the first build (type inference, borrow checker, small
API mismatches); fix them in place, don't restructure.
- Compiles (S001, 2026-11-11): `nice cargo build --release -j 2` exits 0 and produces `target/release/nacre`
(~144 MB); `--help`/`--version` run headless. Only five errors at the first build (two missing imports, three
borrow errors), fixed in place. 66 warnings left: egui 0.37 deprecations and dead code. Not run with a window
yet, unit tests not run yet.
## First build checklist
1. `nice cargo build --release -j 2` (first build takes hours: Servo, SpiderMonkey, WebRender).

View file

@ -2,6 +2,18 @@
One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.
## S001 — Compile to a binary (2026-11-11)
- Done: self-test WIP and UI brief committed; first build had 5 errors (missing `Read` import in instance.rs,
missing `Speller` import in actions.rs, borrow errors in app.rs:796, store/scripts.rs:124,
ui/pages/settings.rs:947), fixed in place; removed a no-op `drop(&mut)` in app.rs. No feature degraded.
- Verified: `nice cargo build --release -j 2` exit 0; `target/release/nacre` (144 MB) `--help`/`--version` exit 0
headless; `ldd` resolves everything. nacre crate alone rebuilds in ~1 min (Servo was already built).
- Not done: unit tests, launching a window (later plans).
- 66 warnings remain: egui 0.37 deprecations (`Ui::id`, `Id::new`) and dead code. Dead code that hints at unwired
features: `History::autocomplete`/`top_sites` (omnibox inline completion, new-tab top sites?),
`keys::conflicts` (shortcut conflict check), `Command::SpellReplace` (duplicate of `MenuAction::SpellReplace`),
`tabs::Page::Error`, `Prompt::Info`. Worth a look in the gaps phase.
## Later
- Reader mode, split view, translate, real gamepad rumble (D-002: not planned for now).
- Packaging and first release (D-001: plan when the user asks).