1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-website/src/main.rs

28 lines
564 B
Rust

#![feature(decl_macro, proc_macro_hygiene)]
#[cfg(test)] mod tests;
mod config;
mod database;
mod forms;
mod i18n;
mod models;
mod responses;
mod routes;
mod schema;
mod states;
mod views;
mod web;
#[macro_use] extern crate diesel;
#[macro_use] extern crate rocket;
#[macro_use] extern crate serde_derive;
fn main() {
dotenv::dotenv().unwrap();
let config = config::Config::from_env().unwrap();
println!("Running with {:#?}", config);
println!("Public path: {:#?}", config.public_path().unwrap());
web::rocket(&config).unwrap().launch();
}