Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Bump MSRV to Rust 1.91.0 (#12392)

Alex Crichtone4e9cabeb8b7
diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml
index 0a70b7dcf4..4d3d7cddfc 100644
--- a/.github/actions/install-rust/action.yml
+++ b/.github/actions/install-rust/action.yml
@@ -32,7 +32,7 @@ runs:
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
- echo "version=nightly-2025-12-15" >> "$GITHUB_OUTPUT"
+ echo "version=nightly-2026-01-22" >> "$GITHUB_OUTPUT"
else
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
fi
diff --git a/Cargo.toml b/Cargo.toml
index 932a7251a2..4d5d30807f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -192,7 +192,7 @@ authors = ["The Wasmtime Project Developers"]
edition = "2024"
# Wasmtime's current policy is that this number can be no larger than the
# current stable release of Rust minus 2.
-rust-version = "1.90.0"
+rust-version = "1.91.0"
[workspace.lints.rust]
# Turn on some lints which are otherwise allow-by-default in rustc.
diff --git a/ci/build-release-artifacts.sh b/ci/build-release-artifacts.sh
index fbbcb0f457..e6e0ca33aa 100755
--- a/ci/build-release-artifacts.sh
+++ b/ci/build-release-artifacts.sh
@@ -52,11 +52,10 @@ if [[ "$build" = *-min ]]; then
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO=true
build_std=-Zbuild-std=std,panic_abort
- build_std_features=-Zbuild-std-features=std_detect_dlsym_getauxval
- flags="$build_std $build_std_features --no-default-features --features disable-logging"
+ flags="$build_std --no-default-features --features disable-logging"
cmake_flags="-DWASMTIME_DISABLE_ALL_FEATURES=ON"
cmake_flags="$cmake_flags -DWASMTIME_FEATURE_DISABLE_LOGGING=ON"
- cmake_flags="$cmake_flags -DWASMTIME_USER_CARGO_BUILD_OPTIONS:LIST=$build_std;$build_std_features"
+ cmake_flags="$cmake_flags -DWASMTIME_USER_CARGO_BUILD_OPTIONS:LIST=$build_std"
else
# For release builds the CLI is built a bit more feature-ful than the Cargo
# defaults to provide artifacts that can do as much as possible.
diff --git a/crates/wasmtime/src/runtime/vm/mpk/pkru.rs b/crates/wasmtime/src/runtime/vm/mpk/pkru.rs
index 43751d9cd8..df901eb702 100644
--- a/crates/wasmtime/src/runtime/vm/mpk/pkru.rs
+++ b/crates/wasmtime/src/runtime/vm/mpk/pkru.rs
@@ -60,6 +60,10 @@ pub fn write(pkru: u32) {
/// only set on Intel CPUs, so this function also checks the `CPUID` vendor
/// string.
pub fn has_cpuid_bit_set() -> bool {
+ #[allow(
+ unused_unsafe,
+ reason = "rust is transitioning to `__cpuid` being a safe function"
+ )]
let result = unsafe { core::arch::x86_64::__cpuid(0x07) };
is_intel_cpu() && (result.ecx & 0b1000) != 0
}
@@ -69,6 +73,7 @@ pub fn has_cpuid_bit_set() -> bool {
pub fn is_intel_cpu() -> bool {
// To read the CPU vendor string, we pass 0 in EAX and read 12 ASCII bytes
// from EBX, EDX, and ECX (in that order).
+ #[allow(unused_unsafe, reason = "see above about __cpuid")]
let result = unsafe { core::arch::x86_64::__cpuid(0) };
// Then we check if the vendor string matches "GenuineIntel".
result.ebx == u32::from_le_bytes(*b"Genu")