dev/logic.rs now has the sample of VOELIN_DEMO_UI as plain values and as the events a server would send: the servers and their presence, the pictures (PNG bytes the front end saves), the chats with their pins and topics, the contacts, the private chats, the poke, the offline messages, the gateway's events, the notices and the recordings, and the older pages that answer scrolling up. The helpers that only look at the state (the divider of VOELIN_OPEN=unread, the first locked channel) moved with it. The Slint side (dev/bind.rs) keeps the switches, the window and the screenshot, and feeds the sample through the app's own events; a test replays the whole sample through events::handle and checks the state it leaves. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
42 lines
1.7 KiB
TOML
42 lines
1.7 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"] }
|
|
# Whether a picture file decodes, and its size; 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"
|
|
# Whether an SVG document is XML with an svg root (the vector renderers read
|
|
# it with this parser too).
|
|
roxmltree = { version = "0.21", default-features = false, features = ["std"] }
|
|
# The Twemoji archive's blocks (raw deflate).
|
|
miniz_oxide = "0.8"
|
|
# Grapheme clusters for emoji in chat text.
|
|
unicode-segmentation = "1.13"
|
|
# The sample pictures of the demo data (VOELIN_DEMO_UI) and the tests.
|
|
png = "0.18"
|
|
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" }
|
|
|
|
[lints]
|
|
workspace = true
|