Shared Rust crates for GPUI desktop apps. The main one, brrritscold-core-gpui, renders the shared Penpot design library in GPUI. It is the second renderer of that library: it follows @brrritscold/core-react, the reference renderer.
Linux is first-class, macOS best-effort, Windows not targeted.
Licensed under either of Apache License, Version 2.0 or MIT license at your option, unless a crate's manifest says otherwise. brrritscold-core-gpui also bundles Inter and JetBrains Mono (OFL-1.1) and Lucide icons (ISC); see its NOTICE.
| Crate | What it is |
|---|---|
brrritscold-core-gpui |
The styled component layer on gpui-base. |
brrritscold-core-gpui-tokens |
Design tokens generated from core-react's tokens.json. |
brrritscold-core-gpui-gallery |
The component registry, a gallery window and headless captures (internal). |
xtask |
Workspace tasks (internal). |
The toolchain is pinned in rust-toolchain.toml. On Linux, install GPUI's packages with script/install-linux-deps.sh.
| Command | What it does |
|---|---|
cargo test-unit |
Unit tier (nextest profile unit, plus doctests). |
cargo test-unit-ci |
Setup → unit tier → teardown (always); exits with the tests' code. |
bacon unit |
Unit tier in watch mode. |
cargo xtask drift |
The drift check: the registry's code manifest against the vendored library snapshot and tokens.json, with core-react's checker (design-drift, pinned in core-gpui-tokens). Unbuilt library components sit in pending in design/drift.config.json and only warn; a stale entry fails. Needs Node. |
cargo run -p brrritscold-core-gpui-gallery |
Opens the gallery: every registry variant, the icons, a light/dark toggle. |
cargo xtask captures [--out <dir>] |
One 2x PNG per variant × theme, headless, into target/captures/. Needs a Vulkan driver (lavapipe works). |
cargo xtask captures compare [--penpot-theme light|dark] |
target/captures/compare/index.html: core-react's published Storybook | GPUI | Penpot, for a person to judge. Needs Node; the Penpot column needs the env in .env.example. |
Captures are local only: never committed, never run in CI, and nothing compares their pixels.
Commits follow Conventional Commits: release-plz derives the version bump and CHANGELOG.md from them. Releases are git-only: one workspace version, one v<version> tag. Apps pin every brrritscold-* crate to the same tag, and copy the GPUI pin (gpui-base, gpui = gpui-pre) from this workspace's Cargo.toml. Each release's changelog entry and GitHub release state the GPUI pin and the core-react pin, written by cargo xtask release-notes, which release-plz runs as a changelog postprocessor.