Skip to content

Commit

Permalink
Allow setting wasm limits after instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Sep 25, 2024
1 parent 3a8b7d7 commit a47b70c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vm/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ where
})
}

/// Update the limits for Wasm module validation
pub fn set_wasm_limits(&mut self, limits: WasmLimits) {
self.wasm_limits = limits;
}

/// If `unchecked` is true, the filesystem cache will use the `*_unchecked` wasmer functions for
/// loading modules from disk.
pub fn set_module_unchecked(&mut self, unchecked: bool) {
Expand Down

0 comments on commit a47b70c

Please sign in to comment.