From d4a21c03434f1ee6bb2a3aa2ad14829e15afb0e8 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Wed, 24 Oct 2018 11:56:42 +0200 Subject: [PATCH] Added unimplemented instantiateStreaming function --- src/webassembly/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/webassembly/mod.rs b/src/webassembly/mod.rs index 4c49bde81..7b21bce4d 100644 --- a/src/webassembly/mod.rs +++ b/src/webassembly/mod.rs @@ -54,6 +54,16 @@ pub fn instantiate( Ok(ResultObject { module, instance }) } +/// The webassembly::instantiateStreaming() function compiles and instantiates +/// a WebAssembly module directly from a streamed underlying source. +/// This is the most efficient, optimized way to load wasm code. +pub fn instantiateStreaming( + buffer_source: Vec, + import_object: ImportObject<&str, &str>, +) -> Result { + unimplemented!(); +} + /// The webassembly::compile() function compiles a webassembly::Module /// from WebAssembly binary code. This function is useful if it /// is necessary to a compile a module before it can be instantiated