[PATCH 02/11] meson, cargo: require Rust 1.77.0

Paolo Bonzini posted 11 patches 7 months, 2 weeks ago
[PATCH 02/11] meson, cargo: require Rust 1.77.0
Posted by Paolo Bonzini 7 months, 2 weeks ago
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 meson.build      | 6 +++---
 rust/Cargo.toml  | 2 +-
 rust/clippy.toml | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/meson.build b/meson.build
index 8ae70dbe45a..e77da3f9b75 100644
--- a/meson.build
+++ b/meson.build
@@ -94,12 +94,12 @@ have_rust = have_rust and add_languages('rust', native: true,
     required: get_option('rust').disable_auto_if(not have_system))
 if have_rust
   rustc = meson.get_compiler('rust')
-  if rustc.version().version_compare('<1.63.0')
+  if rustc.version().version_compare('<1.77.0')
     if get_option('rust').enabled()
-      error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.63.0')
+      error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.77.0')
     else
       warning('rustc version ' + rustc.version() + ' is unsupported, disabling Rust compilation.')
-      message('Please upgrade to at least 1.63.0 to use Rust.')
+      message('Please upgrade to at least 1.77.0 to use Rust.')
       have_rust = false
     endif
   endif
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 5ace47c69be..eda7980b31a 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -12,7 +12,7 @@ edition = "2021"
 homepage = "https://www.qemu.org"
 license = "GPL-2.0-or-later"
 repository = "https://gitlab.com/qemu-project/qemu/"
-rust-version = "1.63.0"
+rust-version = "1.77.0"
 
 [workspace.lints.rust]
 unexpected_cfgs = { level = "deny", check-cfg = [
diff --git a/rust/clippy.toml b/rust/clippy.toml
index 5d190f91dec..933e46a2ffb 100644
--- a/rust/clippy.toml
+++ b/rust/clippy.toml
@@ -1,2 +1,2 @@
 doc-valid-idents = ["PrimeCell", ".."]
-msrv = "1.63.0"
+msrv = "1.77.0"
-- 
2.49.0
Re: [PATCH 02/11] meson, cargo: require Rust 1.77.0
Posted by Zhao Liu 7 months, 2 weeks ago
On Mon, May 05, 2025 at 11:04:27AM +0200, Paolo Bonzini wrote:
> Date: Mon,  5 May 2025 11:04:27 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH 02/11] meson, cargo: require Rust 1.77.0
> X-Mailer: git-send-email 2.49.0
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  meson.build      | 6 +++---
>  rust/Cargo.toml  | 2 +-
>  rust/clippy.toml | 2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Re: [PATCH 02/11] meson, cargo: require Rust 1.77.0
Posted by Manos Pitsidianakis 7 months, 2 weeks ago
On Mon, May 5, 2025 at 12:04 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  meson.build      | 6 +++---
>  rust/Cargo.toml  | 2 +-
>  rust/clippy.toml | 2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 8ae70dbe45a..e77da3f9b75 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -94,12 +94,12 @@ have_rust = have_rust and add_languages('rust', native: true,
>      required: get_option('rust').disable_auto_if(not have_system))
>  if have_rust
>    rustc = meson.get_compiler('rust')
> -  if rustc.version().version_compare('<1.63.0')
> +  if rustc.version().version_compare('<1.77.0')
>      if get_option('rust').enabled()
> -      error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.63.0')
> +      error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.77.0')
>      else
>        warning('rustc version ' + rustc.version() + ' is unsupported, disabling Rust compilation.')
> -      message('Please upgrade to at least 1.63.0 to use Rust.')
> +      message('Please upgrade to at least 1.77.0 to use Rust.')
>        have_rust = false
>      endif
>    endif
> diff --git a/rust/Cargo.toml b/rust/Cargo.toml
> index 5ace47c69be..eda7980b31a 100644
> --- a/rust/Cargo.toml
> +++ b/rust/Cargo.toml
> @@ -12,7 +12,7 @@ edition = "2021"
>  homepage = "https://www.qemu.org"
>  license = "GPL-2.0-or-later"
>  repository = "https://gitlab.com/qemu-project/qemu/"
> -rust-version = "1.63.0"
> +rust-version = "1.77.0"
>
>  [workspace.lints.rust]
>  unexpected_cfgs = { level = "deny", check-cfg = [
> diff --git a/rust/clippy.toml b/rust/clippy.toml
> index 5d190f91dec..933e46a2ffb 100644
> --- a/rust/clippy.toml
> +++ b/rust/clippy.toml
> @@ -1,2 +1,2 @@
>  doc-valid-idents = ["PrimeCell", ".."]
> -msrv = "1.63.0"
> +msrv = "1.77.0"
> --
> 2.49.0
>

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>