Files
VoelinClient/crates/voelin-ui-vm/Cargo.toml
T
faumarayandClaude Sonnet 5.5 03f4a92161 Split the settings pages: logic into voelin-ui-vm, the Bridge writes stay in bind.rs
settings_pages.rs had 52 Bridge writes interleaved with what the pages
show and change. The decisions now live in
voelin_ui_vm::settings_pages::logic and work on the settings service, the
AppState and the plain bridge rows:

- the forms read from the settings (video, streaming, notifications,
  privacy, advanced), the layer and audio-source rows and the filtered list
  of all settings;
- the settings written from the forms (apply_video, apply_streaming,
  layer, audio source, SRTP profile, notification, privacy and advanced
  edits), each returning the messages for the status line instead of
  writing them;
- the Integrations rows (gateways, configuration keys, permission rules,
  encoders and decoders with their status texts) and the Profiles rows
  (identities, bookmark pickers, what an import found, the account form);
- the pages' own state (PagesState, Improving), the layer, preset and
  codec helpers, allowed_index/of and origin_label, with the tests that
  went with them and tests for each of the above.

voelin-ui keeps settings_pages/{mod,bind}.rs: Pages (PagesState plus the
camera preview and the audio-app watcher), the Bridge and model writes, and
what a change sets going (camera, engine, identity store, threads). A
message the logic returns is logged and shown as before; the one visible
difference is that the "A layer needs a size" hint is logged with it.
serde_json becomes a regular dependency of voelin-ui-vm (the JSON typed into
the Advanced list); the lock file is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 15:31:53 +03:00

40 lines
1.5 KiB
TOML

[package]
name = "voelin-ui-vm"
version = "0.0.1-alpha"
description = "Toolkit-free view models of the desktop client: engine state turned into plain rows, shared by the Slint and GPUI front ends."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish.workspace = true
[lib]
name = "voelin_ui_vm"
path = "src/lib.rs"
# No UI toolkit here (no slint, no gpui): `cargo tree -p voelin-ui-vm -e normal`
# must show neither. The front ends convert these types (docs/ui.md).
[dependencies]
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
# Picture sizes (the header of a file); PNG and JPEG are listed as the
# front end's toolkit used to bring them.
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp", "ico"] }
serde = { version = "1", features = ["derive"] }
# JSON values of the settings and the gateway's configuration keys.
serde_json = "1"
# The Twemoji archive's blocks (raw deflate).
miniz_oxide = "0.8"
# Grapheme clusters for emoji in chat text.
unicode-segmentation = "1.13"
voelin-audio = { path = "../voelin-audio", default-features = false }
voelin-core = { path = "../voelin-core", default-features = false, features = ["media"] }
voelin-gateway-proto = { path = "../voelin-gateway-proto" }
voelin-model = { path = "../voelin-model" }
voelin-store = { path = "../voelin-store" }
[dev-dependencies]
png = "0.18"
[lints]
workspace = true