NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #1611 most downloaded on crates.io
High-level API to expose the Wasmtime runtime
Latest stable
50.0.1
Last release 16 days ago
05 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
239 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Fix a panic with host-defined tables/globals and concrete reference types. #11103
Released 2025-06-24.
Update to cap-std 3.4.1, for #9559, which fixes a wasi-filesystem sandbox escape on Windows. CVE-2024-51745.
Released 2024-11-05.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Released 2024-10-09.
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Fix a race condition could lead to WebAssembly control-flow integrity and type safety violations. GHSA-7qmx-3fpx-r45m
A new wasmtime_engine_clone function was added to the C API. #8907
Released 2024-08-20.
A new wasmtime_engine_clone function was added to the C API.
#8907
Wasmtime now has basic support for allocating a StructRef in the embedder
API.
#8933
The wasmtime run subcommand now support a --argv0 flag indicating the
value of the first element to arguments reported to wasm if it shouldn't be
the default of the wasm binary name itself.
#8961
Support for Winch on AArch64 continued to improve. #8921 #9018 #9033 #9051
An initial implementation of the wasi-runtime-config proposal was added to
Wasmtime.
#8950
#8970
#8981
Initial support for f16 and f128 in Cranelift continued to improve. #8893 #9045
More types in wasmtime-wasi-http implement the Debug trait.
#8979
The wasmtime explore subcommand now supports exploring CLIF too.
#8972
Support for SIMD in Winch has begun, but it is not complete yet. #8990 #9006
Initial work on Pulley, an interpreter for Wasmtime, has begun. #9008 #9013 #9014
The -Wunknown-imports-trap flag to wasmtime run now supports components.
#9021
An initial implementation of the wasi-keyvalue proposal was added to
Wasmtime.
#8983
#9032
#9050
#9062
An unsafe API has been added to unload process trap handlers.
#9022
The s390x backend now fully supports tail calls. #9052
The flags type in the component model now has a hard limit of 32-or-fewer
flags. For more information about this transition see
https://github.com/WebAssembly/component-model/issues/370.
#8882
Multiple returns for functions in the component model are now gated by default and are planned to be removed. #8965
TCP streams in WASIp2 will now immediately return StreamError::Closed when
the TCP stream is closed or shut down.
#8968
#9055
Cranelift will now perform constant propagation on some floating-point operations. #8954
Wasmtime and Cranelift now require at least Rust 1.78.0 to compile. #9010
The wasmtime::Val type now implements the Copy trait.
#9024
Wasmtime's wasi-nn implementation has been updated to track the upstream specification. #9056
Names provided to trappable_imports in bindgen! are now validated to be
used.
#9057
Support for multi-package *.wit files now requires a package ...; header
at the top of the file.
#9053
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Released 2024-10-09.
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Fix a race condition could lead to WebAssembly control-flow integrity and type safety violations. GHSA-7qmx-3fpx-r45m
Building the c-api from crates.io now correctly configures an include directory for header files with configured versions of header files. #9102
Fixed some issues when auto-publishing crates to crates.io. #8986
Support for DWARF debugging information with native debuggers is now implemented for components. #8693
Released 2024-07-22.
Support for DWARF debugging information with native debuggers is now implemented for components. #8693
CLIF frontends can now define their own stack maps. #8728 #8876
Wasmtime now supports the custom-page-sizes proposal. #8763
This project now publishes a crate named
wasi-preview1-component-adapter-provider which provides the WASIp1 adapters
as constants in Rust code.
#8874
Call hooks now have access to the full StoreContextMut<T>.
#8791
Call hooks have been moved behind an off-by-default compile-time Cargo feature
named call-hook.
#8795
#8808
Wasmtime's minimum supported Rust version is now 1.77.0. #8796
Resumable traps have been removed from Cranelift. #8809
Traps are not GC safepoints any more in Cranelift. #8810
Support for Intel memory protection keys is now disabled by default at compile time and is gated behind a Cargo feature. #8813
Exports from components have been refactored and redesigned to support skipping name lookups at runtime where possible. #8786
Wasmtime's lookup of versioned component exports now takes semver into account in the same manner as imports. #8830
Wasmtime's guest profiler will now take samples at hostcall boundaries. #8802
Wasmtime's pooling allocator now by default allows 32-bit linear memories to grow to their full size of 4G. #8849
The size of WASI adapter binaries has been optimized. #8858 #8859
The wasmtime-wasi-http crate has been refactored to better match the
wasmtime-wasi crate.
#8861
Support for caching call_indirect sites has been removed.
#8881
Wasmtime's x86_64 binary releases are now based on AlmaLinux 8 instead of CentOS 7. #8892
An issue with generated .debug_loc sections for native debuggers has been
fixed.
#8753
Wasmtime's no_std build for riscv64 has been fixed.
#8770
A bug related to lost Waker instances with async stdio streams has been
fixed.
#8782
Configuration of trappable_error_type has been improved in Wasmtime's
bindgen! macro.
#8833
Prints to stdout/stderr without a newline now work better with wasmtime serve.
#8877
An issue with br_if and stack-related state has been fixed in Winch.
#8886
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Released 2024-10-09.
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Fix a race condition could lead to WebAssembly control-flow integrity and type safety violations. GHSA-7qmx-3fpx-r45m
The CMake-based build of Wasmtime's C API now adds a WASMTIME_FASTEST_RUNTIME option which activates the "fastest-runtime" compilation profile which e
Released 2024-06-20.
The CMake-based build of Wasmtime's C API now adds a
WASMTIME_FASTEST_RUNTIME option which activates the "fastest-runtime"
compilation profile which enables LTO.
#8554
Cranelift supports more instructions in the RISC-V Zfa and ZiCond extensions. #8582 #8695
Support for fused-multiply-and-add on RISC-V has been improved. #8596 #8588
Release binaries for {aarch64,x86_64}-android have been added. Note that
Android is still a Tier 3 target.
#8601
Wasmtime now supports supertypes and finality in the type hierarchy for wasm gc. #8595
Lazy initialization of tables can now be tuned with a CLI flags and configuration option. #8531
Wasmtime now compiles for x86_64 OpenBSD. Note that this is a Tier 3 target and continued support is always appreciated. #8613
Stack slots in Cranelift can now specify custom alignment. #8635
Wasm function names are now used in compiled objects to assist with debugging and introspection with native tools. #8627
Wasmtime's release artifacts now includes wasmtime-platform.h for use with
no_std targets.
#8644
Release binaries for x86_64 Alpine Linux have been added. #8668
A new Component::define_unknown_imports_as_traps function has been added to
stub out functions in a component linker.
#8672
Wasmtime and Cranelift's now require Rust 1.76.0 to build. #8560
The wasi_config_preopen_dir function no longer always returns true in the
C API. Additionally wasi_config_set_env and wasi_config_set_argv may now
return an error.
#8572
Cranelift now updates registers of backend instructions in-place, simplifying register allocation and assignment. #8566 #8581 #8592 #8604 #8605
Wasmtime now attempts to batch memory decommits into one tight loop. #8581 #8590
Bindings generated with bindgen! now have generated GetHost traits and
add_to_linker_get_host functions which enable a more general means by which
to acquire host implementations from a store's T.
#8448
The wasmtime serve subcommand will now dynamically determine whether to use
the pooling allocator by default based on the system's available virtual
memory.
#8610
Implementations of Host traits in the wasmtime-wasi crate are now for
WasiImpl<T> instead of blanket impls for T.
#8609
#8766
The concepts of "virtual sp offset" and "nominal sp" have been removed from all Cranelift backends. #8631 #8643
The maximum size of linear memory in the pooling allocator is now specified in bytes instead of pages. #8628
Wasmtime no longer has two different host ABIs for host functions and instead
only has one. The "array" calling convention is now unconditionally used
instead of having a split between the "native" calling convention and the
"array" calling convention. This means that Func::new is now available even
when the cranelift feature is disabled.
#8629
#8646
Wasmtime's C API bindings for CMake have been refactored and now supports specifying Cargo features directly. Functions that are configured out are now also gated in header files. #8642
Wasmtime's C API can now be built without Cranelift or Winch. #8661
Wasmtime's release binaries have Winch compiled in by default now. #8660
The output of wasmtime explore now shows function names in addition to
indices.
#8639
Support for the Wasmtime 13-and-prior CLI has been removed. #8597
Wiggle-based borrow checking has been removed in favor of modeling host usage of guest memory with Rust-level borrows. #8702
Wasmtime's bindgen! macro will now generate the same hierarchy of
traits/types/modules even when the with module is used via new pub use
statements.
#8721
The WasiCtxBuilder::socket_addr_check function now takes an async closure.
#8715
The Func::wrapN_async functions and friends have all been consolidated into
a single function with a slightly different signature of taking a tuple of
arguments rather than "splatted" arguments.
#8732
Trampoline lookup for wasm gc functions that may use subtyping on the host to match a guest's desired type now no longer panics. #8579
The total size of arguments, environment variables, and preopens is now allowed to exceed 64k when using the wasip1 component adapter. #8594
Performing a zero-length read on file streams is now fixed in WASI.
#8611
Tail calls are now turned by default after a mistake was discovered in the previous releases's intent to enable them by default. #8682
Winch support for f64 comparison instructions has been fixed.
#8685
The SO_REUSEADDR option is reenabled for Unix platforms with wasmtime serve.
#8738
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Released 2024-10-09.
Fix a runtime crash when combining tail-calls with host imports that capture a stack trace or trap. GHSA-q8hx-mm92-4wvg
Fix a race condition could lead to WebAssembly control-flow integrity and type safety violations. GHSA-7qmx-3fpx-r45m
Fixed outgoing HTTP requests which don't explicitly specify a port. #8671
Released 2024-05-22.
The wasmtime explore subcommand now supports *.wat files. #8314
Released 2024-05-20.
The wasmtime explore subcommand now supports *.wat files.
#8314
Wasmtime now supports DWARF Fission *.dwp files.
#8055
The wasmtime crate now supports #![no_std], and more information about
this transition can be found in
#8341.
#8463
#8483
#8485
#8528
#8533
A Config knob is now available for one-entry call_indirect caching to
speed up modules with lots of call_indirect instructions.
#8509
Cranelift's riscv64 backend has initial support for the Zfa Extension. #8536
The WebAssembly tail-calls proposal is now enabled by default when using the
Cranelift backend, except for the s390x architecture.
#8540
Support for NaN canonicalization on x64 has been optimized to avoid branches. #8313
The bindgen! macro now defaults to assuming imports cannot trap, but this
behavior is configurable at macro-generation time.
#8310
The fd_{read,write} implementations in wasmtime-wasi have been optimized.
#8303
The wasmtime-wasi-http crate has been refactored and has improved
documentation.
#8332
#8347
Unused with parameters in bindgen! now generate an error.
#8371
The fd_read implementation in wasmtime-wasi now only reads into a single
iovec per call.
#8415
The wasmtime_val_t type in the C API no longer holds any allocations. This
type must still be manually managed to properly unroot values, however.
#8451
Add an optimized "sleep" path for poll_oneoff to wasmtime-wasi.
#8429
The Wasmtime-internal wasmtime-runtime crate has been removed.
#8501
The pooling allocator now allows twice as many elements as before. #8527
Using CMake to build the C API has been improved along a number of axes. #8490 #8497 #8549
Improve error in CMake for when Cargo is not found. #8497
Make the c-api CMakeLists.txt easier to import. #8496
Borrow-checking in wiggle has been optimized to not be as fine-grained any more. This is a breaking change if users are relying on the ability to safe…
Released 2024-04-22.
Support for shared WebAssembly memories has been added to the C API. #7940
A Component::component_type method has been added to reflect on the imports
and exports of a component.
#8078
The with key in bindgen! now supports remapping entire packages and
namespaces.
#8083
Winch now supports the component model by using Cranelift to generate trampolines. #8082 #8109
The WASI-NN backend now supports ONNX. #7691
The wasmtime CLI now has an -S inherit-env flag for inheriting the entire
process environment.
#8168
Winch now supports the WebAssembly memory64 proposal. #8194
Embedders can now opt-in to allowing wasmtime-wasi to block the current thread with file operations, for example. #8190
A wasmtime::CodeBuilder type has been added to refine the configuration of
compiling a Module or a Component.
#8181
The wasmtime serve subcommand now enables configuring preopened directories
and environment variables.
#8279
Support for WebAssembly GC is in the process of being implemented which has
required refactoring and reimplementing the existing gc support for
externref. Many APIs in this area has changed, see linked PRs for more
details. Note that the wasm_* parts of the C API no longer support
externref.
#8011
#8196
The wasmtime::component::Val type no longer stores type information and
instead must be interpreted in the context of a type.
#8062
The arguments required for ResourceAny::try_from_resource have been
simplified by refactoring the internal representation.
#8061
The arguments required for wasmtime::component::Linker::func_new have been
simplified by refactoring the internal representation.
#8070
The pooling allocator is now enabled by default with wasmtime serve.
#8073
The error message for missing imports in has been improved with components. #7645
Wasmtime's MSRV is now 1.75.0. #8205
Wasmtime's translation of table-related instructions has improved codegen in
some common cases, especially with call_indirect.
#8063
#8125
#8124
#8134
#8137
#8162
#8159
#8172
#8171
#8139
#8206
Book-based documentation has been reordered and refactored. #8130
The -S common flag is renamed to -S cli, to better reflect that it provides
the wasi-cli APIs. -S common is still accepted for now, and will be deprecated
in the future.
#8166
The tail-call calling convention now supports callee-saved registers to improve performance and allow enabling this WebAssembly proposal by default in the future. #8246
The wasmtime-wasi crate has been refactored to restructure some items and
documentation has been added for most items.
#8228
Support for the WebAssembly threads proposal is now gated by an
on-by-default Cargo feature named threads.
#8260
Borrow-checking in wiggle has been optimized to not be as fine-grained any
more. This is a breaking change if users are relying on the ability to safely
mutably borrow disjoint regions of memory.
#8277
Connection timeouts with wasi-http have been fixed.
#8085
Generating bindings with bindgen! now works correctly when some WIT types
are not used.
#8065
Errors in wasi-http are no longer accidentally returned as traps.
#8272
C API bindings now depend on wasmtime-wasi instead of wasi-common, and the
wasi_config_preopen_socket function is no longer available as a result.
#8066
Fix a panic when compiling invalid components. #8322
Fix a panic using tables with the wrong type. #8284
…via the c api, as it will be deprecated in 20.0.0. #8053
Released 2024-03-20.
C API bindings for the sampling-based profiler in Wasmtime have been added. #7854
Add the WasiP1Ctx to ease the use of wasmtime-wasi in place of wasi-common
#8053
The Winch compiler backend is now feature-complete for x64. Note that minor issues and fuzz bugs are still being addressed, but now's a good time to test if you're interested. #7894 #7909 #7927 #7932 #7949 #7974 #8001
The typed function references proposal to WebAssembly is now fully implemented. #7943
The component::Linker type is now "semver aware" in that it enables loading
components referring to past or future versions of interfaces so long as the
types are compatible.
#7994
Wasmtime can now be built for "custom platforms" which is intended for bare-metal builds. #7995
The wasmtime-wasi-nn crate now has a backend based on WinML.
#7807
The wasmtime CLI now has flags for configuring limits of the pooling
allocator.
#8027
The wasmtime serve command no longer binds its port with SO_REUSEADDR
meaning that if it is invoked twice only one will succeed.
#7863
The sampling-based profiler in Wasmtime now takes an explicit argument of the time delta between samples. #7873
Many accessors for type information now require an &Engine argument to be
specified in preparation for an implementation of wasm GC.
#7892
The host header is now forbidden in wasi-http.
#7905
Stronger type-checks are now performed for host-owned resources when interacting with the component model to help catch mistakes earlier. #7902
Demangling Rust and C/C++ symbols in WebAssembly modules is now done by default in the C API. #7962
Preview2-based APIs are now located at the root of the wasmtime_wasi crate
instead of a submodule.
#7933
Components now reserve index 0 for handle tables to match the component model specification. #7661
Support for externref has been moved behind a new gc Cargo feature. This
will also gate support for wasm gc in the future.
#7975
Require the WASMTIME_WASI_CONFIG_PREOPEN_SOCKET_ALLOW environment variable
to bet set to allow the use of wasi_config_preopen_socket via the c api, as
it will be deprecated in 20.0.0.
#8053
Fix bindgen! with trappable_error_type using unversioned/versioned packages. #8305
Fix inferring native flags when a compilation target is specified. https://github.com/bytecodealliance/wasmtime/pull/7991
Released 2024-03-12
Fix an egraph rule bug that was permitting an incorrect ireduce rewrite to unary and binary operations, leading to miscompilations. #8005
Released 2024-02-28.
ireduce rewrite to
unary and binary operations, leading to miscompilations.
#8005Fixed a mistake in the CI release process that caused the crates.io publication of the 18.0.0 release to not succeed. #7966
Released 2024-02-20.
Support for the old wasi-common crate and the original implementation of "WASIp1" aka "preview1" is being deprecated in the wasmtime-wasi crate. Users…
Released 2024-02-20.
The wasmtime-c-api-impl crate is now published on crates.io.
#7837
A new EngineWeak type enables holding a weak pointer to an engine with the
ability to dynamically and fallibly upgrade it to an Engine.
#7797
The WebAssembly tail calls proposal can now be enabled through the C API. #7811
The import and export types of a Component can now be inspected at runtime.
#7804
New APIs/types have been added to support a faster version of looking up
module exports without using string lookups with Module::get_export_index.
#7828
Owned resources represented with ResourceAny can now be passed as arguments
to functions that require a borrow<T> parameter.
#7783
Generated structures from wasmtime::component::bindgen! for exported
interfaces are now all renamed to Guest to avoid conflicting with WIT names.
#7794
Guest profiler output will now automatically demangle symbols. #7809
The wasmtime crate now has a runtime Cargo feature which, if disabled,
enables building Wasmtime with only the ability to compile WebAssembly
modules. This enables compiling Wasmtime's compilation infrastructure, for
example, to WebAssembly itself.
#7766
Support for the old wasi-common crate and the original implementation of
"WASIp1" aka "preview1" is being deprecated in the wasmtime-wasi crate.
Users should migrate to the wasmtime_wasi::preview2 implementation, which
supports both WASIp1 and WASIp2, as in the next release the
wasi-common-based reexports of wasmtime-wasi will be deleted.
#7881
cranelift: Include clobbers and outgoing args in stack limit. #8334
Released 2024-04-11
Fix an egraph rule bug that was permitting an incorrect ireduce rewrite to unary and binary operations, leading to miscompilations. #8005
Released 2024-02-28
ireduce rewrite to
unary and binary operations, leading to miscompilations.
#8005Fix an egraph elaboration fuzzbug that was allowing values with dependencies that shouldn't be duplicated to be chosen in a context that would make th
The major feature of this release is that the WASI support in Wasmtime is now considered stable and flagged at an 0.2.0 version approved by the WASI s
Released 2024-01-25
The major feature of this release is that the WASI support in Wasmtime is now
considered stable and flagged at an 0.2.0 version approved by the WASI subgroup.
The release was delayed a few days to hold off until the WASI subgroup voted to
approve the CLI and HTTP worlds and they're now on-by-default! Additionally the
component model is now enabled by default in Wasmtime, for example an opt-in
flag is no longer required on the CLI. Note that embeddings still must opt-in to
using the component model by using the wasmtime::component module.
Cranelift optimizations have been added for "3-way comparisons", or Ord::cmp
in Rust or <=> in C++.
#7636
#7702
Components now use Wasmtime's compilation cache used for core wasm modules by default. #7649
The Resource<T> and ResourceAny types can now be converted between each
other.
#7649
#7712
Minor changes have been made to a number of WITs as they progressed to their official 0.2.0 status. #7625 #7640 #7690 #7781 #7817
The component model is now enabled by default. #7821
The implementation of memory.atomic.{wait,notify} has been rewritten.
#7629
The wasmtime_wasi::preview2::Table type has been moved to
wasmtime::component::ResourceTable.
#7655
Creating a UDP stream now validates the address being sent to. #7648
Defining resource types in Linker<T> now takes the type to define as a
runtime parameter.
#7680
Socket address checks can now be performed dynamically at runtime. #7662
Wasmtime and Cranelift's MSRV is now 1.73.0. #7739
Bindings for WIT APIs where interfaces have multiple versions are now fixed by putting the version in the generated binding names. #7656
The preview1 fd_{read,write} APIs are now fixed when a shared memory is
used.
#7755
The preview1 fd_{read,write} APIs no longer leak an intermediate stream
created.
#7819
Add yielding support in wasmtime_store_epoch_deadline_callback in the C API. #7476
Released 2023-12-20.
Add yielding support in wasmtime_store_epoch_deadline_callback in the C API.
#7476
Support for the wasi_unstable module ("wasi preview0" canonically) has been
added to the -Spreview2 support in the CLI.
#7548
The original module can now be obtained from an "instance pre" in the C API. #7572
Usage of Mach ports on macOS can now be disabled in the C API. #7595
The preview1-to-preview2 component adapters now import a smaller number of interfaces by default. #7543 #7544
Wasmtime and Cranelift now require Rust 1.72.0 to build. #7554
The default world supported by wasmtime serve has been slimmed down to
exactly what wasi:http/proxy specifies by default. Support for other WASI
APIs can be included with the -S common command-line flag.
#7597
The wasmtime --version CLI output will now include date/commit information
when Wasmtime is built from a git checkout.
#7610
MPK support is now explicitly disabled on AMD-based CPUs since the implementation does not currently support it. #7513
Initialization of a WebAssembly data segment with a negative offset is fixed to zero-extend the offset instead of sign-extend. #7559
The reported offset of O_APPEND files in preview1 has been fixed.
#7586
MPK support does a better job of compacting memories to minimize virtual memory used. #7622
Union node bitpacking has been fixed with egraph optimizations to ensure the minimal cost node is selected. #7465
Equivalent-cost expressions now have ties broken with expression depth in egraphs to prefer "shallow" expression trees. #7456
Long-and-narrow chains of expressions are now optimized into shallow-and-wide trees. #7466
The wasi:random/insecure{,_seed} interfaces are now available through the CLI. #7614
Multiple versions of interfaces are now supported in bindgen!. #7172
Released 2023-11-20.
Multiple versions of interfaces are now supported in bindgen!.
#7172
Support for custom stack memory allocation has been added. #7209
The memory_init_cow setting can now be configured in the C API.
#7227
The splice method of WASI streams has been implemented.
#7234
Wasmtime binary releases now have a wasmtime-min executable in addition to
libwasmtime-min.* libraries for the C API. These showcase a minimal
build of Wasmtime for comparison.
#7282
#7315
#7350
Many changes to wasi:http WITs have happened to keep up with the proposal as
it prepares to reach a more stable status.
#7161
#7406
#7383
#7417
#7451
Add an error resource to WASI streams. #7152
Syntax in bindgen!'s trappable_error_type configuration has changed.
#7170
TCP errors in wasi:sockets have been simplified and clarified.
#7120
Wasmtime/Cranelift now require Rust 1.71.0 to compile. #7206
Logging in Wasmtime is now configured with WASMTIME_LOG instead of
RUST_LOG.
#7239
Fuel-related APIs on Store have been refactored and reimplemented with two
new methods set_fuel and reset_fuel. Previous methods have been removed.
#7240
#7298
The forward method of WASI streams has been removed.
#7234
The WebAssembly threads, multi-memory, and relaxed-simd proposals are
now enabled by default.
#7285
Logging is now implemented for wasmtime serve.
#7366
Filesystem locking has been temporarily removed from WASI. #7355
Wasmtime's implementation of WASI preview1 built on top of preview2
(-Spreview2) has been enabled by default.
#7365
The wasi:clocks interface now has two subscribe functions and a duration
type.
#7358
The wasi:io/poll interface has seen some refactoring.
#7427
Profiling the first function in a module now works. #7254
Consecutive writes to files in preview2 have been fixed. #7394
Copy-on-write initialization of linear memories has been fixed for components. #7459
Support for proof-carrying code has been added to Cranelift to assist with an extra layer of validation about properties such as WebAssembly memory accesses in the future. #7165 #7180 #7219 #7231 #7262 #7263 #7274 #7280 #7281 #7352 #7389 #7468
Rematerialization of values no longer accidentally overrides LICM. #7306
Inline stack probes no longer make Valgrind unhappy. #7470
Using the --dir argument combined with a ::-remapped path no longer prints a warning about compatibility with the old CLI and works with remapping. #7
The wasmtime executable will now attempt to more gracefully handle the transition from the 13.0.0 CLI arguments and parsing to the changes in 14.0.0.
Released 2023-10-29
The wasmtime executable will now attempt to more gracefully handle the
transition from the 13.0.0 CLI arguments and parsing to the changes in 14.0.0.
CLI commands should now warn if they no longer work with the new parser, but
still execute as they previously did. This behavior can be controlled via a
new WASMTIME_NEW_CLI environment variable if necessary.
#7385
The serve subcommand of the wasmtime CLI is now enabled by default for the
wasmtime executable.
#7392
Make the wasmtime::unix module accessible on macOS again. #7360
Cranelift: preserve uext and sext flags for parameters on x86\_64 and apple aarch64. Note that this does not affect Wasmtime and is only intended for
Released 2023-10-23
rustc_codegen_cranelift.
#7333One of the larger changes in this release is a redesign of Wasmtime's CLI arguments and where arguments are passed. This means that previous invocatio
Released 2023-10-20
One of the larger changes in this release is a redesign of Wasmtime's CLI
arguments and where arguments are passed. This means that previous invocations
of the wasmtime CLI executable will need to be updated. No functionality was
removed but most of it is behind new flags. One major change is that Wasmtime
CLI flags are now grouped behind short options like -O. For example
wasmtime run --opt-level 2 foo.wasm
is now:
wasmtime run -O opt-level=2 foo.wasm
Additionally options prefixed with --enable-* or --disable-* now
consistently are considered boolean setters. For example:
wasmtime run --disable-cache foo.wasm
is now:
wasmtime run -C cache=n foo.wasm
Options can be explored with wasmtime -C help for example, and wasmtime -h
will show all option groups that can be expanded.
Another major change in the CLI is that any CLI argument which positionally comes after the wasm file specified will be passed as an argument to the guest module. For example this invocations
wasmtime run foo.wasm --epoch-interruption
was previously accepted as enabling epoch interruption for the foo.wasm file.
This is now interpreted as if it were ./foo.wasm --epoch-interruption,
however, passing the flag to the wasm file itself. Flags to Wasmtime must now
come after Wasmtime's subcommand (in this case run) and before the wasm file
that's being run, for example:
wasmtime run -W epoch-interruption foo.wasm
More information about this change can be found on #6925 and #6946.
Added the wasmtime::FrameInfo::module method, which returns the
wasmtime::Module associated with the stack frame.
The wasmtime::component::Linker type now implements Clone.
#7032
Wasmtime's TypedFunc API now supports the v128 WebAssembly type on x86_64
and aarch64.
#7010
Support for resources exported from a WebAssembly guest has been added to the
component bindgen! macro.
#7050
The C API now supports learning about a module's image_range.
#7064
Passing values between components is now possible with a more complete implementation of type-checking of values. #7065
Types representing resources can now be customized with bindgen!.
#7069
Wasm-defined globals and memories are now included in core dumps, and the
wasmtime::WasmCoreDump type is now serializable.
#6935
#7078
Initial experimental support for Intel MPK has been added to support running more instances concurrently. #7072
The implementation of wasi:http now supports inbound requests in addition to
outbound requests. A new wasmtime serve command is an example way of
handling http requests with wasm files.
#7091
The C API now supports Wasmtime's "host memory creation" API to customize the allocation of linear memories. #7115
The C API now supports asynchronous invocation of WebAssembly programs. #7106
The C API now supports Wasmtime's InstancePre<T> type.
#7140
The wasi:sockets/ip-name-lookup interface is now implemented by Wasmtime.
#7109
Wasmtime's CLI has been significantly overhauled. See the note above. #6925 #6946
The wasmtime::FrameInfo::module_name has been removed, however you can now
get identical results by chaining wasmtime::FrameInfo::module and
wasmtime::Module::name: my_frame.module().name().
WASI interfaces have seen significant work since the previous release. Streams
for example have a new backpressure and flushing design. Additionally WIT
resources are now used ubiquitously throughout the specification and
implementation.
#6877
#7029
#7090
The implementation of wasi:http now uses {input,output}-stream from the
wasi:io/streams interface.
#7056
Lifting and lowering of the list<u8> component values has been significantly
optimized.
#6971
The wasmtime-c-api crate is now additionally built as an rlib as well as the
previous cdylib/staticlib combo.
#6765
Support referencing stack slots in the DWARF debug info. #6960
Printing unicode to stdio on Windows has been fixed. #6825
Building for x86_64-linux-android has been fixed. #7055
Fixed stdout/stderr becoming nonblocking by accident with WASI preview2 on macOS. #7058
Fixed some character boundary-related panics in the preview2 implementation of preview1. #7011
Fixed an issue of guests sleeping for an incorrect amount of time with preview2. #6993
Cranelift will now return an error when running out of temporaries in a very large function instead of panicking. #7114
Make the wasmtime::unix module accessible on macOS again. #7360
Configuration of mach ports vs signals on macOS is now done through a Config instead of at compile time. #6807
Released 2023-09-20
Configuration of mach ports vs signals on macOS is now done through a Config
instead of at compile time.
#6807
Engine::detect_precompiled{,_file} can be used to to determine whether some
bytes or a file look like a precompiled module or a component.
#6832
#6937
A new feature "wmemcheck" has been added to enable Valgrind-like detection of use-after-free within a WebAssembly guest module. #6820 #6856
The wasmtime CLI now supports executing components.
#6836
Support for WASI preview2's TCP sockets interface has been added. #6837
Wasmtime's implementation of the wasi-nn proposal now supports named models. #6854
The C API now supports configuring native_unwind_info,
dynamic_memory_reserved_for_growth, target, and Cranelift settings.
#6896
#6934
The wasmtime crate now has initial support for component model bindings
generation for the WIT resource type.
#6886
Cranelift's RISC-V backend now has a complete implementation of the WebAssembly SIMD proposal. Many thanks to Afonso Bordado for all their contributions! #6920 #6924
The bindgen! macro in the wasmtime crate now supports conditional
configuration for which imports should be async and which should be
synchronous.
#6942
The pooling allocator was significantly refactored and the
PoolingAllocationConfig has some minor breaking API changes that reflect
those changes.
Previously, the pooling allocator had count slots, and each slot had N
memories and M tables. Every allocated instance would reserve those N
memories and M tables regardless whether it actually needed them all or
not. This could lead to some waste and over-allocation when a module used less
memories and tables than the pooling allocator's configured maximums.
After the refactors in this release, the pooling allocator doesn't have one-size-fits-all slots anymore. Instead, memories and tables are in separate pools that can be allocated from independently, and we allocate exactly as many memories and tables as are necessary for the instance being allocated.
To preserve your old configuration with the new methods you can do the following:
let mut config = PoolingAllocationConfig::default();
// If you used to have this old, no-longer-compiling configuration:
config.count(count);
config.instance_memories(n);
config.instance_tables(m);
// You can use these equivalent settings for the new config methods:
config.total_core_instances(count);
config.total_stacks(count); // If using the `async` feature.
config.total_memories(count * n);
config.max_memories_per_module(n);
config.total_tables(count * m);
config.max_tables_per_module(m);
There are additionally a variety of methods to limit the maximum amount of resources a single core Wasm or component instance can take from the pool:
PoolingAllocationConfig::max_memories_per_modulePoolingAllocationConfig::max_tables_per_modulePoolingAllocationConfig::max_memories_per_componentPoolingAllocationConfig::max_tables_per_componentPoolingAllocationConfig::max_core_instances_per_componentThese methods do not affect the size of the pre-allocated pool. #6835
Builder methods for WASI contexts now use &mut self instead of self.
#6770
Native unwinding information is now properly disabled when it is configured to be turned off. #6547
Wasmtime's minimum supported Rust version (MSRV) is now 1.70.0. Wasmtime's MSRV policy of supporting the last three releases of Rust (N-2) is now additionally documented. More discussion can additionally be found on the PR itself. #6900
Wasmtime's support for DWARF debugging information has seen some fixes for previously reported crashes. #6931
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.