actix_web reexports actix

Re-export actix::prelude::* as actix_web::actix module.

So no need to explicitly import it or add it in Cargo.toml
This commit is contained in:
Дамјан Георгиевски 2018-07-19 20:03:13 +02:00
parent ca4cc0a941
commit c91c994c8c
2 changed files with 1 additions and 2 deletions

View file

@ -6,7 +6,6 @@ license = "MIT"
readme = "README.md"
[dependencies]
actix = "*"
actix-web = { git = "https://github.com/actix/actix-web.git" }
bytes = "0.4"
futures = "0.1"

View file

@ -1,5 +1,4 @@
extern crate actix_web;
extern crate actix;
extern crate bytes;
extern crate futures;
extern crate tar;
@ -10,6 +9,7 @@ mod channel;
mod web;
use actix_web::server;
use actix_web::actix;
use std::env;
use std::io;