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
30 lines
496 B
Rust
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()
|
|
}
|