Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit c3b6c9c

Browse files
authored
Merge pull request #169 from alexcrichton/merge-
Merge with upstream
2 parents 6b2a379 + 5f26832 commit c3b6c9c

1,228 files changed

Lines changed: 17403 additions & 8554 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/install-rust/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
msrv_range:
1010
description: 'Versions later-than-latest-Rust the MSRV supports'
1111
required: false
12-
default: '1'
12+
default: '2'
1313

1414
runs:
1515
using: composite
@@ -28,7 +28,7 @@ runs:
2828
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
2929
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
3030
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
31-
echo "version=nightly-2025-04-03" >> "$GITHUB_OUTPUT"
31+
echo "version=nightly-2025-05-16" >> "$GITHUB_OUTPUT"
3232
else
3333
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
3434
fi

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,15 @@ jobs:
812812
if: matrix.filter == 'linux-x64' && contains(matrix.bucket, 'wasmtime-cli')
813813
uses: abrown/install-vtune-action@v1
814814

815-
# Build and test all features
816-
- run: ./ci/run-tests.sh --locked ${{ matrix.bucket }}
815+
# Build and test all features.
816+
#
817+
# Note that this uses a different shell, notably not `bash` on Windows. In
818+
# the past `bash` would add more items to `PATH` on Windows which would
819+
# interfere and cause the `gcc.exe` executable to fail and exit with 1 and
820+
# no output. It's believed that `bash` adds things like `/usr/bin` to PATH
821+
# which is the wrong DLL or something like that.
822+
- run: python3 ./ci/run-tests.py --locked ${{ matrix.bucket }}
823+
shell: pwsh
817824

818825
# common logic to cancel the entire run if this job fails
819826
- uses: ./.github/actions/cancel-on-failure

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ exclude = [
173173
[workspace.package]
174174
version = "34.0.0"
175175
authors = ["The Wasmtime Project Developers"]
176-
edition = "2021"
176+
edition = "2024"
177177
# Wasmtime's current policy is that this number can be no larger than the
178178
# current stable release of Rust minus 2.
179179
rust-version = "1.85.0"
@@ -187,19 +187,6 @@ unused_import_braces = 'warn'
187187
unused-lifetimes = 'warn'
188188
unused-macro-rules = 'warn'
189189

190-
# Lints that are part of the `rust-2024-compatibility` group. This group is a
191-
# bit too noisy to enable wholesale but some selective items are ones we want to
192-
# opt-in to.
193-
keyword_idents_2024 = 'warn'
194-
unsafe-attr-outside-unsafe = 'warn'
195-
deprecated-safe-2024 = 'warn'
196-
rust-2024-guarded-string-incompatible-syntax = 'warn'
197-
rust-2024-prelude-collisions = 'warn'
198-
rust-2024-incompatible-pat = 'warn'
199-
missing-unsafe-on-extern = 'warn'
200-
impl-trait-overcaptures = 'warn'
201-
unsafe-op-in-unsafe-fn = 'warn'
202-
203190
# Don't warn about unknown cfgs for pulley
204191
[workspace.lints.rust.unexpected_cfgs]
205192
level = "warn"
@@ -292,7 +279,7 @@ byte-array-literals = { path = "crates/wasi-preview1-component-adapter/byte-arra
292279

293280
# Bytecode Alliance maintained dependencies:
294281
# ---------------------------
295-
regalloc2 = "0.12.1"
282+
regalloc2 = "0.12.2"
296283

297284
# cap-std family:
298285
target-lexicon = "0.13.0"
@@ -309,8 +296,8 @@ io-extras = "0.18.1"
309296
rustix = "1.0.3"
310297
# wit-bindgen:
311298
wit-bindgen = { version = "0.42.1", default-features = false }
312-
wit-bindgen-rust-macro = { version = "0.42.1", default-features = false }
313299
wit-bindgen-rt = { version = "0.42.1", default-features = false }
300+
wit-bindgen-rust-macro = { version = "0.42.1", default-features = false }
314301

315302
# wasm-tools family:
316303
wasmparser = { version = "0.230.0", default-features = false, features = ['simd'] }

benches/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use criterion::measurement::WallTime;
2-
use criterion::{criterion_group, criterion_main, BenchmarkGroup, Criterion};
2+
use criterion::{BenchmarkGroup, Criterion, criterion_group, criterion_main};
33
use std::fmt::Debug;
44
use std::future::Future;
55
use std::pin::Pin;

benches/instantiation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use anyhow::Result;
2-
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
2+
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
33
use std::cell::LazyCell;
44
use std::path::Path;
55
use std::process::Command;
6-
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::SeqCst};
76
use std::sync::Arc;
7+
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering::SeqCst};
88
use std::thread;
9-
use wasi_common::{sync::WasiCtxBuilder, WasiCtx};
9+
use wasi_common::{WasiCtx, sync::WasiCtxBuilder};
1010
use wasmtime::*;
1111

1212
fn store(engine: &Engine) -> Store<WasiCtx> {

benches/thread_eager_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use criterion::{criterion_group, criterion_main, Criterion};
1+
use criterion::{Criterion, criterion_group, criterion_main};
22
use std::thread;
33
use std::time::{Duration, Instant};
44
use wasmtime::*;

benches/wasi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Measure some common WASI call scenarios.
22
3-
use criterion::{criterion_group, criterion_main, Criterion};
3+
use criterion::{Criterion, criterion_group, criterion_main};
44
use std::{fs::File, path::Path, time::Instant};
5-
use wasi_common::{sync::WasiCtxBuilder, WasiCtx};
5+
use wasi_common::{WasiCtx, sync::WasiCtxBuilder};
66
use wasmtime::{Engine, Linker, Module, Store, TypedFunc};
77

88
criterion_group!(benches, bench_wasi);

ci/build-test-matrix.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ const FULL_MATRIX = [
9595
"name": "Test Windows MSVC x86_64",
9696
"filter": "windows-x64",
9797
},
98-
// FIXME: As of this writing, some of the GitHub images have a broken MinGW,
99-
// leading CI to fail nondeterministically.
100-
// {
101-
// "os": windows,
102-
// "target": "x86_64-pc-windows-gnu",
103-
// "name": "Test Windows MinGW x86_64",
104-
// "filter": "mingw-x64"
105-
// },
98+
{
99+
"os": windows,
100+
"target": "x86_64-pc-windows-gnu",
101+
"name": "Test Windows MinGW x86_64",
102+
"filter": "mingw-x64"
103+
},
106104
{
107105
"os": ubuntu + '-arm',
108106
"target": "aarch64-unknown-linux-gnu",
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env python3
22

33
# Excludes:
44
#
@@ -15,12 +15,16 @@
1515
#
1616
# - veri_engine: requires an SMT solver (z3)
1717

18-
cargo test \
19-
--workspace \
20-
--all-features \
21-
--exclude test-programs \
22-
--exclude wasmtime-wasi-nn \
23-
--exclude wasmtime-fuzzing \
24-
--exclude wasm-spec-interpreter \
25-
--exclude veri_engine \
26-
$@
18+
import subprocess
19+
import sys
20+
21+
args = ['cargo', 'test', '--workspace', '--all-features']
22+
args.append('--exclude=test-programs')
23+
args.append('--exclude=wasmtime-wasi-nn')
24+
args.append('--exclude=wasmtime-fuzzing')
25+
args.append('--exclude=wasm-spec-interpreter')
26+
args.append('--exclude=veri_engine')
27+
args.extend(sys.argv[1:])
28+
29+
result = subprocess.run(args)
30+
sys.exit(result.returncode)

0 commit comments

Comments
 (0)