The new UI needs a channel file browser, avatars and icons, pokes, direct messages to anyone, the offline message inbox and a friends list. The voice connection can do all of it; the engine did not offer it. Files (module files): ListFiles, DownloadFile (to disk as <path>.part, renamed when complete, resumable, or into memory), DownloadChatFile for a FileRef from a chat message, UploadFile, CancelTransfer, DeleteFiles, RenameFile, CreateDirectory. Transfers stream in 64 KiB pieces and report Requested/Started/Progress (files.progress_interval_ms)/Done/ Failed/Cancelled; requests and transfers carry an id the caller picks. Avatars and icons are fetched by themselves (cache.fetch_images) into a content-addressed disk cache (module cache: avatars by MD5, icons by id, LRU bounded by cache.max_mb, 0 = no limit, use times kept as file times, concurrent downloads of one file deduplicated across sessions) and reported as AvatarReady / IconReady. SetAvatar uploads ours and announces its hash, or removes it. Pokes are a command and a distinct event (they were stored as private messages before). A failing voice command (e.g. a private message to a client who left) is now an error event instead of ending the connection. Offline messages (module offline) list, read, send, delete and mark. Contacts (module contacts) are engine-wide and stored in the client database: SetContact / RemoveContact, ContactsChanged, FriendPresence across all sessions, last seen time and server, per-person volume and mute applied in every session, blocked authors flagged in chat and their pokes and private messages hidden or flagged (privacy.block_mode), and stream.permissions = friends lets friends watch without asking. ServerDetails and Groups events report the server's details and groups when they change. The book mapping moved to its own module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
55 lines
2.0 KiB
TOML
55 lines
2.0 KiB
TOML
[package]
|
|
name = "voelin-core"
|
|
version = "0.1.0"
|
|
description = "Client engine: server sessions merging voice, gateway and query sources; the API the UI drives."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["audio-device"]
|
|
# Capture and play audio through the system's devices.
|
|
audio-device = ["voelin-audio/device"]
|
|
# The `media` module: capture and video codecs for streams, with whatever
|
|
# voelin-media backends are enabled (e.g. MediaCodec and a registered capture
|
|
# source on Android).
|
|
media = ["dep:voelin-media"]
|
|
# `media` with voelin-media's desktop backends: libvpx, OpenH264 loaded at
|
|
# runtime, X11 and PipeWire on Linux. Not for Android (libvpx does not
|
|
# cross-compile there).
|
|
media-desktop = ["media", "voelin-media/default"]
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
base64 = "0.22"
|
|
futures = "0.3"
|
|
md5 = "0.8"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "sync", "time"] }
|
|
tokio-tungstenite = "0.30"
|
|
toml = "1.1.6"
|
|
tracing = "0.1"
|
|
voelin-audio = { path = "../voelin-audio", default-features = false }
|
|
voelin-gateway-proto = { path = "../voelin-gateway-proto", features = ["client"] }
|
|
voelin-media = { path = "../voelin-media", default-features = false, features = ["str0m"], optional = true }
|
|
voelin-model = { path = "../voelin-model" }
|
|
voelin-observer = { path = "../voelin-observer" }
|
|
# Paths only (the cache directory).
|
|
voelin-platform = { path = "../voelin-platform", default-features = false }
|
|
voelin-query = { path = "../voelin-query" }
|
|
voelin-store = { path = "../voelin-store" }
|
|
voelin-stream = { path = "../voelin-stream" }
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
tsproto-types = { path = "../proto/tsproto-types" }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|