setup main project layout
Co-authored-by: Clément Rehs <clement.rehs@epita.fr>
This commit is contained in:
parent
a71a059feb
commit
b95003257d
12 changed files with 963 additions and 4 deletions
14
src/lib/harsh.rs
Normal file
14
src/lib/harsh.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use super::config::Configuration;
|
||||
use super::database::DbManager;
|
||||
use super::http::serve;
|
||||
use super::log::Logger;
|
||||
|
||||
///
|
||||
/// main function
|
||||
///
|
||||
pub fn main() {
|
||||
let configuration = Configuration::read();
|
||||
Logger::configure(&configuration);
|
||||
let mut db_manager = DbManager::new(&configuration);
|
||||
serve(&configuration, &mut db_manager);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue