[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 35/40] rust: allow version 1.63.0 of rustc
From: |
Paolo Bonzini |
Subject: |
[PULL 35/40] rust: allow version 1.63.0 of rustc |
Date: |
Mon, 4 Nov 2024 18:27:14 +0100 |
All constructs introduced by newer versions of Rust have been removed.
Apart from Debian 12, all other supported Linux distributions have
rustc 1.75.0 or newer. This means that they only lack c"" literals
and stable offset_of!.
Tested-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index eb5660a0836..95b612e0b77 100644
--- a/meson.build
+++ b/meson.build
@@ -89,11 +89,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.80.0')
+ if rustc.version().version_compare('<1.63.0')
if get_option('rust').enabled()
- error('rustc version ' + rustc.version() + ' is unsupported: Please
upgrade to at least 1.80.0')
+ error('rustc version ' + rustc.version() + ' is unsupported. Please
upgrade to at least 1.63.0')
else
- warning('rustc version ' + rustc.version() + ' is unsupported: Disabling
Rust compilation. Please upgrade to at least 1.80.0 to use Rust.')
+ warning('rustc version ' + rustc.version() + ' is unsupported, disabling
Rust compilation.')
+ message('Please upgrade to at least 1.63.0 to use Rust.')
have_rust = false
endif
endif
--
2.47.0
- [PULL 26/40] rust: fix cfgs of proc-macro2 for 1.63.0, (continued)
- [PULL 26/40] rust: fix cfgs of proc-macro2 for 1.63.0, Paolo Bonzini, 2024/11/04
- [PULL 30/40] rust: synchronize dependencies between subprojects and Cargo.lock, Paolo Bonzini, 2024/11/04
- [PULL 29/40] rust: silence unknown warnings for the sake of old compilers, Paolo Bonzini, 2024/11/04
- [PULL 31/40] rust: create a cargo workspace, Paolo Bonzini, 2024/11/04
- [PULL 33/40] rust: do not use MaybeUninit::zeroed(), Paolo Bonzini, 2024/11/04
- [PULL 32/40] rust: introduce alternative implementation of offset_of!, Paolo Bonzini, 2024/11/04
- [PULL 34/40] rust: clean up detection of the language, Paolo Bonzini, 2024/11/04
- [PULL 35/40] rust: allow version 1.63.0 of rustc,
Paolo Bonzini <=
- [PULL 36/40] rust: do not use --generate-cstr, Paolo Bonzini, 2024/11/04
- [PULL 38/40] rust: make rustfmt optional, Paolo Bonzini, 2024/11/04
- [PULL 37/40] rust: allow older version of bindgen, Paolo Bonzini, 2024/11/04
- [PULL 40/40] ci: enable rust in the Debian and Ubuntu system build job, Paolo Bonzini, 2024/11/04
- [PULL 39/40] dockerfiles: install bindgen from cargo on Ubuntu 22.04, Paolo Bonzini, 2024/11/04
- Re: [PULL 00/40] Rust changes for QEMU 9.2 soft freeze, Peter Maydell, 2024/11/06