All checks were successful
actionlint check / actionlint check (pull_request) Successful in 7s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 3m44s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 3m46s
GitLeaks check / GitLeaks check (pull_request) Successful in 1m45s
Prettier check / Prettier check (pull_request) Successful in 2m1s
markdownlint check / markdownlint check (pull_request) Successful in 2m4s
htmlhint check / htmlhint check (pull_request) Successful in 2m6s
ShellCheck check / ShellCheck check (pull_request) Successful in 1m15s
yamllint check / yamllint check (pull_request) Successful in 1m11s
Stylelint check / Stylelint check (pull_request) Successful in 1m13s
Rust check / Rust check (pull_request) Successful in 22m46s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 19s
hadolint check / hadolint check (pull_request) Successful in 25s
checkov check / checkov check (pull_request) Successful in 56s
37 lines
734 B
Rust
37 lines
734 B
Rust
#![warn(clippy::pedantic)]
|
|
#![allow(clippy::unused_async)]
|
|
// TODO: Enable once false positives are fixed.
|
|
#![allow(clippy::assigning_clones)]
|
|
|
|
mod components;
|
|
mod dotenv;
|
|
mod hooks;
|
|
mod internationalization;
|
|
mod layouts;
|
|
#[cfg(feature = "server")]
|
|
mod migrations;
|
|
mod models;
|
|
mod route;
|
|
#[cfg(feature = "server")]
|
|
mod schema;
|
|
mod server;
|
|
mod utils;
|
|
mod views;
|
|
|
|
use components::app::App;
|
|
use dioxus::prelude::*;
|
|
use tracing::info;
|
|
|
|
fn main() {
|
|
info!("Running migrations.");
|
|
server_only!(
|
|
migrations::run_migrations().expect("Failed to run migrations.");
|
|
);
|
|
|
|
#[cfg(feature = "mobile")]
|
|
dioxus::fullstack::set_server_url(crate::dotenv::MOBILE_SERVER_URL);
|
|
|
|
info!("Starting the app.");
|
|
launch(App);
|
|
}
|