mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Move private and signed cookies behind feature flags (#949)
* move signed cookies into their own module * Require features for private/signed cookies * enable "cookie" feature when enabling private/signed cookies * add `#[cfg]`s in a few more places
This commit is contained in:
@@ -7,4 +7,10 @@ pub mod cookie;
|
||||
pub use self::cached::Cached;
|
||||
|
||||
#[cfg(feature = "cookie")]
|
||||
pub use self::cookie::{CookieJar, PrivateCookieJar, SignedCookieJar};
|
||||
pub use self::cookie::CookieJar;
|
||||
|
||||
#[cfg(feature = "cookie-private")]
|
||||
pub use self::cookie::PrivateCookieJar;
|
||||
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
pub use self::cookie::SignedCookieJar;
|
||||
|
||||
Reference in New Issue
Block a user