Skip to content

docs(gpui): point the crate readme at moon packages - #79

Merged
kirillDevPro merged 1 commit into
masterfrom
docs/gpui-readme-packages
Sep 22, 2026
Merged

kirillDevPro merged 1 commit into
masterfrom
docs/gpui-readme-packages

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

What & why

crates/moon-gpui/README.md still told applications to add crates.io packages gpui and gpui_platform at version = "*". Those names are not the packages in this repository. moon-gpui and moon-gpui-platform both set publish = false; the Rust crate name of moon-gpui is gpui, and applications depend on the git repository the way the root README already shows. The same stale version = "*" form was repeated in the macOS and Linux feature snippets.

The Application doc comment said to start the app with App::run. App has no run method. Application::run is the method that takes the launch callback.

The feature prose (Metal, font-kit falling back to NoopTextSystem, Wayland/X11 pulling in the renderer, Windows DirectWrite with font-kit unused) was left as written. It still matches the platform crates.

How to verify

Compared the new dependency lines with crates/moon-gpui/Cargo.toml, crates/moon-gpui-platform/Cargo.toml, gpui_platform::application, and the root README "Use From Cargo" section. Confirmed Application::run in crates/moon-gpui/src/app.rs and that App::run is not defined. A separate read of the diff against those sources found no mismatch. cargo fmt --all -- --check is clean.

This change touches a doc comment in a .rs file, so MoonUI Guardrails is in scope as well as alena-review.

The moon-gpui readme told applications to depend on crates.io packages
gpui and gpui_platform at version "*". Both packages set publish = false
and are named moon-gpui and moon-gpui-platform. The Application doc
comment named App::run, which is not a method.

Getting-started snippets now match the root readme's git dependencies.
Application::run is the method that starts the app.
@kirillDevPro
kirillDevPro merged commit 64188ea into master Sep 22, 2026
4 checks passed
@kirillDevPro
kirillDevPro deleted the docs/gpui-readme-packages branch September 22, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant