The second front end of plan section 6 step 3: crates/voelin-gpui with the binary voelin-gpui, in the workspace's members and default-members next to voelin-ui (two binaries until parity; voelin-ui stays the app). gpui-kit is a workspace dependency pinned `=0.8.1` (the version the three spikes were rebuilt on in the commit before). The crate asks for gpui-kit and the app's name and id from voelin-platform (APP_NAME as the window's title, APP_ID as its app id); `run()` opens one window whose `on_window_should_close` ends the app, and returns the error when the window cannot be opened (no display). Checked on Xvfb :97 (headless.sh: openbox, a private bus, lavapipe through wgpu's Vulkan backend, state under .scratch): the debug binary opens a window named "Voelin" (xdotool search) in 0.3 s and ends with exit code 0 when openbox sends the close request (Alt+F4). Cargo.lock: 279 more package entries (208 new names; no existing version moved, other versions of 61 names were added beside theirs): GPUI's gpui-pre family, wgpu 30, gpui-component with its Markdown, HTML, chart and table support, cosmic-text, the Linux platform crates. The root workspace already carried Slint's and the codecs' dependencies, so this is 195 new packages on Linux, not the ~1,000 of the spikes' lock (which has the root's packages too). deny.toml and about.toml name the two licences no crate of the tree had: 0BSD (enum-iterator and enum-iterator-derive, under gpui-component) and CC0-1.0 (notify 8, the file watcher of gpui-component, and tiny-keccak, under the X input method client of gpui-pre-linux); no other licence, no advisory, no ban and no source is new (`cargo deny --locked --workspace check`: advisories, bans, licenses and sources ok). THIRD_PARTY_NOTICES.md is regenerated (scripts/notices.sh, cargo-about 0.9.2, no warning; `--check` clean). There is no new clarification: cargo-about finds every text. Docs: CHANGELOG, docs/ui.md (the structure tree names the crate and the intro the second front end), docs/building.md (the dependency list: Vulkan or OpenGL at run time, what GPUI loads by name, a window manager on X11; no new development package), README (the crate list and the run command) and CLAUDE.md, which had no crate sentence (it only says "own crates"): it now says there are two front ends on one engine and what they share. Checked on Rust 1.95.0: cargo fmt and cargo clippy -D warnings --no-deps over the own crates (all targets); cargo deny; scripts/notices.sh --check. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
172 lines
5.7 KiB
TOML
172 lines
5.7 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
# third_party: vendored crates patched in below (not workspace members, so
|
|
# their own tests and dev-dependencies stay out of our builds).
|
|
exclude = ["fuzz", "third_party"]
|
|
members = [
|
|
"crates/proto/tsproto-types",
|
|
"crates/proto/tsproto-structs",
|
|
"crates/proto/tsproto-packets",
|
|
"crates/proto/tsproto",
|
|
"crates/proto/ts-bookkeeping",
|
|
"crates/proto/tsclientlib",
|
|
"crates/voelin-android",
|
|
"crates/voelin-audio",
|
|
"crates/voelin-core",
|
|
"crates/voelin-gateway",
|
|
"crates/voelin-gateway-proto",
|
|
"crates/voelin-gpui",
|
|
"crates/voelin-media",
|
|
"crates/voelin-observer",
|
|
"crates/voelin-platform",
|
|
"crates/voelin-query",
|
|
"crates/voelin-store",
|
|
"crates/voelin-stream",
|
|
"crates/voelin-ui",
|
|
"crates/voelin-ui-vm",
|
|
"tools/voelinctl",
|
|
]
|
|
default-members = [
|
|
"crates/proto/tsproto-types",
|
|
"crates/proto/tsproto-structs",
|
|
"crates/proto/tsproto-packets",
|
|
"crates/proto/tsproto",
|
|
"crates/proto/ts-bookkeeping",
|
|
"crates/proto/tsclientlib",
|
|
"crates/voelin-audio",
|
|
"crates/voelin-core",
|
|
"crates/voelin-gateway",
|
|
"crates/voelin-gateway-proto",
|
|
"crates/voelin-gpui",
|
|
"crates/voelin-observer",
|
|
"crates/voelin-platform",
|
|
"crates/voelin-query",
|
|
"crates/voelin-store",
|
|
"crates/voelin-stream",
|
|
"crates/voelin-ui",
|
|
"crates/voelin-ui-vm",
|
|
"tools/voelinctl",
|
|
]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
rust-version = "1.95"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/Faumaray/Voelin"
|
|
publish = false
|
|
|
|
[workspace.dependencies]
|
|
# The protocol repository is private (VoelinProtocol). This is the SSH URL its
|
|
# docs/development.md names, so that a per-developer .cargo/config.toml [patch]
|
|
# can point it at a sibling checkout (docs/building.md, "Working with a sibling
|
|
# VoelinProtocol checkout"). Pinned by commit until the protocol tags a release:
|
|
# the three crates below are at one revision (main c5bb6b9: the account-bound
|
|
# KeyStore whose sign-out keeps every device key and the release of a device key,
|
|
# Phase 2 task 34; the account types of the session seam).
|
|
voelin-identity = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c5bb6b914bdab86eb36f6e32a1a5bc9ac4785562" }
|
|
# The backend-neutral session seam (`voelin_proto::link`) and the v1 messages.
|
|
voelin-proto = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c5bb6b914bdab86eb36f6e32a1a5bc9ac4785562" }
|
|
# The UI-facing domain model and the client's replica of v1 entities.
|
|
voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c5bb6b914bdab86eb36f6e32a1a5bc9ac4785562" }
|
|
# GPUI, gpui-component and their assets for the GPUI front end (voelin-gpui). Pre-1.0:
|
|
# pinned exactly (it pins its `gpui-pre` snapshot exactly too), upgraded in commits of
|
|
# their own after rebuilding spikes/gpui on the new release (docs/design/gpui-spikes.md,
|
|
# "The version to pin").
|
|
gpui-kit = "=0.8.1"
|
|
|
|
[workspace.lints.rust]
|
|
# deny, not forbid: generated code (Slint) needs a local allow.
|
|
unsafe_code = "deny"
|
|
|
|
[workspace.lints.clippy]
|
|
all = { level = "warn", priority = -1 }
|
|
|
|
[profile.dev.package.num-bigint]
|
|
# The Init1 puzzle does a large modular exponentiation on connect; unoptimized
|
|
# it takes seconds.
|
|
opt-level = 3
|
|
|
|
# Audio processing (echo cancellation, noise suppression) runs in real time on
|
|
# every 10 ms of microphone audio; unoptimized it needs about a third of a core.
|
|
[profile.dev.package.sonora]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-aec3]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-agc2]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-common-audio]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-fft]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-ns]
|
|
opt-level = 3
|
|
[profile.dev.package.sonora-simd]
|
|
opt-level = 3
|
|
|
|
# Screen sharing runs pixel conversion, codecs and RTP for every frame;
|
|
# unoptimized, a debug build manages a few frames per second at 1080p.
|
|
# (libvpx, dav1d and libopus are system / release-built C libraries.)
|
|
[profile.dev.package.yuv]
|
|
opt-level = 3
|
|
[profile.dev.package.voelin-media]
|
|
opt-level = 3
|
|
[profile.dev.package.str0m]
|
|
opt-level = 3
|
|
[profile.dev.package.str0m-proto]
|
|
opt-level = 3
|
|
[profile.dev.package.str0m-aws-lc-rs]
|
|
opt-level = 3
|
|
[profile.dev.package.openh264]
|
|
opt-level = 3
|
|
[profile.dev.package.dav1d]
|
|
opt-level = 3
|
|
[profile.dev.package.opus2]
|
|
opt-level = 3
|
|
[profile.dev.package.pipewire]
|
|
opt-level = 3
|
|
[profile.dev.package.libspa]
|
|
opt-level = 3
|
|
[profile.dev.package.x11rb-protocol]
|
|
opt-level = 3
|
|
# The studio's person segmentation (tract): unoptimized, one mask takes
|
|
# about half a second.
|
|
[profile.dev.package.tract-core]
|
|
opt-level = 3
|
|
[profile.dev.package.tract-linalg]
|
|
opt-level = 3
|
|
[profile.dev.package.tract-data]
|
|
opt-level = 3
|
|
[profile.dev.package.ndarray]
|
|
opt-level = 3
|
|
[profile.dev.package.wayland-backend]
|
|
opt-level = 3
|
|
[profile.dev.package.wayland-client]
|
|
opt-level = 3
|
|
# MJPEG cameras: unoptimized, a 1440p picture takes most of a second.
|
|
[profile.dev.package.zune-jpeg]
|
|
opt-level = 3
|
|
|
|
[profile.dev]
|
|
# Line tables (for backtraces) for workspace crates, no debug info for
|
|
# dependencies: keeps target/ several times smaller. Override locally for
|
|
# debugging with CARGO_PROFILE_DEV_DEBUG=true.
|
|
debug = "line-tables-only"
|
|
|
|
[profile.dev.package."*"]
|
|
debug = false
|
|
|
|
# dimpl (DTLS for str0m) with a configurable SRTP profile order; see
|
|
# third_party/dimpl/VOELIN-PATCH.md.
|
|
[patch.crates-io]
|
|
dimpl = { path = "third_party/dimpl" }
|
|
|
|
[profile.release]
|
|
# Thin LTO keeps cross-crate optimisation without materialising the entire
|
|
# app in one LLVM module. Split codegen keeps the generated Slint UI within
|
|
# the memory budget of CI and release builders. Panics still
|
|
# unwind (no `panic = "abort"`): a panic in one tokio task or media thread
|
|
# must not end the app (tasks and threads report it, mutexes recover from
|
|
# poisoning), and the crash reporter's hook runs either way.
|
|
lto = "thin"
|
|
codegen-units = 16
|