Bump MSRV to 1.66

pull/779/head
Wilfred Hughes 2024-10-15 23:15:07 +07:00
parent 09c5e64f88
commit f58c9e074a
6 changed files with 18 additions and 17 deletions

@ -27,7 +27,7 @@ jobs:
- name: Install jq - name: Install jq
run: sudo apt-get install -y jq run: sudo apt-get install -y jq
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.66.0
- run: cargo doc - run: cargo doc
- name: Setup mdBook - name: Setup mdBook

@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.65.0 uses: dtolnay/rust-toolchain@1.66.0
with: with:
targets: ${{ matrix.job.target }} targets: ${{ matrix.job.target }}
@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.66.0
# This runs tests that rely on the MIME database being present. # This runs tests that rely on the MIME database being present.
- run: cargo test -- --ignored - run: cargo test -- --ignored
@ -83,7 +83,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.66.0
- name: Generate output for all sample files - name: Generate output for all sample files
run: ./sample_files/compare_all.sh run: ./sample_files/compare_all.sh
- name: Verify output is unchanged - name: Verify output is unchanged
@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.66.0
- run: cargo package --allow-dirty - run: cargo package --allow-dirty
fmt: fmt:
@ -102,7 +102,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.66.0
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check
actionlint: actionlint:

@ -9,6 +9,10 @@ version.**
Fixed a crash (introduced in 0.60) when the final line in a file does Fixed a crash (introduced in 0.60) when the final line in a file does
not have a trailing newline and occurs more than once in the file. not have a trailing newline and occurs more than once in the file.
### Build
difftastic now requires Rust 1.66 to build.
## 0.60 (released 1st August 2024) ## 0.60 (released 1st August 2024)
### Diffing ### Diffing

@ -9,16 +9,13 @@ authors = ["Wilfred Hughes <me@wilfred.me.uk>"]
keywords = ["diff", "syntax"] keywords = ["diff", "syntax"]
categories = ["development-tools", "command-line-utilities", "parser-implementations"] categories = ["development-tools", "command-line-utilities", "parser-implementations"]
edition = "2021" edition = "2021"
# Goal: support at least 12 months of Rust versions, and also the Rust # Goal: support at least 12 months of Rust versions, and be
# version on Debian stable (see https://tracker.debian.org/pkg/rustc, # conservative about upgrades to help packagers.
# currently 1.63).
# #
# Unfortunately tree-sitter 0.20.10 has an MSRV[1] of 1.65, and it has # For reference, Debian stable is on 1.63 (see
# a bugfix[2] we want. # https://tracker.debian.org/pkg/rustc) but Debian doesn't currently
# # package difftastic. Other distros are somewhat newer.
# 1: https://github.com/tree-sitter/tree-sitter/issues/2669 rust-version = "1.66.0"
# 2: https://github.com/Wilfred/difftastic/issues/570
rust-version = "1.65.0"
include = [ include = [
"/build.rs", "/build.rs",
"/src/", "/src/",

@ -4,7 +4,7 @@
Difftastic is written in Rust, so you will need Rust installed. I Difftastic is written in Rust, so you will need Rust installed. I
recommend [rustup](https://rustup.rs/) to install Rust. Difftastic recommend [rustup](https://rustup.rs/) to install Rust. Difftastic
requires Rust version 1.65 or later. requires Rust version 1.66 or later.
You will also need a C++ compiler that supports C++14. If you're using You will also need a C++ compiler that supports C++14. If you're using
GCC, you need at least version 8. GCC, you need at least version 8.

@ -1,4 +1,4 @@
[toolchain] [toolchain]
channel = "1.65" channel = "1.66"
components = ["rustfmt"] components = ["rustfmt"]
profile = "minimal" profile = "minimal"