You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current WasmPackage constructor looks like this:
pubfnnew(file_reader:Arc<dynFileReader>,manifest:Option<Vec<u8>>,wasm_module:Option<Vec<u8>>,) -> Self// example usageWasmPackage::new(Arc::new(SimpleFileReader::new()),wrap_info().ok(),wrap_wasm().ok())
It would be good for UX to have one that requires manifest and wasm_module, allowing the FileReader to be assigned a default. The default FileReader could be the SimpleFileReader from the core.
pubfnnew(manifest:Vec<u8>,wasm_module:Vec<u8>,) -> Self// example usageWasmPackage::new(wrap_info().ok().unwrap(),wrap_wasm().ok().unwrap(),)
The text was updated successfully, but these errors were encountered:
The current
WasmPackage
constructor looks like this:It would be good for UX to have one that requires
manifest
andwasm_module
, allowing theFileReader
to be assigned a default. The defaultFileReader
could be theSimpleFileReader
from the core.The text was updated successfully, but these errors were encountered: