2023-06-18 01:55:04 +02:00
|
|
|
mod api;
|
2023-06-12 00:56:34 +02:00
|
|
|
mod backend;
|
|
|
|
mod cursor;
|
|
|
|
mod grab;
|
|
|
|
mod handlers;
|
|
|
|
mod input;
|
|
|
|
mod layout;
|
|
|
|
mod pointer;
|
|
|
|
mod render;
|
|
|
|
mod state;
|
|
|
|
mod window;
|
|
|
|
mod xdg;
|
|
|
|
|
|
|
|
use std::error::Error;
|
|
|
|
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
2023-06-15 23:43:33 +02:00
|
|
|
// pinnacle_api::run()?;
|
2023-06-12 00:56:34 +02:00
|
|
|
|
2023-06-15 19:42:34 +02:00
|
|
|
match tracing_subscriber::EnvFilter::try_from_default_env() {
|
|
|
|
Ok(env_filter) => {
|
|
|
|
tracing_subscriber::fmt()
|
|
|
|
.compact()
|
|
|
|
.with_env_filter(env_filter)
|
|
|
|
.init();
|
|
|
|
}
|
|
|
|
Err(_) => {
|
|
|
|
tracing_subscriber::fmt().compact().init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tracing::info!("Starting winit backend");
|
|
|
|
crate::backend::winit::run_winit()?;
|
2023-06-12 00:56:34 +02:00
|
|
|
// crate::backend::udev::run_udev()?;
|
|
|
|
Ok(())
|
|
|
|
}
|