Update Wasmtime to the 2024 Rust Edition (#10806)* Update Wasmtime to the 2024 Rust EditionNow that our MSRV supports the 2024 edition it's possible to make thisswitch. This commit moves Wasmtim
Update Wasmtime to the 2024 Rust Edition (#10806)* Update Wasmtime to the 2024 Rust EditionNow that our MSRV supports the 2024 edition it's possible to make thisswitch. This commit moves Wasmtime to the 2024 Edition to keepup-to-date with Rust idioms and access many of the edition featuresexclusive to the 2024 edition.prtest:full* Reformat with the 2024 edition
show more ...
pulley: Allow disabling SIMD in the interpreter at compile-time (#10727)This commit adds a new feature to Pulley which is used to reduce thecompiled code size of the interpreter itself by disablin
pulley: Allow disabling SIMD in the interpreter at compile-time (#10727)This commit adds a new feature to Pulley which is used to reduce thecompiled code size of the interpreter itself by disabling SIMD opcodeinterpretation at compile-time. The goal here is to be low-impact onPulley itself to avoid needing `#[cfg]` all over the place and toadditionally avoid the need to redesign Pulley's opcode macro for use invarious parts of Wasmtime.Methods are annotated with a custom macro in the interpreter whichregisters a `#[cfg]` that either does the listed implementation orswitches to an implementation that emits a trap if executed. This meansthat it's safe to execute mismatched code where SIMD was enabled atcompile time but disabled at runtime, it just means the semantics may bea bit surprising to debug.Note that this SIMD is still enabled by default, and an explicit `--cfg`via `RUSTFLAGS` is required to compile-out the SIMD support. Cargofeatures aren't a great fit for this sort of feature so an explicit flagis used.