29 lines
610 B
Rust
29 lines
610 B
Rust
|
|
mod app;
|
||
|
|
mod audio;
|
||
|
|
mod cache;
|
||
|
|
mod deck;
|
||
|
|
mod effect_chain;
|
||
|
|
mod file_selector;
|
||
|
|
mod osc;
|
||
|
|
mod tui;
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
|
||
|
|
#[tokio::main]
|
||
|
|
async fn main() -> Result<()> {
|
||
|
|
// Log to file so we don't pollute the TUI
|
||
|
|
let log_file = std::fs::File::create("/tmp/djdeck.log")?;
|
||
|
|
tracing_subscriber::fmt()
|
||
|
|
.with_env_filter(
|
||
|
|
tracing_subscriber::EnvFilter::from_default_env()
|
||
|
|
.add_directive(tracing::Level::INFO.into()),
|
||
|
|
)
|
||
|
|
.with_writer(log_file)
|
||
|
|
.init();
|
||
|
|
|
||
|
|
tracing::info!("djdeck starting");
|
||
|
|
|
||
|
|
let mut app = app::App::new()?;
|
||
|
|
app.run().await
|
||
|
|
}
|