Skip to content

Commit 1bfb569

Browse files
committed
Set minimum Rust version to 1.77.0
Inform Clippy of our minimum supported Rust version, so it won't advise us to use #[expect] (which is too new). We don't support older Rust because of cargo:: syntax in build.rs: error: the `cargo::` syntax for build script output instructions was added in Rust 1.77.0, but the minimum supported Rust version of `git-interactive-rebase-tool v2.4.1 (/home/bgilbert/sw/git-interactive-rebase-tool)` is 1.56.0. Switch to the old `cargo:rustc-check-cfg=cfg(allow_unknown_lints)` syntax (note the single colon). See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.
1 parent 6957889 commit 1bfb569

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ include = [
2020
"/test"
2121
]
2222
edition = "2021"
23+
rust-version = "1.77.0"
2324

2425
[[bin]]
2526
name = "interactive-rebase-tool"

0 commit comments

Comments
 (0)