1
0
mirror of https://github.com/actix/examples synced 2025-06-29 10:14:58 +02:00

upgrade to alpha.6

This commit is contained in:
Nikolay Kim
2019-04-14 10:34:41 -07:00
parent 8fb2bf6869
commit 09b0188ff9
13 changed files with 93 additions and 117 deletions

View File

@ -1,19 +1,16 @@
use actix_web::{middleware, App, HttpServer};
use async_ex2::{
appconfig::config_app,
};
use async_ex2::appconfig::config_app;
fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
env_logger::init();
HttpServer::new(||
HttpServer::new(|| {
App::new()
.configure(config_app)
.wrap(middleware::Logger::default())
)
})
.bind("127.0.0.1:8080")?
.run()
}
}