#![recursion_limit = "1024"]

use anyhow::Result;
use rocket::launch;
use gettext_macros::init_i18n;

#[cfg(debug_assertions)]
init_i18n!("hagrid", en, de, ja);

#[cfg(not(debug_assertions))]
init_i18n!(
    "hagrid", en, de, fr, it, ja, nb, pl, tr, zh_Hans, ko, nl, ru, ar, sv, es, ro
);

mod anonymize_utils;
mod counters;
mod dump;
mod gettext_strings;
mod i18n;
mod i18n_helpers;
mod mail;
mod rate_limiter;
mod sealed_state;
mod template_helpers;
mod tokens;
mod web;

#[launch]
fn rocket() -> _ {
    web::serve().expect("Rocket config must succeed")
}
