From: Paolo Bonzini Date: Fri, 2 May 2025 21:36:11 +0000 (+0200) Subject: meson, cargo: require Rust 1.77.0 X-Git-Tag: v10.1.0-rc0~101^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0b2b74f70a85b16e9d4a9b6111e09956ae4cfd9;p=thirdparty%2Fqemu.git meson, cargo: require Rust 1.77.0 Reviewed-by: Manos Pitsidianakis Reviewed-by: Zhao Liu Signed-off-by: Paolo Bonzini --- diff --git a/meson.build b/meson.build index 6c61e1dcaec..8eb3de5d68d 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"