clean up
CI / check (push) Canceled after 0s
CI / check (pull_request) Canceled after 0s

This commit is contained in:
2026-11-03 10:51:51 +07:00
parent 659e22e9fc
commit 5a35a3c5f5
3 changed files with 88 additions and 382 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ GPUI is a UI framework which also provides primitives for state and concurrency
- `crates/icons` owns icon resolution; components reference icons by semantic role — no glyph names, unicode symbols, or SVG paths anywhere else.
- `crates/core` and its sibling crates own components: each one is a small self-contained implementation gated behind its own cargo feature. Features are additive, gate whole modules only, and may depend on other features. Behavior and presentation live together. No separate behavior layer — promote a shared helper only when a third component needs it.
- Components are written in-tree. Other UI toolkits are read for API ideas only; never port their code or depend on them.
- gpui/gpui_platform come from zed's repository at the rev pinned in `docs/PLAN.md`; bump the pin deliberately and re-verify.
- gpui/gpui_platform come from zed's repository at the rev pinned in the workspace `Cargo.toml`; bump the pin deliberately and re-verify.
- `SharedString` for UI text retained across frames; `String` only for mutable buffers.
- Behavioral seams use private fields + builders/readers. Boolean readers are `is_`/`has_`; general builders use `with_`; in-place mutation uses `set_`; callbacks use `on_`; retained models end in `State`; pluggable owners in `Delegate`/`Provider`.
- Never invent an API: search the gpui source for the real signature before writing code.