From d24f6c438602764e3062662279230eb914e2d486 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 4 Jul 2025 10:17:01 -0500 Subject: [PATCH] testing handshakes --- server/src/handshake.rs | 1 - server/src/main.rs | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/handshake.rs b/server/src/handshake.rs index 7152fa5..d11f179 100644 --- a/server/src/handshake.rs +++ b/server/src/handshake.rs @@ -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, diff --git a/server/src/main.rs b/server/src/main.rs index 3efef6a..9f3376f 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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 { @@ -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();