Files
LibreTunes-DX/src/main.rs
Ethan Girouard 345e1cc565
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / test (push) Successful in 17s
Push Workflows / docs (push) Successful in 17s
Push Workflows / clippy (push) Successful in 15s
Push Workflows / build (push) Successful in 42s
Push Workflows / nix-build (push) Successful in 5m0s
Move Route and App out of main
2026-06-21 16:45:53 -04:00

30 lines
496 B
Rust

pub mod api;
pub mod app;
pub mod components;
pub mod models;
pub mod pages;
pub mod schema;
pub mod util;
#[cfg(feature = "server")]
pub mod server;
use crate::app::App;
fn tracing_setup() {
#[cfg(debug_assertions)]
dioxus::logger::init(tracing::Level::DEBUG).expect("Failed to initialize tracing logger");
}
#[cfg(not(feature = "server"))]
fn main() {
tracing_setup();
dioxus::launch(App);
}
#[cfg(feature = "server")]
fn main() {
tracing_setup();
server::main()
}