Nacre/docs/HANDOFF.md
astar76 d2bb67f4ea S001: first build compiles; fix 5 compile errors in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:27:07 -06:00

2.1 KiB

Handoff: where the from-scratch Nacre stands

Read docs/DESIGN.md first (rules, layout, the Servo 0.7 API cheat sheet), then docs/FEATURES.md (every feature and where it lives) and docs/REVIEW.md (known gaps and things to check at the first build).

User rules: Servo engine, all Rust, plain UI for now, nothing from the original dropped (gamepad and Web Bluetooth stay in), no builds until the code was reviewed. Build with nice cargo build --release -j 2, never together with the test suite.

State (2026-11-11)

  • All modules written (~19k lines): storage, networking (bridge proxy for VPN/secure DNS, Tor, downloads, download managers), ad blocker, Discord, media, spell check, importer, updates, keys, Servo glue (hub.rs, window.rs, app.rs, actions.rs) and the plain egui UI (chrome, menus, dialogs, every nacre:// page).
  • 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.
  • 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).
  2. Fix compile errors.
  3. Run cargo test separately (unit tests in util, settings, history, bookmarks, permissions, vault, dns, bridge (loopback only), download, adblock, keys, scripts, updates, inject, hub, theme).
  4. Smoke test offscreen (see the user's CLAUDE.md): page renders, tabs switch, settings open.
  5. Go through docs/REVIEW.md, especially "several painters on one GL context".

Not included (candidates after the first build)

Reader mode, translate, split view (the per-tab painters make it possible), MPRIS media keys, real gamepad rumble.