hagrid-keyserver--hagrid/src/main.rs

48 lines
850 B
Rust

#![feature(proc_macro_hygiene, plugin, decl_macro)]
#![recursion_limit = "1024"]
use failure::Fallible as Result;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
#[cfg(test)]
extern crate regex;
extern crate hagrid_database as database;
use gettext_macros::init_i18n;
init_i18n!("hagrid", en, de, fr, pl, tr, zh_Hans);
mod mail;
mod anonymize_utils;
mod tokens;
mod sealed_state;
mod rate_limiter;
mod dump;
mod counters;
mod i18n;
mod gettext_strings;
mod web;
mod template_helpers;
fn main() {
if let Err(e) = web::serve() {
let mut cause = e.as_fail();
eprint!("{}", cause);
while let Some(c) = cause.cause() {
eprint!(":\n {}", c);
cause = c;
}
eprintln!();
::std::process::exit(2);
}
}