Add support for configuring plugin yield mechanism, stashing
This commit is contained in:
parent
d04c3388b4
commit
10670dba70
4 changed files with 88 additions and 27 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue