pnmixer-rust/src/bin.rs

29 lines
538 B
Rust

#![feature(alloc_system)]
extern crate alloc_system;
extern crate pnmixerlib;
use pnmixerlib::*;
use app_state::*;
use std::rc::Rc;
fn main() {
gtk::init().unwrap();
flexi_logger::LogOptions::new()
.log_to_file(false)
// ... your configuration options go here ...
.init(Some("pnmixer=debug".to_string()))
.unwrap_or_else(|e| panic!("Logger initialization failed with {}", e));
let apps = Rc::new(AppS::new());
ui_entry::init(apps);
gtk::main();
// TODO: clean deallocation?
}