#![feature(decl_macro)]
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
#[macro_use]
extern crate dotenv_codegen;
mod db;
mod hour_entries;
mod roles;
mod users;
pub mod schema;
fn main() {
println!("Starting server...");
let mut rocket = rocket::ignite().manage(db::init_pool());
rocket = users::mount(rocket);
rocket = roles::mount(rocket);
rocket = hour_entries::mount(rocket);
rocket.launch();
}