This version of Wasmbox upgrades to Wasmtime v11.0.0
, adds the ability to mount a zip archive and simplifies importer settings.
Mounting A Zip Archiveโ
Calling the new MapReadonlyZipArchiveDirectory
method with the path to a zip archive will mount that entire zip archive as a read-only directory. This can be useful to distribute static content with your application as a single zip archive, which can then be easily mounted as read by wasm code.
Zip Archives are read only and must not be modified while mounted.
Simplified Importer Settingsโ
Previously there were several settings which might break determinism (e.g. SIMD) and to guarantee deterministic execution you had to carefully read all of the tooltips to see if this option might be non-deterministic. This has all been removed!
There is now a single Non Deterministic
checkbox at the top of the importer which controls all of this. If it is ticked then extra (potentially non-deterministic) optimisations are enabled. If this checkbox is unticked (the default) the compiled Wasm code will be imported in deterministic mode - guaranteeing the same results across all platforms.
Feedbackโ
Wasmbox is very new, so it is likely you will encounter bugs, awkward APIs or missing features. Please direct feedback to Discord or the Issue Tracker.
Features ๐โ
- Wasmtime v11.0.0
- Wasmtime-dotnet v11.0.0
- Single importer setting to ensure determinism.
- Added support for mounting a zip archive.
- Improved error reporting when an invalid wasm file is imported.
Bugfixes ๐โ
- Fixed the virtual file system
UnityLog
sometimes printing nonsense message.