testing handshakes

This commit is contained in:
Brad Stein 2025-07-04 10:17:01 -05:00
parent 49022b3714
commit d24f6c4386
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,6 @@ use lesavka_common::lesavka::{
handshake_server::{Handshake, HandshakeServer},
};
/// Static capabilities for now; could be probed at runtime
pub struct HandshakeSvc {
pub camera: bool,
pub microphone: bool,

View File

@ -33,6 +33,8 @@ use lesavka_server::{gadget::UsbGadget, video, audio, handshake::HandshakeSvc};
/*──────────────── constants ────────────────*/
/// **false** = never reset automatically.
const AUTO_CYCLE: bool = false;
const VERSION: &str = env!("CARGO_PKG_VERSION");
const PKG_NAME: &str = env!("CARGO_PKG_NAME");
/*──────────────── logging ───────────────────*/
fn init_tracing() -> anyhow::Result<WorkerGuard> {
@ -291,6 +293,7 @@ impl Relay for Handler {
#[tokio::main(worker_threads = 4)]
async fn main() -> anyhow::Result<()> {
let _guard = init_tracing()?;
info!("🚀 {} v{} starting up", PKG_NAME, VERSION);
panic::set_hook(Box::new(|p| {
let bt = Backtrace::force_capture();