Skip to content

Commit a25c0e8

Browse files
Upgrade actix-ws crate from 0.3 to 0.4 version (#1366)
- upgrade `actix-web` crate from 4.4 to 4.13 version - bump MSRV to 1.88 in `juniper_actix` crate Additionally: - remove compression from `juniper_actix` examples Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kai Ren <tyranron@gmail.com>
1 parent 73e06e9 commit a25c0e8

5 files changed

Lines changed: 23 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
- juniper
163163
- juniper_subscriptions
164164
- juniper_graphql_ws
165-
- juniper_actix
165+
#- juniper_actix
166166
- juniper_axum
167167
- juniper_hyper
168168
- juniper_rocket
@@ -171,6 +171,10 @@ jobs:
171171
- ubuntu
172172
- macOS
173173
- windows
174+
include:
175+
- { msrv: "1.88.0", crate: "juniper_actix", os: "ubuntu" }
176+
- { msrv: "1.88.0", crate: "juniper_actix", os: "macOS" }
177+
- { msrv: "1.88.0", crate: "juniper_actix", os: "windows" }
174178
runs-on: ${{ matrix.os }}-latest
175179
steps:
176180
- uses: actions/checkout@v6

juniper_actix/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ All user visible changes to `juniper_actix` crate will be documented in this fil
66

77

88

9+
## master
10+
11+
### BC Breaks
12+
13+
- Switched to 0.4 version of [`actix-ws` crate]. ([#1366])
14+
- Bumped up [MSRV] to 1.88 due to [`actix-ws` crate] requirements. ([#1366])
15+
16+
[#1366]: /../../pull/1366
17+
18+
19+
20+
921
## [0.7.0] · 2025-09-08
1022
[0.7.0]: /../../tree/juniper_actix-v0.7.0/juniper_actix
1123

juniper_actix/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "juniper_actix"
33
version = "0.7.0"
44
edition = "2024"
5-
rust-version = "1.85"
5+
rust-version = "1.88"
66
description = "`juniper` GraphQL integration with `actix-web`."
77
license = "BSD-2-Clause"
88
authors = [
@@ -27,11 +27,12 @@ subscriptions = [
2727
"dep:derive_more",
2828
"dep:futures",
2929
"dep:juniper_graphql_ws",
30+
"actix-web/ws",
3031
]
3132

3233
[dependencies]
33-
actix-web = "4.4"
34-
actix-ws = { version = "0.3", optional = true }
34+
actix-web = { version = "4.13", default-features = false }
35+
actix-ws = { version = "0.4", optional = true }
3536
derive_more = { version = "2.0", features = ["display", "error"], optional = true }
3637
futures = { version = "0.3.22", optional = true }
3738
juniper = { version = "0.17", path = "../juniper", default-features = false }
@@ -44,6 +45,7 @@ actix-cors = "0.7"
4445
actix-http = "3.2"
4546
actix-rt = "2.0"
4647
actix-test = "0.1"
48+
actix-web = { version = "4.13", features = ["macros"], default-features = false }
4749
anyhow = "1.0.47"
4850
async-stream = "0.3"
4951
env_logger = "0.11"

juniper_actix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Crates.io](https://img.shields.io/crates/v/juniper_actix.svg?maxAge=2592000)](https://crates.io/crates/juniper_actix)
55
[![Documentation](https://docs.rs/juniper_actix/badge.svg)](https://docs.rs/juniper_actix)
66
[![CI](https://github.com/graphql-rust/juniper/actions/workflows/ci.yml/badge.svg?branch=master "CI")](https://github.com/graphql-rust/juniper/actions?query=workflow%3ACI+branch%3Amaster)
7-
[![Rust 1.85+](https://img.shields.io/badge/rustc-1.85+-lightgray.svg "Rust 1.85+")](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html)
7+
[![Rust 1.88+](https://img.shields.io/badge/rustc-1.85+-lightgray.svg "Rust 1.88+")](https://blog.rust-lang.org/2025/06/26/Rust-1.88.0)
88

99
- [Changelog](https://github.com/graphql-rust/juniper/blob/juniper_actix-v0.7.0/juniper_actix/CHANGELOG.md)
1010

juniper_actix/examples/subscription.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ async fn main() -> std::io::Result<()> {
140140
.supports_credentials()
141141
.max_age(3600),
142142
)
143-
.wrap(middleware::Compress::default())
144143
.wrap(middleware::Logger::default())
145144
.service(web::resource("/subscriptions").route(web::get().to(subscriptions)))
146145
.service(

0 commit comments

Comments
 (0)