1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

chore(actix-session): prepare release 0.10.0

This commit is contained in:
Rob Ede 2024-08-07 00:57:54 +01:00
parent 517e72f248
commit f2339971cd
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
6 changed files with 19 additions and 25 deletions

View File

@ -19,7 +19,7 @@ all-features = true
[dependencies] [dependencies]
actix-service = "2" actix-service = "2"
actix-session = "0.9" actix-session = "0.10"
actix-utils = "3" actix-utils = "3"
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] } 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] [dev-dependencies]
actix-http = "3" actix-http = "3"
actix-web = { version = "4", default-features = false, features = ["macros", "cookies", "secure-cookies"] } 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" env_logger = "0.11"
reqwest = { version = "0.12", default-features = false, features = ["cookies", "json"] } reqwest = { version = "0.12", default-features = false, features = ["cookies", "json"] }

View File

@ -32,7 +32,7 @@ redis = { version = "0.26", default-features = false, features = ["tokio-comp"]
time = "0.3" time = "0.3"
# session # session
actix-session = { version = "0.9", optional = true } actix-session = { version = "0.10", optional = true }
[dev-dependencies] [dev-dependencies]
actix-web = "4" actix-web = "4"

View File

@ -2,6 +2,8 @@
## Unreleased ## Unreleased
## 0.10.0
- Add `redis-session-rustls` crate feature that enables `rustls`-secured Redis sessions. - 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. - Add `redis-pool` crate feature (off-by-default) which enables `RedisSessionStore::{new, builder}_pooled()` constructors.
- Rename `redis-rs-session` crate feature to `redis-session`. - Rename `redis-rs-session` crate feature to `redis-session`.

View File

@ -1,6 +1,6 @@
[package] [package]
name = "actix-session" name = "actix-session"
version = "0.9.0" version = "0.10.0"
authors = [ authors = [
"Nikolay Kim <fafhrd91@gmail.com>", "Nikolay Kim <fafhrd91@gmail.com>",
"Luca Palmieri <rust@lpalmieri.com>", "Luca Palmieri <rust@lpalmieri.com>",

View File

@ -5,9 +5,9 @@
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
[![crates.io](https://img.shields.io/crates/v/actix-session?label=latest)](https://crates.io/crates/actix-session) [![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) ![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)
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
@ -100,7 +100,7 @@ By default, `actix-session` does not provide any storage backend to retrieve and
actix-session = { version = "...", features = ["cookie-session"] } 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 ```toml
[dependencies] [dependencies]

View File

@ -99,36 +99,28 @@
//! - a purely cookie-based "backend", [`CookieSessionStore`], using the `cookie-session` feature //! - a purely cookie-based "backend", [`CookieSessionStore`], using the `cookie-session` feature
//! flag. //! flag.
//! //!
//! ```toml //! ```console
//! [dependencies] //! cargo add actix-session --features=cookie-session
//! # ...
//! actix-session = { version = "...", features = ["cookie-session"] }
//! ``` //! ```
//! //!
//! - a Redis-based backend via [`redis-rs`](https://docs.rs/redis-rs), [`RedisSessionStore`], using //! - a Redis-based backend via the [`redis`] crate, [`RedisSessionStore`], using the
//! the `redis-session` feature flag. //! `redis-session` feature flag.
//! //!
//! ```toml //! ```console
//! [dependencies] //! cargo add actix-session --features=redis-session
//! # ...
//! actix-session = { version = "...", features = ["redis-session"] }
//! ``` //! ```
//! //!
//! Add the `redis-session-native-tls` feature flag if you want to connect to Redis using a secure //! Add the `redis-session-native-tls` feature flag if you want to connect to Redis using a secure
//! connection (via the `native-tls` crate): //! connection (via the `native-tls` crate):
//! //!
//! ```toml //! ```console
//! [dependencies] //! cargo add actix-session --features=redis-session-native-tls
//! # ...
//! actix-session = { version = "...", features = ["redis-session-native-tls"] }
//! ``` //! ```
//! //!
//! If you, instead, prefer depending on `rustls`, use the `redis-session-rustls` feature flag: //! If you, instead, prefer depending on `rustls`, use the `redis-session-rustls` feature flag:
//! //!
//! ```toml //! ```console
//! [dependencies] //! cargo add actix-session --features=redis-session-rustls
//! # ...
//! actix-session = { version = "...", features = ["redis-session-rustls"] }
//! ``` //! ```
//! //!
//! You can implement your own session storage backend using the [`SessionStore`] trait. //! You can implement your own session storage backend using the [`SessionStore`] trait.