Files
faumarayandClaude Sonnet 5.5 be84874a09 Take the gateway's identity as a blob and the query login as the engine's own type
Command::ObserveGateway.identity is a Box<IdentityBlob> (a TeamSpeak
identity as the key store keeps it; voelin_core::ts::identity::to_blob and
from_blob convert) and gateway::connect takes the blob too; gateway.rs reads
it itself, and one it cannot read ends the observation with its reason
instead of reaching the gateway. Command::ObserveQuery.connect is a
QueryLogin (transport, address, user, secret, server port and id) that
query.rs turns into voelin_query::Connect with the query crate's own line
options, which is what the UI always passed. voelin_core re-exports
IdentityBlob; voelin-identity is a dependency of voelin-core now, so
Cargo.lock gains that edge (the crate was in the graph already, and no
third-party package is added: THIRD_PARTY_NOTICES.md is unchanged).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 06:29:50 +03:00

88 lines
3.7 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), and the studio's WHIP output. The crate itself is always
# there: the stream types in the API (`EncodedFrame`, `LayerSpec`) are its.
media = ["voelin-media/whip"]
# `media` with voelin-media's desktop backends: libvpx, dav1d, OpenH264 and
# FFmpeg 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"
# The RTP packets of the session seam (`voelin_proto::link::MediaPacket`).
bytes = "1"
dirs = "6"
futures = "0.3"
# Finding a server's gateway in DNS (the voice resolver's version).
hickory-resolver = "0.26"
md5 = "0.8"
# A stalled HTTP/2 connection's error, told apart (the version reqwest's hyper
# uses).
h2 = "0.4"
# Retry-After dates (already in the tree through hyper).
httpdate = "1"
# Banners on the web; the client the workspace has (voelin-query, voelin-media).
# `system-proxy`: the proxy settings of Windows and macOS; `socks`: SOCKS
# proxies (from the desktop's settings or ALL_PROXY).
reqwest = { version = "0.13.5", default-features = false, features = ["rustls", "socks", "system-proxy"] }
# Reading the official clients' settings.db when importing identities.
rusqlite = { version = "0.40.2", features = ["bundled"] }
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"] }
# `IdentityBlob`, the identity of the API (a TeamSpeak identity as the key store
# keeps it, or a Voelin key).
voelin-identity = { workspace = true }
voelin-media = { path = "../voelin-media", default-features = false }
voelin-model = { workspace = true }
voelin-observer = { path = "../voelin-observer" }
# Paths only (the cache directory).
voelin-platform = { path = "../voelin-platform", default-features = false }
# The backend-neutral session seam the engine consumes (`voelin_proto::link`)
# and the v1 messages it speaks.
voelin-proto = { workspace = true }
voelin-query = { path = "../voelin-query" }
voelin-store = { path = "../voelin-store" }
voelin-stream = { path = "../voelin-stream" }
tsclientlib = { path = "../proto/tsclientlib" }
# The hash cash level, for raising an identity's security level.
tsproto = { path = "../proto/tsproto" }
tsproto-packets = { path = "../proto/tsproto-packets" }
tsproto-types = { path = "../proto/tsproto-types" }
[dev-dependencies]
# An HTTP/2 connection in a test (already in the tree through h2).
http = "1"
# Already in the app's graph (reqwest); for one_rustls_crypto_provider.
rustls = { version = "0.23", default-features = false }
# `process`: the browser interop test drives Chromium through Node.js.
tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] }
# The fakes of the session seam (`FakeHost`, `FakeSession`, the conformance
# suite).
voelin-proto = { workspace = true, features = ["test-util"] }
[lints]
workspace = true