File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ ## 36.0.1
2+
3+ Released 2025-08-20.
4+
5+ ### Added
6+
7+ * Accessors for internal WASI-related contexts are added to
8+ ` wasmtime_wasi::WasiCtx ` to account for refactorings that happened in this
9+ release.
10+ [ #11473 ] ( https://github.com/bytecodealliance/wasmtime/pull/11473 )
11+
12+ --------------------------------------------------------------------------------
13+
114## 36.0.0
215
316Released 2025-08-20.
Original file line number Diff line number Diff line change @@ -533,4 +533,24 @@ impl WasiCtx {
533533 pub fn builder ( ) -> WasiCtxBuilder {
534534 WasiCtxBuilder :: new ( )
535535 }
536+
537+ /// Returns access to the underlying [`WasiRandomCtx`].
538+ pub fn random ( & mut self ) -> & mut WasiRandomCtx {
539+ & mut self . random
540+ }
541+
542+ /// Returns access to the underlying [`WasiClocksCtx`].
543+ pub fn clocks ( & mut self ) -> & mut WasiClocksCtx {
544+ & mut self . clocks
545+ }
546+
547+ /// Returns access to the underlying [`WasiCliCtx`].
548+ pub fn cli ( & mut self ) -> & mut WasiCliCtx {
549+ & mut self . cli
550+ }
551+
552+ /// Returns access to the underlying [`WasiSocketsCtx`].
553+ pub fn sockets ( & mut self ) -> & mut WasiSocketsCtx {
554+ & mut self . sockets
555+ }
536556}
You can’t perform that action at this time.
0 commit comments