Skip to content

Commit b314957

Browse files
authored
chore: bump proc-macro-crate to 3; bump MSRV to 1.67 (#274)
* Update proc-macro-crate. * Update CHANGELOG. * Bump checkout version. * Bump MSRV to 1.67.0. * PR feedback.
1 parent 2e6dad6 commit b314957

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

.github/workflows/rust.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
tests:
2121
strategy:
2222
matrix:
23-
rust_version: [1.66.0, stable]
23+
rust_version: [1.67.0, stable]
2424
runs-on: ubuntu-20.04
2525

2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030
- name: Install Rust toolchain
@@ -36,21 +36,14 @@ jobs:
3636
run: rustup default ${{ matrix.rust_version }}
3737
- name: print rustc version
3838
run: rustc --version
39-
# remove this step when MSRV >= 1.67.0
40-
- name: downgrade `toml_edit`, time`, `toml_datetime` crate to support older Rust toolchain
41-
if: matrix.rust_version == '1.66.0'
42-
run: |
43-
cargo update -p toml_edit --precise 0.20.2
44-
cargo update -p toml_datetime --precise 0.6.3
45-
cargo update -p time --precise 0.3.23
4639
- name: Run tests
4740
run: ./.github/test.sh
4841

4942
# remove this job when https://github.com/rust-lang/rust/issues/89554 stabilizes
5043
test_exhaustive_checks:
5144
runs-on: ubuntu-20.04
5245
steps:
53-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
5447
- name: Install nightly for exhaustive check tests
5548
uses: dtolnay/rust-toolchain@nightly
5649
# a failure on this check means, that some of `syn` crate's enums have been extended
@@ -64,15 +57,15 @@ jobs:
6457
runs-on: ubuntu-20.04
6558

6659
steps:
67-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v4
6861
- name: Run clippy
6962
run: cargo clippy --features unstable__schema --benches -- -D clippy::all
7063

7164
cargo-fmt:
7265
runs-on: ubuntu-20.04
7366

7467
steps:
75-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v4
7669
- name: Run cargo fmt
7770
run: cargo fmt --check
7871

@@ -83,7 +76,7 @@ jobs:
8376
runs-on: ubuntu-20.04
8477

8578
steps:
86-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v4
8780
- name: run cargo doc
8881
run: RUSTDOCFLAGS="-D warnings" cargo doc --features derive,unstable__schema
8982

@@ -93,7 +86,7 @@ jobs:
9386
if: github.ref == 'refs/heads/master'
9487
steps:
9588
- name: Checkout repository
96-
uses: actions/checkout@v3
89+
uses: actions/checkout@v4
9790
with:
9891
fetch-depth: 0
9992
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ members = ["borsh", "borsh-derive", "fuzz/fuzz-run", "benchmarks"]
44
[workspace.package]
55
# shared version of all public crates in the workspace
66
version = "1.3.0"
7-
rust-version = "1.66.0"
7+
rust-version = "1.67.0"

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Borsh in Rust   [![Latest Version]][crates.io] [![borsh: rustc 1.66+]][Rust 1.66] [![License Apache-2.0 badge]][License Apache-2.0] [![License MIT badge]][License MIT]
1+
# Borsh in Rust   [![Latest Version]][crates.io] [![borsh: rustc 1.67+]][Rust 1.67] [![License Apache-2.0 badge]][License Apache-2.0] [![License MIT badge]][License MIT]
22

33
[Borsh]: https://borsh.io
44
[Latest Version]: https://img.shields.io/crates/v/borsh.svg
55
[crates.io]: https://crates.io/crates/borsh
6-
[borsh: rustc 1.66+]: https://img.shields.io/badge/rustc-1.66+-lightgray.svg
7-
[Rust 1.66]: https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html
6+
[borsh: rustc 1.67+]: https://img.shields.io/badge/rustc-1.67+-lightgray.svg
7+
[Rust 1.67]: https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html
88
[License Apache-2.0 badge]: https://img.shields.io/badge/license-Apache2.0-blue.svg
99
[License Apache-2.0]: https://opensource.org/licenses/Apache-2.0
1010
[License MIT badge]: https://img.shields.io/badge/license-MIT-blue.svg

borsh-derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ proc-macro = true
1919

2020
[dependencies]
2121
syn = { version = "2", features = ["full", "fold"] }
22-
proc-macro-crate = "2"
22+
proc-macro-crate = "3"
2323
proc-macro2 = "1"
2424
quote = "1"
2525
once_cell = "1.18.0"

0 commit comments

Comments
 (0)