From a68f44a924c4dac120d12cf59f08a6c0863c6837 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Tue, 15 Mar 2022 01:11:02 +1100 Subject: [PATCH] Mention custom WasiCtx in 0.35.0 release notes (#3918) This is a follow-up to https://github.com/bytecodealliance/wasmtime/pull/3895, which landed after the release notes were written. --- RELEASES.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index 9b24a63ee9..cc094771e8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -17,6 +17,14 @@ Released 2022-03-09. Released 2022-03-07. +### Added + +* The `wasmtime_wasi::add_to_linker` function now allows providing + a context object of a custom type instead of `wasmtime_wasi::WasiCtx`, + as long as that type implements the required WASI snapshot traits. + This allows, for example, wrapping `WasiCtx` into a struct and providing + custom implementations for those traits to override the default behaviour. + ### Changed * WebAssembly tables of `funcref` values are now lazily initialized which can,