Plan section 6 step 1. A Cargo workspace of its own under spikes/gpui (own lock, not a member of the root workspace, so the root's lock, deny policy, notices and CI are untouched; it builds into the checkout's target/), on gpui-kit pinned to =0.8.0. No gpui-kit release builds on Rust 1.94 (every gpui-pre 0.3.x calls std::hint::cold_path, stable since 1.95), so the workspace says rust-version 1.95. - shell.sh: the toolchain (1.95.0, 1.94, stable or nightly, all from one pinned fenix), the native libraries, Mesa's lavapipe as the only Vulkan driver, Xvfb, openbox and the X tools, Noto Color Emoji and Noto Sans CJK. - headless.sh: a private Xvfb display with openbox and a private session bus, never the desktop's; headless-wayland.sh: sway's headless backend. - spike-common: CPU by thread group and memory from /proc once a second with the spike's counters (meter), proc-meter and damage-count for programs without a meter (the Slint app), Inter and the emoji/CJK fonts, the client's Lucide icons as GPUI assets, and the BGRA twin of voelin_media::convert::to_rgba. From the interrupted 2026-10-25 attempt, kept; changed here: shell.sh takes 1.94 and nightly from the pinned fenix (the store paths it named were garbage-collected), the README's headless-wayland.sh paragraph (sway, not weston), its fmt command (-p, not --all), its toolchain and nixpkgs lines, and the font docs (GPUI drops Noto Color Emoji from a fallback chain). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
977 B
TOML
35 lines
977 B
TOML
[package]
|
|
name = "spike-common"
|
|
description = "What the GPUI spikes share: process and thread CPU, memory and frame counters, logging, fonts and icons."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
env_logger = { workspace = true }
|
|
gpui-kit = { workspace = true }
|
|
log = { workspace = true }
|
|
# Clock ticks and the page size, for /proc/self.
|
|
rustix = { version = "1.1", features = ["param"] }
|
|
# RenderImage holds image::Frame (the version GPUI uses).
|
|
image = { version = "0.25", default-features = false }
|
|
serde_json = "1"
|
|
voelin-media = { workspace = true }
|
|
yuv = { workspace = true }
|
|
# The damage counter (frames a window's content changed, whatever draws it).
|
|
x11rb = { version = "0.13", features = ["damage"] }
|
|
|
|
[[bin]]
|
|
name = "damage-count"
|
|
path = "src/bin/damage-count.rs"
|
|
|
|
[[bin]]
|
|
name = "proc-meter"
|
|
path = "src/bin/proc-meter.rs"
|
|
|
|
[lints]
|
|
workspace = true
|