IMAPServer-shared 0.1.0

A shared module for the IMAPServer crate and it's cli
Documentation
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate diesel_migrations;

use diesel_migrations::embed_migrations;

pub mod config;
pub mod mailbox;

mod database;
mod models;
mod schema;

#[cfg(test)]
mod tests;

embed_migrations!("./migrations");

pub fn setup() {
    let connection = database::establish_connection();
    embedded_migrations::run(&connection).expect("failed to run shared migrations");
}