Files
certifai/bin/main.rs
Sharang Parnerkar fb622c6bd5
Some checks failed
CI / Clippy (push) Successful in 2m16s
CI / Tests (push) Has been cancelled
CI / Build & Push Image (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Format (pull_request) Failing after 6s
CI / Security Audit (pull_request) Has been cancelled
CI / Tests (pull_request) Has been cancelled
CI / Build & Push Image (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Format (push) Failing after 6s
fix(ci): clippy is happy
2026-02-18 10:16:15 +01:00

23 lines
658 B
Rust

#![allow(non_snake_case)]
#[allow(clippy::expect_used)]
fn main() {
// Init logger
dioxus_logger::init(tracing::Level::DEBUG).expect("Failed to init logger");
#[cfg(feature = "web")]
{
tracing::info!("Starting app...");
// Hydrate the application on the client
dioxus::web::launch::launch_cfg(dashboard::App, dioxus::web::Config::new().hydrate(true));
}
#[cfg(feature = "server")]
{
dashboard::infrastructure::server_start(dashboard::App)
.map_err(|e| {
tracing::error!("Unable to start server: {e}");
})
.expect("Server start failed")
}
}