use_cookie feature docs more prominent

This commit is contained in:
Maccesch 2024-01-23 16:06:16 +00:00
parent 91071cf119
commit e4c6901140

View file

@ -37,8 +37,8 @@ use cookie::Cookie;
/// This works equally well on the server or the client.
/// On the server this function gets the cookie from the HTTP request header.
///
/// If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml.
/// In case it's `actix-web` enable the feature `"actix"`.
/// > If you're using `axum` you have to enable the `"axum"` feature in your Cargo.toml.
/// > In case it's `actix-web` enable the feature `"actix"`.
pub fn use_cookie(cookie_name: &str) -> Option<Cookie<'static>> {
let cookies;
#[cfg(feature = "ssr")]