Skip to content

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

Bump MSRV to 1.95.0 (#13853)

Alex Crichtonada3f5983004
diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml
index 7be1e2351c..5c72d6026f 100644
--- a/.github/actions/install-rust/action.yml
+++ b/.github/actions/install-rust/action.yml
@@ -32,13 +32,13 @@ runs:
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
- echo "version=nightly-2026-06-03" >> "$GITHUB_OUTPUT"
+ echo "version=nightly-2026-07-09" >> "$GITHUB_OUTPUT"
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-oss-fuzz-pin" ]; then
# Do not change this number unless OSS-Fuzz has updated. If you update
# this version and do not update OSS-Fuzz then you will break our
# fuzzer build. Update OSS-Fuzz first, wait for that, then land the PR
# in Wasmtime that needs to update this.
- echo "version=nightly-2026-01-28" >> "$GITHUB_OUTPUT"
+ echo "version=nightly-2026-07-09" >> "$GITHUB_OUTPUT"
else
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
fi
diff --git a/Cargo.toml b/Cargo.toml
index ff504efa3d..bc68721d5a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -209,7 +209,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.94.0"
+rust-version = "1.95.0"
[workspace.lints.rust]
# Turn on some lints which are otherwise allow-by-default in rustc.
diff --git a/ci/build-build-matrix.js b/ci/build-build-matrix.js
index 9cefb2d18c..c3624159e7 100644
--- a/ci/build-build-matrix.js
+++ b/ci/build-build-matrix.js
@@ -44,12 +44,6 @@ const array = [
// On OSX all we need to do is configure our deployment target as old as
// possible. For now 10.12 is the limit.
"env": { "MACOSX_DEPLOYMENT_TARGET": "10.12" },
- // Similar to https://github.com/bytecodealliance/wasmtime/pull/12245, we
- // need to avoid a rustc bug that results in linker errors depending on the
- // order and division of code into CGUs. This is fixed on beta but not
- // stable yet. Once Rust 1.94 is released this configuration option can be
- // deleted to use stable by default.
- "rust": "beta-2026-01-20",
},
{
"build": "aarch64-macos",
diff --git a/cranelift/codegen/src/isa/aarch64/lower.rs b/cranelift/codegen/src/isa/aarch64/lower.rs
index 5a7887bcb6..e1caad2e1a 100644
--- a/cranelift/codegen/src/isa/aarch64/lower.rs
+++ b/cranelift/codegen/src/isa/aarch64/lower.rs
@@ -12,7 +12,6 @@ use crate::ir::condcodes::{FloatCC, IntCC};
use crate::ir::{Opcode, Value};
use crate::isa::aarch64::AArch64Backend;
use crate::isa::aarch64::inst::*;
-use crate::machinst::lower::*;
use crate::machinst::*;
pub mod isle;
diff --git a/cranelift/codegen/src/isa/pulley_shared/lower.rs b/cranelift/codegen/src/isa/pulley_shared/lower.rs
index 2039c7de8d..a634b50104 100644
--- a/cranelift/codegen/src/isa/pulley_shared/lower.rs
+++ b/cranelift/codegen/src/isa/pulley_shared/lower.rs
@@ -3,10 +3,7 @@
pub mod isle;
use super::{PulleyBackend, PulleyTargetKind, inst::*};
-use crate::{
- ir,
- machinst::{lower::*, *},
-};
+use crate::{ir, machinst::*};
impl<P> LowerBackend for PulleyBackend<P>
where
diff --git a/cranelift/codegen/src/isa/riscv64/lower.rs b/cranelift/codegen/src/isa/riscv64/lower.rs
index ae56a1de49..010ff0575c 100644
--- a/cranelift/codegen/src/isa/riscv64/lower.rs
+++ b/cranelift/codegen/src/isa/riscv64/lower.rs
@@ -2,7 +2,6 @@
use crate::ir::Inst as IRInst;
use crate::isa::riscv64::Riscv64Backend;
use crate::isa::riscv64::inst::*;
-use crate::machinst::lower::*;
use crate::machinst::*;
pub mod isle;
diff --git a/cranelift/codegen/src/isa/x64/abi.rs b/cranelift/codegen/src/isa/x64/abi.rs
index 7961044fb1..e847c23b2a 100644
--- a/cranelift/codegen/src/isa/x64/abi.rs
+++ b/cranelift/codegen/src/isa/x64/abi.rs
@@ -7,7 +7,6 @@ use crate::ir::{ExternalName, types::*};
use crate::isa;
use crate::isa::winch;
use crate::isa::{CallConv, unwind::UnwindInst, x64::inst::*, x64::settings as x64_settings};
-use crate::machinst::abi::*;
use crate::machinst::*;
use crate::settings;
use alloc::borrow::ToOwned;
diff --git a/cranelift/codegen/src/isa/x64/lower.rs b/cranelift/codegen/src/isa/x64/lower.rs
index 28a7f2ac3e..9905e8d674 100644
--- a/cranelift/codegen/src/isa/x64/lower.rs
+++ b/cranelift/codegen/src/isa/x64/lower.rs
@@ -10,7 +10,6 @@ use crate::isa::x64::abi::*;
use crate::isa::x64::inst::args::*;
use crate::isa::x64::inst::*;
use crate::isa::{CallConv, x64::X64Backend};
-use crate::machinst::lower::*;
use crate::machinst::*;
use crate::result::CodegenResult;
use crate::settings::Flags;
diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs
index f96ac01f12..0be8bd259b 100644
--- a/crates/fuzzing/src/oracles.rs
+++ b/crates/fuzzing/src/oracles.rs
@@ -127,7 +127,7 @@ impl StoreLimits {
if self
.0
.remaining_copy_allowance
- .fetch_update(SeqCst, SeqCst, |remaining| remaining.checked_sub(prev_size))
+ .try_update(SeqCst, SeqCst, |remaining| remaining.checked_sub(prev_size))
.is_err()
{
self.0.oom.store(true, SeqCst);
@@ -140,7 +140,7 @@ impl StoreLimits {
match self
.0
.remaining_memory
- .fetch_update(SeqCst, SeqCst, |remaining| remaining.checked_sub(amt))
+ .try_update(SeqCst, SeqCst, |remaining| remaining.checked_sub(amt))
{
Ok(_) => true,
Err(_) => {
diff --git a/crates/wasmtime/src/sync_nostd.rs b/crates/wasmtime/src/sync_nostd.rs
index e820bfa57d..a0fe267c26 100644
--- a/crates/wasmtime/src/sync_nostd.rs
+++ b/crates/wasmtime/src/sync_nostd.rs
@@ -268,7 +268,7 @@ mod panic_on_contention {
const READER_LIMIT: u32 = u32::MAX / 2;
match self
.state
- .fetch_update(Ordering::Acquire, Ordering::Acquire, |x| match x {
+ .try_update(Ordering::Acquire, Ordering::Acquire, |x| match x {
u32::MAX => None,
n => {
let next = n + 1;