testing handshakes
This commit is contained in:
parent
49022b3714
commit
d24f6c4386
@ -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,
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user