Files
VoelinClient/spikes/gpui/Cargo.toml
T
faumarayandClaude Opus 5.5 c9859bcfb4 spikes/gpui: the GPUI spikes' workspace, environment and meter
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>
2026-10-27 01:43:20 +03:00

61 lines
2.4 KiB
TOML

# The GPUI spikes of plan section 6 step 1 (docs/design/gpui-spikes.md): a
# workspace of its own with its own lock, not a member of the root workspace,
# so the root's lock, deny policy, notices and CI stay as they are. It builds
# into the checkout's target directory (.cargo/config.toml).
[workspace]
resolver = "3"
members = ["common"]
[workspace.package]
version = "0.0.0"
edition = "2024"
# gpui-pre (every 0.3.x release) calls std::hint::cold_path, stable since 1.95.
rust-version = "1.95"
license = "MIT OR Apache-2.0"
publish = false
[workspace.dependencies]
# GPUI, gpui-component and their assets, pinned exactly (pre-1.0).
gpui-kit = "=0.8.0"
spike-common = { path = "common" }
# The client's crates, read only. voelin-core brings LocalPreview (the test
# pattern through the real encoder and decoder).
voelin-core = { path = "../../crates/voelin-core", default-features = false, features = ["media"] }
# The desktop codecs of `media-desktop` (libvpx, dav1d, OpenH264, FFmpeg at
# run time) and X11 capture, without `pipewire`: it enables ashpd's `tokio`
# feature, GPUI enables its `async-io` one, and ashpd refuses both
# (docs/design/gpui-spikes.md, "Dependencies").
voelin-media = { path = "../../crates/voelin-media", default-features = false, features = ["vpx", "openh264", "ffmpeg", "av1", "x11"] }
voelin-platform = { path = "../../crates/voelin-platform", default-features = false, features = ["x11"] }
voelin-ui-vm = { path = "../../crates/voelin-ui-vm" }
# The revision the root workspace pins (chat messages for voelin-ui-vm).
voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c8e0e5a17c1ff5dfaefa087f49b395d2918af650" }
# Logs of GPUI (the adapter it picked) and of the client's crates.
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
log = "0.4"
# The same version voelin-media converts with.
yuv = "=0.8.19"
[workspace.lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# As the root workspace: dimpl (DTLS for str0m, under voelin-stream) with its
# patch.
[patch.crates-io]
dimpl = { path = "../../third_party/dimpl" }
[profile.release]
debug = "line-tables-only"
# As the root workspace's dev profile: media code optimised in debug builds.
[profile.dev.package.yuv]
opt-level = 3
[profile.dev.package.voelin-media]
opt-level = 3
[profile.dev.package.dav1d]
opt-level = 3