From a780ea10e9f225b4620b2e7e8d72c553c1e45554 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 3 Jun 2019 06:30:30 +0200 Subject: [PATCH] Guard cookie mod by cookie-session feature (#883) Signed-off-by: Igor Gnatenko --- actix-session/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix-session/src/lib.rs b/actix-session/src/lib.rs index 0e7831442..fb316f394 100644 --- a/actix-session/src/lib.rs +++ b/actix-session/src/lib.rs @@ -52,7 +52,9 @@ use serde::de::DeserializeOwned; use serde::Serialize; use serde_json; +#[cfg(feature = "cookie-session")] mod cookie; +#[cfg(feature = "cookie-session")] pub use crate::cookie::CookieSession; /// The high-level interface you use to modify session data.