Skip to content

Commit a61cffb

Browse files
committed
Update the MSRV to 1.66 and edition to 2021
Match what is required by `unicode-width` version 0.2.
1 parent 3caf9d0 commit a61cffb

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,4 @@ jobs:
4545
jq -r '.packages[] | select(.name == "getopts").rust_version'
4646
)"
4747
rustup update "$msrv" && rustup default "$msrv"
48-
- run: |
49-
cargo update -p unicode-width --precise 0.1.8
50-
cargo check
48+
- run: cargo check

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name = "getopts"
33
version = "0.2.22"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
6-
readme = "README.md"
76
repository = "https://github.com/rust-lang/getopts"
87
documentation = "https://doc.rust-lang.org/getopts"
98
homepage = "https://github.com/rust-lang/getopts"
109
description = """
1110
getopts-like option parsing.
1211
"""
1312
categories = ["command-line-interface"]
14-
edition = "2018"
15-
rust-version = "1.49"
13+
edition = "2021"
14+
rust-version = "1.66"
1615

1716
[dependencies]
1817
unicode-width = "0.1.5"
@@ -23,4 +22,4 @@ core = { version = "1.0", package = "rustc-std-workspace-core", optional = true
2322
log = "0.4"
2423

2524
[features]
26-
rustc-dep-of-std = ['unicode-width/rustc-dep-of-std', 'std', 'core']
25+
rustc-dep-of-std = ["unicode-width/rustc-dep-of-std", "std", "core"]

0 commit comments

Comments
 (0)