409b173f62
Add flate2 dependency and a new AUDIO_MSG_HISTORY_COMPRESSED (0x0a) wire type. The server gzip-compresses the full history blob before sending; JSON history compresses ~10-20x so both transfer size and client wait time drop significantly. The client decompresses and dispatches sub-messages from the embedded framed stream. MAX_PAYLOAD_SIZE is kept at 1 MB for normal messages; a separate 16 MB limit is applied only to the compressed history type. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
31 lines
909 B
TOML
31 lines
909 B
TOML
# SPDX-FileCopyrightText: 2025 Stanislaw Grams <stanislawgrams@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
[package]
|
|
name = "trx-client"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
flate2 = { workspace = true }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
toml = { workspace = true }
|
|
tracing = { workspace = true }
|
|
clap = { workspace = true, features = ["derive"] }
|
|
dirs = "6"
|
|
bytes = "1"
|
|
cpal = "0.15"
|
|
opus = "0.3"
|
|
trx-app = { path = "../trx-app" }
|
|
trx-core = { path = "../trx-core" }
|
|
trx-protocol = { path = "../trx-protocol" }
|
|
trx-frontend = { path = "trx-frontend" }
|
|
trx-frontend-http = { path = "trx-frontend/trx-frontend-http" }
|
|
trx-frontend-http-json = { path = "trx-frontend/trx-frontend-http-json" }
|
|
trx-frontend-rigctl = { path = "trx-frontend/trx-frontend-rigctl" }
|
|
|
|
[features]
|
|
default = [] |