Skip to content

Commit 8d5d1db

Browse files
authored
bump MSRV to 1.65 (#485)
1 parent 177590a commit 8d5d1db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+188
-229
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu }
2424
- { name: Windows (32-bit), os: windows-latest, triple: i686-pc-windows-msvc }
2525
version:
26-
- 1.60.0
26+
- 1.65.0 # MSRV
2727
- stable
2828

2929
name: ${{ matrix.target.name }} / ${{ matrix.version }}

.rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
group_imports = "StdExternalCrate"
2+
imports_granularity = "Crate"
3+
use_field_init_shorthand = true

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ members = [
1414
]
1515
resolver = "2"
1616

17+
[workspace.package]
18+
edition = "2021"
19+
rust-version = "1.65"
20+
1721
[patch.crates-io]
1822
actix-codec = { path = "actix-codec" }
1923
actix-macros = { path = "actix-macros" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See example folders for [`actix-server`](./actix-server/examples) and [`actix-tl
1313

1414
## MSRV
1515

16-
Crates in this repo currently have a Minimum Supported Rust Version (MSRV) of 1.60. As a policy, we permit MSRV increases in non-breaking releases.
16+
Crates in this repo currently have a Minimum Supported Rust Version (MSRV) of 1.65. As a policy, we permit MSRV increases in non-breaking releases.
1717

1818
## License
1919

actix-codec/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased - 2023-xx-xx
44

5-
- Minimum supported Rust version (MSRV) is now 1.60.
5+
- Minimum supported Rust version (MSRV) is now 1.65.
66

77
## 0.5.1 - 2022-03-15
88

actix-codec/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ keywords = ["network", "framework", "async", "futures"]
1010
repository = "https://github.com/actix/actix-net"
1111
categories = ["network-programming", "asynchronous"]
1212
license = "MIT OR Apache-2.0"
13-
edition = "2021"
14-
rust-version = "1.60"
13+
edition.workspace = true
14+
rust-version.workspace = true
1515

1616
[dependencies]
1717
bitflags = "2"

actix-codec/src/framed.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ impl<T, U> Framed<T, U> {
234234
}
235235

236236
/// Flush write buffer to underlying I/O stream.
237-
pub fn flush<I>(
238-
mut self: Pin<&mut Self>,
239-
cx: &mut Context<'_>,
240-
) -> Poll<Result<(), U::Error>>
237+
pub fn flush<I>(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), U::Error>>
241238
where
242239
T: AsyncWrite,
243240
U: Encoder<I>,
@@ -270,10 +267,7 @@ impl<T, U> Framed<T, U> {
270267
}
271268

272269
/// Flush write buffer and shutdown underlying I/O stream.
273-
pub fn close<I>(
274-
mut self: Pin<&mut Self>,
275-
cx: &mut Context<'_>,
276-
) -> Poll<Result<(), U::Error>>
270+
pub fn close<I>(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), U::Error>>
277271
where
278272
T: AsyncWrite,
279273
U: Encoder<I>,

actix-codec/src/lib.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
1212
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
1313

14+
pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
15+
pub use tokio_util::{
16+
codec::{Decoder, Encoder},
17+
io::poll_read_buf,
18+
};
19+
1420
mod bcodec;
1521
mod framed;
1622
mod lines;
1723

18-
pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
19-
pub use tokio_util::codec::{Decoder, Encoder};
20-
pub use tokio_util::io::poll_read_buf;
21-
22-
pub use self::bcodec::BytesCodec;
23-
pub use self::framed::{Framed, FramedParts};
24-
pub use self::lines::LinesCodec;
24+
pub use self::{
25+
bcodec::BytesCodec,
26+
framed::{Framed, FramedParts},
27+
lines::LinesCodec,
28+
};

actix-codec/tests/test_framed_sink.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ impl AsyncWrite for Bilateral {
8181
other => Ready(other),
8282
}
8383
}
84-
fn poll_shutdown(
85-
self: Pin<&mut Self>,
86-
_cx: &mut Context<'_>,
87-
) -> Poll<Result<(), io::Error>> {
84+
fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> {
8885
unimplemented!()
8986
}
9087
}

actix-macros/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Unreleased - 2023-xx-xx
44

55
- Update `syn` dependency to `2`.
6-
- Minimum supported Rust version (MSRV) is now 1.60.
6+
- Minimum supported Rust version (MSRV) is now 1.65.
77

88
## 0.2.3 - 2021-10-19
99

0 commit comments

Comments
 (0)