Initial commit: split VNOX monorepo into VNOX-Client
Desktop client with egui + wgpu UI, audio pipeline (cpal/opus/rodio), networking (LNEx protocol), and identity management with encrypted vault. Jitter buffer module extracted from voice-node for standalone operation.
This commit is contained in:
commit
bf0b237afd
112 changed files with 19113 additions and 0 deletions
39
src/main.rs
Normal file
39
src/main.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
mod ui;
|
||||
|
||||
pub use ui::VnoxApp;
|
||||
pub use ui::{chat, connect, keybind, members, settings, sidebar, state, theme, titlebar};
|
||||
|
||||
use anyhow::Result;
|
||||
use tracing::info;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
use vnox_client::{identity, net};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||
EnvFilter::new("info,wgpu=warn,wgpu_hal=warn,egui_wgpu=warn,naga=warn")
|
||||
});
|
||||
tracing_subscriber::fmt().with_env_filter(filter).init();
|
||||
|
||||
let identity = identity::load_or_generate()?;
|
||||
info!("identity: {}", identity.short_id());
|
||||
|
||||
let rt = tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()?;
|
||||
let _guard = rt.enter();
|
||||
|
||||
let net = net::spawn(identity.clone());
|
||||
|
||||
eframe::run_native(
|
||||
"Vnox",
|
||||
eframe::NativeOptions {
|
||||
viewport: eframe::egui::ViewportBuilder::default()
|
||||
.with_title("Vnox")
|
||||
.with_inner_size([900.0, 560.0])
|
||||
.with_min_inner_size([600.0, 400.0]),
|
||||
..Default::default()
|
||||
},
|
||||
Box::new(|cc| Ok(Box::new(ui::VnoxApp::new(cc, identity, net)))),
|
||||
)
|
||||
.map_err(|e| anyhow::anyhow!("eframe: {e}"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue