/*
 *     rumtk attempts to implement HL7 and medical protocols for interoperability in medicine.
 *     This toolkit aims to be reliable, simple, performant, and standards compliant.
 *     Copyright (C) 2026  Luis M. Santos, M.D. <lsantos@medicalmasses.com>
 *     Copyright (C) 2026  MedicalMasses L.L.C. <contact@medicalmasses.com>
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
#![feature(rustc_private)]
mod forms;
mod pages;
mod api;
mod components;
mod utils;

use rumtk_web::{
    rumtk_web_register_app_components, rumtk_web_register_app_switches, rumtk_web_run_app,
    AppComponents,
};

fn main() {
    let app_components = rumtk_web_register_app_components!(
        vec![
            ("index", pages::index::index),
        ],
        vec![
            ("benchmark_view", components::benchmark_view::benchmark_view),
        ],
        vec![
            ("basic_benchmark", forms::basic_benchmark::basic_benchmark),
        ],
        vec![
            ("benchmarks/basic", api::benchmarks::basic::benchmark)
        ]
    );

    rumtk_web_run_app!(app_components);
}
