Skip to content

Commit

Permalink
Merge branch 'master' into implement-contains-key-update-update-or
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus authored Sep 17, 2024
2 parents d1639b9 + dd20ebb commit ae021a6
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
toolchain: nightly

- name: Install cargo-hack, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: cargo-hack,cargo-ci-cache-clean

Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
toolchain: nightly

- name: Install cargo-hack and cargo-ci-cache-clean
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: cargo-hack,cargo-ci-cache-clean

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack and cargo-ci-cache-clean
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: cargo-hack,cargo-ci-cache-clean

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: cargo-hack,cargo-ci-cache-clean

Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
toolchain: nightly

- name: Install just
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: just

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
components: llvm-tools-preview

- name: Install just, cargo-llvm-cov, cargo-nextest
uses: taiki-e/install-action@v2.42.14
uses: taiki-e/install-action@v2.42.37
with:
tool: just,cargo-llvm-cov,cargo-nextest

Expand Down
2 changes: 2 additions & 0 deletions actix-identity/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## 0.8.0

- Update `actix-session` dependency to `0.10`.

## 0.7.1
Expand Down
2 changes: 1 addition & 1 deletion actix-identity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-identity"
version = "0.7.1"
version = "0.8.0"
authors = [
"Nikolay Kim <fafhrd91@gmail.com>",
"Luca Palmieri <rust@lpalmieri.com>",
Expand Down
4 changes: 2 additions & 2 deletions actix-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<!-- prettier-ignore-start -->

[![crates.io](https://img.shields.io/crates/v/actix-identity?label=latest)](https://crates.io/crates/actix-identity)
[![Documentation](https://docs.rs/actix-identity/badge.svg?version=0.7.1)](https://docs.rs/actix-identity/0.7.1)
[![Documentation](https://docs.rs/actix-identity/badge.svg?version=0.8.0)](https://docs.rs/actix-identity/0.8.0)
![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-identity)
[![Dependency Status](https://deps.rs/crate/actix-identity/0.7.1/status.svg)](https://deps.rs/crate/actix-identity/0.7.1)
[![Dependency Status](https://deps.rs/crate/actix-identity/0.8.0/status.svg)](https://deps.rs/crate/actix-identity/0.8.0)

<!-- prettier-ignore-end -->

Expand Down
4 changes: 4 additions & 0 deletions actix-session/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
- Add `session.update_or(key, updater, default_value)`
- Add `session.contains_key(key)`

## 0.10.1

- Expose `storage::generate_session_key()` without needing to enable a crate feature.

## 0.10.0

- Add `redis-session-rustls` crate feature that enables `rustls`-secured Redis sessions.
Expand Down
6 changes: 3 additions & 3 deletions actix-session/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-session"
version = "0.10.0"
version = "0.10.1"
authors = [
"Nikolay Kim <fafhrd91@gmail.com>",
"Luca Palmieri <rust@lpalmieri.com>",
Expand All @@ -20,7 +20,7 @@ all-features = true
[features]
default = []
cookie-session = []
redis-session = ["dep:redis", "dep:rand"]
redis-session = ["dep:redis"]
redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"]
redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"]
redis-pool = ["dep:deadpool-redis"]
Expand All @@ -32,7 +32,7 @@ actix-web = { version = "4", default-features = false, features = ["cookies", "s

anyhow = "1"
derive_more = { version = "1", features = ["display", "error", "from"] }
rand = { version = "0.8", optional = true }
rand = "0.8"
serde = { version = "1" }
serde_json = { version = "1" }
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
Expand Down
4 changes: 2 additions & 2 deletions actix-session/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<!-- prettier-ignore-start -->

[![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.10.0)](https://docs.rs/actix-session/0.10.0)
[![Documentation](https://docs.rs/actix-session/badge.svg?version=0.10.1)](https://docs.rs/actix-session/0.10.1)
![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-session)
[![Dependency Status](https://deps.rs/crate/actix-session/0.10.0/status.svg)](https://deps.rs/crate/actix-session/0.10.0)
[![Dependency Status](https://deps.rs/crate/actix-session/0.10.1/status.svg)](https://deps.rs/crate/actix-session/0.10.1)

<!-- prettier-ignore-end -->

Expand Down
1 change: 1 addition & 0 deletions actix-session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ pub use self::{
};

#[cfg(test)]
#[allow(missing_docs)]
pub mod test_helpers {
use actix_web::cookie::Key;

Expand Down
7 changes: 2 additions & 5 deletions actix-session/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ mod interface;
#[cfg(feature = "redis-session")]
mod redis_rs;
mod session_key;
#[cfg(feature = "redis-session")]
mod utils;

#[cfg(feature = "cookie-session")]
pub use self::cookie::CookieSessionStore;
#[cfg(feature = "redis-session")]
pub use self::redis_rs::{RedisSessionStore, RedisSessionStoreBuilder};
pub use self::{
interface::{LoadError, SaveError, SessionStore, UpdateError},
session_key::SessionKey,
};
#[cfg(feature = "redis-session")]
pub use self::{
redis_rs::{RedisSessionStore, RedisSessionStoreBuilder},
utils::generate_session_key,
};
4 changes: 2 additions & 2 deletions actix-web-httpauth/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ struct Quoted<'a> {
state: State,
}

impl<'a> Quoted<'a> {
pub fn new(s: &'a str) -> Quoted<'_> {
impl Quoted<'_> {
pub fn new(s: &str) -> Quoted<'_> {
Quoted {
inner: s.split('"').peekable(),
state: State::YieldStr,
Expand Down

0 comments on commit ae021a6

Please sign in to comment.