From c91c994c8c80578406ba0ddddac250e5fbd9ed72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Thu, 19 Jul 2018 20:03:13 +0200 Subject: [PATCH] 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 --- Cargo.toml | 1 - src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0792a6e..a22db06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index dbf3ce5..c434c3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;