From 7b7daa75a47b78847871d04a931dc31d16bebb2b Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 25 Mar 2020 23:49:24 -0300 Subject: [PATCH] Add explicit feature requirements for examples and tests This allow us to build 'actix-web' without default features and run all tests. Signed-off-by: Otavio Salvador --- Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6bd36279..84f87657 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,18 @@ openssl = ["actix-tls/openssl", "awc/openssl", "open-ssl"] # rustls rustls = ["actix-tls/rustls", "awc/rustls", "rust-tls"] +[[example]] +name = "basic" +required-features = ["compress"] + +[[example]] +name = "uds" +required-features = ["compress"] + +[[test]] +name = "test_server" +required-features = ["compress"] + [dependencies] actix-codec = "0.2.0" actix-service = "1.0.2"