Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 36.0.1

Released 2025-08-20.

### Added

* Accessors for internal WASI-related contexts are added to
`wasmtime_wasi::WasiCtx` to account for refactorings that happened in this
release.
[#11473](https://github.com/bytecodealliance/wasmtime/pull/11473)

--------------------------------------------------------------------------------

## 36.0.0

Released 2025-08-20.
Expand Down
20 changes: 20 additions & 0 deletions crates/wasi/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,24 @@ impl WasiCtx {
pub fn builder() -> WasiCtxBuilder {
WasiCtxBuilder::new()
}

/// Returns access to the underlying [`WasiRandomCtx`].
pub fn random(&mut self) -> &mut WasiRandomCtx {
&mut self.random
}

/// Returns access to the underlying [`WasiClocksCtx`].
pub fn clocks(&mut self) -> &mut WasiClocksCtx {
&mut self.clocks
}

/// Returns access to the underlying [`WasiCliCtx`].
pub fn cli(&mut self) -> &mut WasiCliCtx {
&mut self.cli
}

/// Returns access to the underlying [`WasiSocketsCtx`].
pub fn sockets(&mut self) -> &mut WasiSocketsCtx {
&mut self.sockets
}
}
Loading