From 17d73bb73f4396c22ca24c3839a5449f5e28b4e5 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Apr 2021 04:05:44 +0300 Subject: Housekeeping Moved tests out of routes.rs into their own file Learned how to use lib.rs, now we have cargo doc support as well --- src/main.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 5683aea..0000000 --- a/src/main.rs +++ /dev/null @@ -1,26 +0,0 @@ -use gradecoin::schema::create_database; -use std::env; -use warp::Filter; - -mod custom_filters; -mod handlers; -mod routes; -// mod validators; - -#[tokio::main] -async fn main() { - // Show debug logs by default by setting `RUST_LOG=restful_rust=debug` - if env::var_os("RUST_LOG").is_none() { - env::set_var("RUST_LOG", "gradecoin=debug"); - } - pretty_env_logger::init(); - - let db = create_database(); - - let api = routes::consensus_routes(db); - - let routes = api.with(warp::log("gradecoin")); - - // Start the server - warp::serve(routes).run(([127, 0, 0, 1], 8080)).await; -} -- cgit v1.2.3-70-g09d2