diff --git a/actix-identity/Cargo.toml b/actix-identity/Cargo.toml index 036685df9..846019a3d 100644 --- a/actix-identity/Cargo.toml +++ b/actix-identity/Cargo.toml @@ -19,7 +19,7 @@ all-features = true [dependencies] actix-service = "2" -actix-session = "0.9" +actix-session = "0.10" actix-utils = "3" actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] } @@ -31,7 +31,7 @@ tracing = { version = "0.1.30", default-features = false, features = ["log"] } [dev-dependencies] actix-http = "3" actix-web = { version = "4", default-features = false, features = ["macros", "cookies", "secure-cookies"] } -actix-session = { version = "0.9", features = ["redis-session", "cookie-session"] } +actix-session = { version = "0.10", features = ["redis-session", "cookie-session"] } env_logger = "0.11" reqwest = { version = "0.12", default-features = false, features = ["cookies", "json"] } diff --git a/actix-limitation/Cargo.toml b/actix-limitation/Cargo.toml index 06f7540fb..81c80b381 100644 --- a/actix-limitation/Cargo.toml +++ b/actix-limitation/Cargo.toml @@ -32,7 +32,7 @@ redis = { version = "0.26", default-features = false, features = ["tokio-comp"] time = "0.3" # session -actix-session = { version = "0.9", optional = true } +actix-session = { version = "0.10", optional = true } [dev-dependencies] actix-web = "4" diff --git a/actix-session/CHANGES.md b/actix-session/CHANGES.md index 0f1f28cf1..779d49ed2 100644 --- a/actix-session/CHANGES.md +++ b/actix-session/CHANGES.md @@ -2,6 +2,8 @@ ## Unreleased +## 0.10.0 + - Add `redis-session-rustls` crate feature that enables `rustls`-secured Redis sessions. - Add `redis-pool` crate feature (off-by-default) which enables `RedisSessionStore::{new, builder}_pooled()` constructors. - Rename `redis-rs-session` crate feature to `redis-session`. diff --git a/actix-session/Cargo.toml b/actix-session/Cargo.toml index bffae7e19..92bd64461 100644 --- a/actix-session/Cargo.toml +++ b/actix-session/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-session" -version = "0.9.0" +version = "0.10.0" authors = [ "Nikolay Kim ", "Luca Palmieri ", diff --git a/actix-session/README.md b/actix-session/README.md index 3500fe77c..6a0a1cf4d 100644 --- a/actix-session/README.md +++ b/actix-session/README.md @@ -5,9 +5,9 @@ [![crates.io](https://img.shields.io/crates/v/actix-session?label=latest)](https://crates.io/crates/actix-session) -[![Documentation](https://docs.rs/actix-session/badge.svg?version=0.9.0)](https://docs.rs/actix-session/0.9.0) +[![Documentation](https://docs.rs/actix-session/badge.svg?version=0.10.0)](https://docs.rs/actix-session/0.10.0) ![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-session) -[![Dependency Status](https://deps.rs/crate/actix-session/0.9.0/status.svg)](https://deps.rs/crate/actix-session/0.9.0) +[![Dependency Status](https://deps.rs/crate/actix-session/0.10.0/status.svg)](https://deps.rs/crate/actix-session/0.10.0) @@ -100,7 +100,7 @@ By default, `actix-session` does not provide any storage backend to retrieve and actix-session = { version = "...", features = ["cookie-session"] } ``` -- a Redis-based backend via [`redis-rs`](https://docs.rs/redis-rs), [`RedisSessionStore`], using the `redis-session` feature flag. +- a Redis-based backend via the [`redis`] crate, [`RedisSessionStore`], using the `redis-session` feature flag. ```toml [dependencies] diff --git a/actix-session/src/lib.rs b/actix-session/src/lib.rs index c42c701f9..2c45193b1 100644 --- a/actix-session/src/lib.rs +++ b/actix-session/src/lib.rs @@ -99,36 +99,28 @@ //! - a purely cookie-based "backend", [`CookieSessionStore`], using the `cookie-session` feature //! flag. //! -//! ```toml -//! [dependencies] -//! # ... -//! actix-session = { version = "...", features = ["cookie-session"] } +//! ```console +//! cargo add actix-session --features=cookie-session //! ``` //! -//! - a Redis-based backend via [`redis-rs`](https://docs.rs/redis-rs), [`RedisSessionStore`], using -//! the `redis-session` feature flag. +//! - a Redis-based backend via the [`redis`] crate, [`RedisSessionStore`], using the +//! `redis-session` feature flag. //! -//! ```toml -//! [dependencies] -//! # ... -//! actix-session = { version = "...", features = ["redis-session"] } +//! ```console +//! cargo add actix-session --features=redis-session //! ``` //! //! Add the `redis-session-native-tls` feature flag if you want to connect to Redis using a secure //! connection (via the `native-tls` crate): //! -//! ```toml -//! [dependencies] -//! # ... -//! actix-session = { version = "...", features = ["redis-session-native-tls"] } +//! ```console +//! cargo add actix-session --features=redis-session-native-tls //! ``` //! //! If you, instead, prefer depending on `rustls`, use the `redis-session-rustls` feature flag: //! -//! ```toml -//! [dependencies] -//! # ... -//! actix-session = { version = "...", features = ["redis-session-rustls"] } +//! ```console +//! cargo add actix-session --features=redis-session-rustls //! ``` //! //! You can implement your own session storage backend using the [`SessionStore`] trait.