build: workspace for vendored crates, replace audiopus with opus2

- Root Cargo workspace (resolver 3) with the six vendored crates.
- Path deps adjusted to the flat crates/proto layout, publish = false.
- tsclientlib: audiopus (unmaintained, RUSTSEC-2026-0150) -> opus2 0.4.
- Stable rustfmt config for new crates; vendored crates keep their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-25 12:52:44 +00:00
1 parent 1cb7b0bdf2
commit 8cd65e8deb
13 files changed
+87 -52

No files matched your search

+7 -8
View File
@@ -8,6 +8,7 @@ readme = "README.md"
keywords = ["teamspeak3", "ts3", "voip"]
categories = ["multimedia"]
license = "MIT OR Apache-2.0"
publish = false
edition = "2018"
include = [
"/Cargo.toml",
@@ -22,15 +23,13 @@ features = ["unstable"]
default = ["audio", "default-tls"]
# Enable the unstable api
unstable = []
audio = ["audiopus"]
audio = ["opus2"]
# Enable default reqwest features.
# Use default-features=false on tsclientlib to configure reqwest differently.
default-tls = ["reqwest/charset", "reqwest/default-tls", "reqwest/http2"]
# Use API of audiopus fork at https://github.com/Flakebi/audiopus for more features
audiopus-unstable = []
[dependencies]
audiopus = { version = "0.3.0-rc.0", optional = true }
opus2 = { version = "0.4", optional = true }
base64 = "0.22"
futures = "0.3"
git-testament = "0.2"
@@ -46,15 +45,15 @@ tokio-stream = "0.1"
tracing = "0.1"
hickory-net = "0.26"
hickory-resolver = "0.26"
ts-bookkeeping = { path = "../utils/ts-bookkeeping", version = "0.1" }
ts-bookkeeping = { path = "../ts-bookkeeping", version = "0.1" }
tsproto = { path = "../tsproto", version = "0.2" }
tsproto-packets = { path = "../utils/tsproto-packets", version = "0.1" }
tsproto-types = { path = "../utils/tsproto-types", version = "0.1" }
tsproto-packets = { path = "../tsproto-packets", version = "0.1" }
tsproto-types = { path = "../tsproto-types", version = "0.1" }
url = "2"
[dev-dependencies]
anyhow = "1"
audiopus = "0.3.0-rc.0"
opus2 = "0.4"
cpal = "0.18"
once_cell = "1"
quickcheck = "1"