build: Rust: Bump minimum Meson and bindgen version

Meson 1.7.0 is required to ensure that generated bindings
are suitable for use with the selected Rust compiler.

Bindgen is bumped to 0.71.1 which has more permissive handling of
`--rust-target`, enabling (almost) any valid Rust version to be
passed as a target; `-nightly` and `-beta*` suffixes are an exception
to this.

This behaviour is expected to improve further with later versions of
Meson; upstream fixes have landed that:

 - pass a stripped version string to bindgen
 - additionally pass an appropriate `--rust-edition` if `rust_std` is
   set (or "nightly" if the compiler is `nightly`).

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12680
Bug: https://bugs.gentoo.org/946913
Signed-off-by: Matt Jolly <kangie@gentoo.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33725>
This commit is contained in:
Matt Jolly
2025-02-28 23:27:59 +10:00
committed by Marge Bot
parent c1440cd342
commit 1a698c75ae
4 changed files with 14 additions and 25 deletions

View File

@@ -8,7 +8,7 @@
uncollapsed_section_start bindgen "Building bindgen"
BINDGEN_VER=0.65.1
BINDGEN_VER=0.71.1
CBINDGEN_VER=0.26.0
# bindgen

View File

@@ -8,5 +8,5 @@
rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED
# We need at least 1.4.0 for rusticl
pip3 install 'meson==1.4.0'
# We need at least 1.7.0 for proper rust binding generation
pip3 install 'meson==1.7.0'