Skip to content

Commit 1d9a554

Browse files
authored
Merge pull request #5343 from epage/msrv
chore: Update MSRV to 1.74
2 parents 55b1f94 + 4b45d36 commit 1d9a554

File tree

8 files changed

+17
-18
lines changed

8 files changed

+17
-18
lines changed

.clippy.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
msrv = "1.70.0" # MSRV
1+
msrv = "1.74" # MSRV
22
warn-on-all-wildcard-imports = true
33
allow-expect-in-tests = true
44
allow-unwrap-in-tests = true

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
build: [msrv, wasm, wasm-wasi, debug, release]
8585
include:
8686
- build: msrv
87-
rust: 1.70.0 # MSRV
87+
rust: "1.74" # MSRV
8888
target: x86_64-unknown-linux-gnu
8989
features: full
9090
- build: wasm
@@ -129,7 +129,7 @@ jobs:
129129
- name: Install Rust
130130
uses: dtolnay/rust-toolchain@stable
131131
with:
132-
toolchain: "1.70" # MSRV
132+
toolchain: "1.74" # MSRV
133133
- uses: Swatinem/rust-cache@v2
134134
- name: UI Tests
135135
run: make test-ui-${{ matrix.features }}
@@ -154,7 +154,7 @@ jobs:
154154
- name: Install Rust
155155
uses: dtolnay/rust-toolchain@stable
156156
with:
157-
toolchain: 1.70.0 # MSRV
157+
toolchain: "1.74" # MSRV
158158
- uses: Swatinem/rust-cache@v2
159159
- name: Check documentation
160160
env:
@@ -185,7 +185,7 @@ jobs:
185185
- name: Install Rust
186186
uses: dtolnay/rust-toolchain@stable
187187
with:
188-
toolchain: "1.70" # MSRV
188+
toolchain: "1.74" # MSRV
189189
components: clippy
190190
- uses: Swatinem/rust-cache@v2
191191
- name: Lint (ultra-minimal)

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ members = [
1414
[workspace.package]
1515
license = "MIT OR Apache-2.0"
1616
edition = "2021"
17-
rust-version = "1.70.0" # MSRV
17+
rust-version = "1.74" # MSRV
1818
include = [
1919
"build.rs",
2020
"src/**/*",

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ifneq (${TOOLCHAIN_TARGET},)
1010
ARGS+=--target ${TOOLCHAIN_TARGET}
1111
endif
1212

13-
MSRV?=1.70
13+
MSRV?=1.74
1414

1515
_FEATURES = minimal default wasm full debug release
1616
_FEATURES_minimal = --no-default-features --features "std"

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
//! - Leverage feature flags to keep to one active branch
2727
//! - Being under [WG-CLI](https://github.com/rust-cli/team/) to increase the bus factor
2828
//! - We follow semver and will wait about 6-9 months between major breaking changes
29-
//! - We will support the last two minor Rust releases (MSRV, currently 1.70.0)
29+
//! - We will support the last two minor Rust releases (MSRV, currently 1.74)
3030
//!
3131
//! While these aspirations can be at odds with fast build times and low binary
3232
//! size, we will still strive to keep these reasonable for the flexibility you

tests/derive_ui.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// option. This file may not be copied, modified, or distributed
77

88
#[cfg(feature = "derive")]
9-
#[rustversion::attr(any(not(stable), before(1.70), since(1.71)), ignore)] // MSRV
9+
#[rustversion::attr(any(not(stable), before(1.74), since(1.75)), ignore)] // MSRV
1010
#[test]
1111
fn ui() {
1212
let t = trybuild::TestCases::new();
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied
2-
--> tests/derive_ui/flatten_enum_in_struct.rs:3:15
2+
--> tests/derive_ui/flatten_enum_in_struct.rs:4:10
33
|
4-
3 | #[command(flatten)]
5-
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
4+
4 | sub: SubCmd,
5+
| ^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
66
|
77
= help: the following other types implement trait `clap::Args`:
8-
Box<T>
98
Opt
9+
Box<T>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
error[E0277]: the trait bound `SubCmd: Subcommand` is not satisfied
2-
--> tests/derive_ui/flatten_struct_in_enum.rs:1:10
2+
--> tests/derive_ui/flatten_struct_in_enum.rs:4:9
33
|
4-
1 | #[derive(clap::Parser)]
5-
| ^^^^^^^^^^^^ the trait `Subcommand` is not implemented for `SubCmd`
4+
4 | Sub(SubCmd),
5+
| ^^^^^^ the trait `Subcommand` is not implemented for `SubCmd`
66
|
77
= help: the following other types implement trait `Subcommand`:
8-
Box<T>
98
Opt
10-
= note: this error originates in the derive macro `clap::Parser` (in Nightly builds, run with -Z macro-backtrace for more info)
9+
Box<T>

0 commit comments

Comments
 (0)