Read CLAUDE.md and docs/upstream-sync.md before changing anything. In short:
- Everything gpui-fast changes relative to the baseline GPUI (the import
commit in
UPSTREAM) is implemented incrates/<crate>/src/fast/: functions, types, algorithms, bookkeeping, tests and the comments that explain them. Methods of upstream types go inimplblocks insidefast/. - Upstream files only hold hooks: a field typed by a
fast/struct, a one-line call intofast/, a body that only forwards tofast/, a visibility bump, a#[path = "fast/<file>.rs"]redirect. No logic, and no explanatory comments beyond what a hook needs to be understood. - Outside
fast/, name fast code by its full path at the point of use (crate::fast::retained::RetainedState::new(cx)), never through auseline. The onlyuseoffastoutsidefast/isgpui.rsexporting atest-supportitem (pub use fast::stats::LayoutStats;). Insidefast/,uselines are fine; never glob imports. - No new public API — with the one documented exception of
fast::dynamic_textures(seedocs/upstream-sync.md, rule 5) — andscript/check-upstreammust pass. - Changes reach
mainthrough pull requests from a topic branch; never commit tomaindirectly. - Upstream sync commit titles use
chore: Sync GPUI upstream <zed-commit>, for examplechore: Sync GPUI upstream a1b71072e5. Do not start them withMerge. Preserve replayed upstream commit messages and vendor history.