Skip to content

Commit

Permalink
update MSRV to 1.65 (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jul 2, 2023
1 parent 1072d0d commit 241da6e
Show file tree
Hide file tree
Showing 74 changed files with 202 additions and 166 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
version:
- 1.59.0 # MSRV
- 1.65.0 # MSRV
- stable

name: ${{ matrix.target.name }} / ${{ matrix.version }}
Expand All @@ -49,17 +49,9 @@ jobs:
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack

- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo install cargo-edit --version=0.8.0
cargo add const-str@0.3 --dev -p=actix-web
cargo add const-str@0.3 --dev -p=awc
- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo update -p=zstd-sys --precise=2.0.1+zstd.1.5.2
# - name: workaround MSRV issues
# if: matrix.version != 'stable'
# run: |

- name: check minimal
run: cargo ci-check-min
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/clippy-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
- uses: actions/checkout@v3

- uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
# temp: unpin once https://github.com/rust-lang/rust/issues/113152 is fixed
with: { toolchain: nightly-2023-06-28 }

- uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-public-api }
Expand Down
2 changes: 2 additions & 0 deletions actix-files/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased - 2023-xx-xx

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 0.6.3 - 2023-01-21

- XHTML files now use `Content-Disposition: inline` instead of `attachment`. [#2903]
Expand Down
2 changes: 1 addition & 1 deletion actix-files/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = "https://actix.rs"
repository = "https://github.com/actix/actix-web"
categories = ["asynchronous", "web-programming::http-server"]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"

[lib]
name = "actix_files"
Expand Down
4 changes: 2 additions & 2 deletions actix-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![crates.io](https://img.shields.io/crates/v/actix-files?label=latest)](https://crates.io/crates/actix-files)
[![Documentation](https://docs.rs/actix-files/badge.svg?version=0.6.3)](https://docs.rs/actix-files/0.6.3)
![Version](https://img.shields.io/badge/rustc-1.59+-ab6000.svg)
![Version](https://img.shields.io/badge/rustc-1.65+-ab6000.svg)
![License](https://img.shields.io/crates/l/actix-files.svg)
<br />
[![dependency status](https://deps.rs/crate/actix-files/0.6.3/status.svg)](https://deps.rs/crate/actix-files/0.6.3)
Expand All @@ -15,4 +15,4 @@

- [API Documentation](https://docs.rs/actix-files)
- [Example Project](https://github.com/actix/examples/tree/master/basics/static-files)
- Minimum Supported Rust Version (MSRV): 1.59
- Minimum Supported Rust Version (MSRV): 1.65
2 changes: 0 additions & 2 deletions actix-files/src/path_buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ impl FromRequest for PathBufWrap {

#[cfg(test)]
mod tests {
use std::iter::FromIterator;

use super::*;

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

## Unreleased - 2023-xx-xx

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 3.1.0 - 2023-01-21

- Minimum supported Rust version (MSRV) is now 1.59.
Expand Down
6 changes: 3 additions & 3 deletions actix-http-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = [
"web-programming::websocket",
]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
features = []
Expand Down Expand Up @@ -41,12 +41,12 @@ bytes = "1"
futures-core = { version = "0.3.17", default-features = false }
http = "0.2.7"
log = "0.4"
socket2 = "0.4"
socket2 = "0.5"
serde = "1"
serde_json = "1"
slab = "0.4"
serde_urlencoded = "0.7"
tls-openssl = { version = "0.10.9", package = "openssl", optional = true }
tls-openssl = { version = "0.10.55", package = "openssl", optional = true }
tokio = { version = "1.24.2", features = ["sync"] }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions actix-http-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![crates.io](https://img.shields.io/crates/v/actix-http-test?label=latest)](https://crates.io/crates/actix-http-test)
[![Documentation](https://docs.rs/actix-http-test/badge.svg?version=3.1.0)](https://docs.rs/actix-http-test/3.1.0)
![Version](https://img.shields.io/badge/rustc-1.59+-ab6000.svg)
![Version](https://img.shields.io/badge/rustc-1.65+-ab6000.svg)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-http-test)
<br>
[![Dependency Status](https://deps.rs/crate/actix-http-test/3.1.0/status.svg)](https://deps.rs/crate/actix-http-test/3.1.0)
Expand All @@ -14,4 +14,4 @@
## Documentation & Resources

- [API Documentation](https://docs.rs/actix-http-test)
- Minimum Supported Rust Version (MSRV): 1.59
- Minimum Supported Rust Version (MSRV): 1.65
4 changes: 4 additions & 0 deletions actix-http/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- Add `body::to_body_limit()` function.
- Add `body::BodyLimitExceeded` error type.

### Changed

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 3.3.1 - 2023-03-02

### Fixed
Expand Down
12 changes: 6 additions & 6 deletions actix-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ categories = [
"web-programming::websocket",
]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
# features that docs.rs will build with
Expand Down Expand Up @@ -105,20 +105,20 @@ actix-tls = { version = "3", features = ["openssl"] }
actix-web = "4"

async-stream = "0.3"
criterion = { version = "0.4", features = ["html_reports"] }
env_logger = "0.9"
criterion = { version = "0.5", features = ["html_reports"] }
env_logger = "0.10"
futures-util = { version = "0.3.17", default-features = false, features = ["alloc"] }
memchr = "2.4"
once_cell = "1.9"
rcgen = "0.9"
rcgen = "0.11"
regex = "1.3"
rustversion = "1"
rustls-pemfile = "1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
static_assertions = "1"
tls-openssl = { package = "openssl", version = "0.10.9" }
tls-rustls = { package = "rustls", version = "0.20.0" }
tls-openssl = { package = "openssl", version = "0.10.55" }
tls-rustls = { package = "rustls", version = "0.20" }
tokio = { version = "1.24.2", features = ["net", "rt", "macros"] }

[[example]]
Expand Down
4 changes: 2 additions & 2 deletions actix-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![crates.io](https://img.shields.io/crates/v/actix-http?label=latest)](https://crates.io/crates/actix-http)
[![Documentation](https://docs.rs/actix-http/badge.svg?version=3.3.1)](https://docs.rs/actix-http/3.3.1)
![Version](https://img.shields.io/badge/rustc-1.59+-ab6000.svg)
![Version](https://img.shields.io/badge/rustc-1.65+-ab6000.svg)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-http.svg)
<br />
[![dependency status](https://deps.rs/crate/actix-http/3.3.1/status.svg)](https://deps.rs/crate/actix-http/3.3.1)
Expand All @@ -14,7 +14,7 @@
## Documentation & Resources

- [API Documentation](https://docs.rs/actix-http)
- Minimum Supported Rust Version (MSRV): 1.59
- Minimum Supported Rust Version (MSRV): 1.65

## Example

Expand Down
1 change: 0 additions & 1 deletion actix-http/src/body/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ impl MessageBody for BoxBody {

#[cfg(test)]
mod tests {

use static_assertions::{assert_impl_all, assert_not_impl_any};

use super::*;
Expand Down
2 changes: 1 addition & 1 deletion actix-http/src/h1/decoder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{convert::TryFrom, io, marker::PhantomData, mem::MaybeUninit, task::Poll};
use std::{io, marker::PhantomData, mem::MaybeUninit, task::Poll};

use actix_codec::Decoder;
use bytes::{Bytes, BytesMut};
Expand Down
1 change: 0 additions & 1 deletion actix-http/src/h1/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ mod openssl {

#[cfg(feature = "rustls")]
mod rustls {

use std::io;

use actix_service::ServiceFactoryExt as _;
Expand Down
2 changes: 0 additions & 2 deletions actix-http/src/header/into_pair.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! [`TryIntoHeaderPair`] trait and implementations.

use std::convert::TryFrom as _;

use super::{
Header, HeaderName, HeaderValue, InvalidHeaderName, InvalidHeaderValue, TryIntoHeaderValue,
};
Expand Down
2 changes: 0 additions & 2 deletions actix-http/src/header/into_value.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! [`TryIntoHeaderValue`] trait and implementations.

use std::convert::TryFrom as _;

use bytes::Bytes;
use http::{header::InvalidHeaderValue, Error as HttpError, HeaderValue};
use mime::Mime;
Expand Down
2 changes: 1 addition & 1 deletion actix-http/src/header/shared/content_encoding.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{convert::TryFrom, str::FromStr};
use std::str::FromStr;

use derive_more::{Display, Error};
use http::header::InvalidHeaderValue;
Expand Down
5 changes: 1 addition & 4 deletions actix-http/src/header/shared/quality.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
convert::{TryFrom, TryInto},
fmt,
};
use std::fmt;

use derive_more::{Display, Error};

Expand Down
2 changes: 1 addition & 1 deletion actix-http/src/header/shared/quality_item.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{cmp, convert::TryFrom as _, fmt, str};
use std::{cmp, fmt, str};

use crate::error::ParseError;

Expand Down
1 change: 0 additions & 1 deletion actix-http/src/requests/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ impl<P> fmt::Debug for Request<P> {
#[cfg(test)]
mod tests {
use super::*;
use std::convert::TryFrom;

#[test]
fn test_basics() {
Expand Down
6 changes: 3 additions & 3 deletions actix-http/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ use crate::{
///
/// # Automatic HTTP Version Selection
/// There are two ways to select the HTTP version of an incoming connection:
/// - One is to rely on the ALPN information that is provided when using a TLS (HTTPS); both
/// versions are supported automatically when using either of the `.rustls()` or `.openssl()`
/// finalizing methods.
/// - One is to rely on the ALPN information that is provided when using TLS (HTTPS); both versions
/// are supported automatically when using either of the `.rustls()` or `.openssl()` finalizing
/// methods.
/// - The other is to read the first few bytes of the TCP stream. This is the only viable approach
/// for supporting H2C, which allows the HTTP/2 protocol to work over plaintext connections. Use
/// the `.tcp_auto_h2c()` finalizing method to enable this behavior.
Expand Down
1 change: 0 additions & 1 deletion actix-http/src/ws/frame.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::cmp::min;
use std::convert::TryFrom;

use bytes::{Buf, BufMut, BytesMut};
use tracing::debug;
Expand Down
2 changes: 1 addition & 1 deletion actix-http/tests/test_rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
extern crate tls_rustls as rustls;

use std::{
convert::{Infallible, TryFrom},
convert::Infallible,
io::{self, BufReader, Write},
net::{SocketAddr, TcpStream as StdTcpStream},
sync::Arc,
Expand Down
4 changes: 4 additions & 0 deletions actix-multipart-derive/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## Unreleased

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 0.6.0 - 2023-02-26

- Add `MultipartForm` derive macro.
2 changes: 1 addition & 1 deletion actix-multipart-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["http", "web", "framework", "async", "futures"]
homepage = "https://actix.rs"
repository = "https://github.com/actix/actix-web.git"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
Expand Down
4 changes: 2 additions & 2 deletions actix-multipart-derive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![crates.io](https://img.shields.io/crates/v/actix-multipart-derive?label=latest)](https://crates.io/crates/actix-multipart-derive)
[![Documentation](https://docs.rs/actix-multipart-derive/badge.svg?version=0.5.0)](https://docs.rs/actix-multipart-derive/0.5.0)
![Version](https://img.shields.io/badge/rustc-1.59+-ab6000.svg)
![Version](https://img.shields.io/badge/rustc-1.65+-ab6000.svg)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-multipart-derive.svg)
<br />
[![dependency status](https://deps.rs/crate/actix-multipart-derive/0.5.0/status.svg)](https://deps.rs/crate/actix-multipart-derive/0.5.0)
Expand All @@ -14,4 +14,4 @@
## Documentation & Resources

- [API Documentation](https://docs.rs/actix-multipart-derive)
- Minimum Supported Rust Version (MSRV): 1.59
- Minimum Supported Rust Version (MSRV): 1.65
2 changes: 1 addition & 1 deletion actix-multipart-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use std::{collections::HashSet, convert::TryFrom as _};
use std::collections::HashSet;

use darling::{FromDeriveInput, FromField, FromMeta};
use parse_size::parse_size;
Expand Down
2 changes: 1 addition & 1 deletion actix-multipart-derive/tests/trybuild.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[rustversion::stable(1.59)] // MSRV
#[rustversion::stable(1.65)] // MSRV
#[test]
fn compile_macros() {
let t = trybuild::TestCases::new();
Expand Down
2 changes: 2 additions & 0 deletions actix-multipart/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased - 2023-xx-xx

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 0.6.0 - 2023-02-26

- Added `MultipartForm` typed data extractor. [#2883]
Expand Down
2 changes: 1 addition & 1 deletion actix-multipart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["http", "web", "framework", "async", "futures"]
homepage = "https://actix.rs"
repository = "https://github.com/actix/actix-web.git"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
Expand Down
4 changes: 2 additions & 2 deletions actix-multipart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![crates.io](https://img.shields.io/crates/v/actix-multipart?label=latest)](https://crates.io/crates/actix-multipart)
[![Documentation](https://docs.rs/actix-multipart/badge.svg?version=0.6.0)](https://docs.rs/actix-multipart/0.6.0)
![Version](https://img.shields.io/badge/rustc-1.59+-ab6000.svg)
![Version](https://img.shields.io/badge/rustc-1.65+-ab6000.svg)
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-multipart.svg)
<br />
[![dependency status](https://deps.rs/crate/actix-multipart/0.6.0/status.svg)](https://deps.rs/crate/actix-multipart/0.6.0)
Expand All @@ -14,4 +14,4 @@
## Documentation & Resources

- [API Documentation](https://docs.rs/actix-multipart)
- Minimum Supported Rust Version (MSRV): 1.59
- Minimum Supported Rust Version (MSRV): 1.65
4 changes: 1 addition & 3 deletions actix-multipart/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

use std::{
cell::{Cell, RefCell, RefMut},
cmp,
convert::TryFrom,
fmt,
cmp, fmt,
marker::PhantomData,
pin::Pin,
rc::Rc,
Expand Down
2 changes: 2 additions & 0 deletions actix-router/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased - 2023-xx-xx

- Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency.

## 0.5.1 - 2022-09-19

- Correct typo in error string for `i32` deserialization. [#2876]
Expand Down
Loading

0 comments on commit 241da6e

Please sign in to comment.