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

@@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicU32, Ordering};
use std::sync::{Arc, Mutex};
use anyhow::{Result, format_err};
use audiopus::coder::Encoder;
use opus2::Encoder;
use cpal::traits::{DeviceTrait, StreamTrait};
use cpal::{Device, Stream, StreamConfig};
use futures::prelude::*;
@@ -63,9 +63,9 @@ impl AudioToTs {
};
let encoder = Encoder::new(
audiopus::SampleRate::Hz48000,
audiopus::Channels::Mono,
audiopus::Application::Voip,
48_000,
opus2::Channels::Mono,
opus2::Application::Voip,
)
.expect("Could not create encoder");
let mut callback = Callback {