Skip to content

Commit

Permalink
Make try_memory public
Browse files Browse the repository at this point in the history
I found now way to access the memory of a rust wasm file compiled with cargo wasix build

i just locally made this public and it did work without any issues
  • Loading branch information
Outfluencer authored and theduke committed Jan 8, 2025
1 parent 1d03406 commit b405c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wasix/src/state/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ impl WasiEnv {

/// Providers safe access to the memory
/// (it must be initialized before it can be used)
pub(crate) fn try_memory(&self) -> Option<WasiInstanceGuardMemory<'_>> {
pub fn try_memory(&self) -> Option<WasiInstanceGuardMemory<'_>> {
self.try_inner().map(|i| i.memory())
}

Expand Down

0 comments on commit b405c52

Please sign in to comment.