Add support for configuring plugin yield mechanism, stashing

This commit is contained in:
Isaac Clayton 2022-07-13 11:57:00 +02:00
parent d04c3388b4
commit 10670dba70
4 changed files with 88 additions and 27 deletions

View file

@ -54,13 +54,9 @@ fn main() {
}
/// Creates a default engine for compiling Wasm.
/// N.B.: this must create the same `Engine` as
/// the `create_default_engine` function
/// in `plugin_runtime/src/plugin.rs`.
fn create_default_engine() -> Engine {
let mut config = Config::default();
config.async_support(true);
config.consume_fuel(true);
Engine::new(&config).expect("Could not create engine")
}