From 027f0453407e9ab266f11ab5e8278134c44a2c26 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 18 Jun 2020 11:22:14 +0100 Subject: [PATCH] exclude default -web features where not needed (#70) --- actix-cors/Cargo.toml | 2 +- actix-protobuf/Cargo.toml | 2 +- actix-redis/Cargo.toml | 2 +- actix-session/Cargo.toml | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/actix-cors/Cargo.toml b/actix-cors/Cargo.toml index c2b461b89..1cb157173 100644 --- a/actix-cors/Cargo.toml +++ b/actix-cors/Cargo.toml @@ -16,7 +16,7 @@ name = "actix_cors" path = "src/lib.rs" [dependencies] -actix-web = "3.0.0-alpha.1" +actix-web = { version = "3.0.0-alpha.1", default_features = false } actix-service = "1.0.1" derive_more = "0.99.2" futures-util = { version = "0.3.4", default-features = false } diff --git a/actix-protobuf/Cargo.toml b/actix-protobuf/Cargo.toml index c515195e3..0376d4d7e 100644 --- a/actix-protobuf/Cargo.toml +++ b/actix-protobuf/Cargo.toml @@ -21,7 +21,7 @@ futures-util = { version = "0.3.5", default-features = false } derive_more = "0.99" actix-rt = "1" -actix-web = "2" +actix-web = { version = "2", default_features = false } prost = "0.6.0" diff --git a/actix-redis/Cargo.toml b/actix-redis/Cargo.toml index b40a3827f..c09596e0a 100644 --- a/actix-redis/Cargo.toml +++ b/actix-redis/Cargo.toml @@ -38,7 +38,7 @@ tokio = "0.2.6" tokio-util = "0.3.0" # actix-session -actix-web = { version = "3.0.0-alpha.2", optional = true } +actix-web = { version = "3.0.0-alpha.2", default_features = false, optional = true } actix-http = { version = "2.0.0-alpha.3", optional = true } actix-service = { version = "1.0.0", optional = true } actix-session = { version = "0.4.0-alpha.1", optional = true } diff --git a/actix-session/Cargo.toml b/actix-session/Cargo.toml index 1626d74f4..ff8146277 100644 --- a/actix-session/Cargo.toml +++ b/actix-session/Cargo.toml @@ -17,12 +17,10 @@ path = "src/lib.rs" [features] default = ["cookie-session"] - -# sessions feature, session require "ring" crate and c compiler cookie-session = ["actix-web/secure-cookies"] [dependencies] -actix-web = "3.0.0-alpha.1" +actix-web = { version = "3.0.0-alpha.1", default_features = false } actix-service = "1.0.1" bytes = "0.5.3" derive_more = "0.99.2"