Add comment linking engine creating code together

This commit is contained in:
Isaac Clayton 2022-07-11 18:20:50 +02:00
parent 19d19271f6
commit 38f8191ce8
2 changed files with 17 additions and 5 deletions

View file

@ -48,7 +48,11 @@ fn main() {
}
}
fn create_engine() -> Engine {
/// 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.epoch_interruption(true);