]> git.ipfire.org Git - thirdparty/git.git/commit
ci: verify minimum supported Rust version
authorPatrick Steinhardt <ps@pks.im>
Wed, 15 Oct 2025 06:04:09 +0000 (08:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2025 15:10:17 +0000 (08:10 -0700)
commit1b43384f41d8303324e8e6717dcf109e8846c214
tree81736980f9430cbfd7563b1c9e7e29b11ed792ff
parent4b44c46432744a4975432eabba16ad60cb39e089
ci: verify minimum supported Rust version

In the current state of our Rust code base we don't really have any
requirements for the minimum supported Rust version yet, as we don't use
any features introduced by a recent version of Rust. Consequently, we
have decided that we want to aim for a rather old version and edition of
Rust, where the hope is that using an old version will make alternatives
like gccrs viable earlier for compiling Git.

But while we specify the Rust edition, we don't yet specify a Rust
version. And even if we did, the Rust version would only be enforced for
our own code, but not for any of our dependencies.

We don't yet have any dependencies at the current point in time. But
let's add some safeguards by specifying the minimum supported Rust
version and using cargo-msrv(1) to verify that this version can be
satisfied for all of our dependencies.

Note that we fix the version of cargo-msrv(1) at v0.18.1. This is the
latest release supported by Ubuntu's Rust version.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Cargo.toml
ci/install-dependencies.sh
ci/run-rust-checks.sh