From 1750f0441b89ad1bdacad536c85aaf8fc464cbaf Mon Sep 17 00:00:00 2001 From: rascul Date: Sat, 18 Jun 2022 14:58:20 -0500 Subject: [PATCH] add some comments --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 51246c5..a5a3337 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,9 +25,13 @@ pub fn default_false() -> bool { #[actix_web::main] async fn main() -> std::io::Result<()> { + // parse command line arguments let options = Options::init(); + + // start logger rag::init().unwrap(); + // load templates let mut handlebars = Handlebars::new(); handlebars.register_templates_directory(".html", "./templates").unwrap(); let handlebars_ref = web::Data::new(handlebars); @@ -35,6 +39,7 @@ async fn main() -> std::io::Result<()> { info!("Configuration (see --help to change):"); info!("{:?}", options); + // setup and start http server HttpServer::new(move || { App::new() .app_data(handlebars_ref.clone())