Skip to content

Commit ed2d06e

Browse files
authored
Update to clap 4. (#2380)
* Update to clap 4. * Bump MSRV to minimum required by clap 4. * Mention clap update in CHANGELOG.
1 parent e6dd2c6 commit ed2d06e

File tree

8 files changed

+421
-251
lines changed

8 files changed

+421
-251
lines changed

.github/workflows/bindgen.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
profile: minimal
4949
# MSRV below is documented in Cargo.toml and README.md, please update those if you
5050
# change this.
51-
toolchain: 1.57.0
51+
toolchain: 1.60.0
5252
override: true
5353

5454
- name: Build with msrv
55-
run: rm Cargo.lock && cargo +1.57.0 build --lib
55+
run: rm Cargo.lock && cargo +1.60.0 build --lib
5656

5757
quickchecking:
5858
runs-on: ubuntu-latest

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@
160160
argument instead of a `&str`.
161161
* Updated the `clang-sys` crate version to 1.4.0 to support clang 15.
162162
* The return type is now ommited in signatures of functions returning `void`.
163-
163+
* Updated the `clap` dependency for `bindgen-cli` to 4.
164+
164165
## Removed
165166

166167
## Fixed

Cargo.lock

+134-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" {
3939

4040
## MSRV
4141

42-
The minimum supported Rust version is **1.57.0**.
42+
The minimum supported Rust version is **1.60.0**.
4343

4444
No MSRV bump policy has been established yet, so MSRV may increase in any release.
4545

bindgen-cli/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ homepage = "https://rust-lang.github.io/rust-bindgen/"
1414
version = "0.63.0"
1515
edition = "2018"
1616
# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
17-
rust-version = "1.57.0"
17+
rust-version = "1.60.0"
1818

1919
[[bin]]
2020
path = "main.rs"
@@ -23,7 +23,7 @@ name = "bindgen"
2323
[dependencies]
2424
bindgen = { path = "../bindgen", version = "=0.63.0" }
2525
shlex = "1"
26-
clap = "3"
26+
clap = "4"
2727
env_logger = { version = "0.9.0", optional = true }
2828
log = { version = "0.4", optional = true }
2929

0 commit comments

Comments
 (0)