Skip to content

v0.22.0 - 2023-01-16

Compare
Choose a tag to compare
@Robbepop Robbepop released this 16 Jan 19:57
v0.22.0
0bbb80c

Added

  • Add missing TypedFunc::call_resumable API. (#605)
    • So far resumable calls were only available for the Func type.
      However, there was no technical reason why it was not implemented
      for TypedFunc so this mirrored API now exists.
    • This also cleans up rough edges with the Func::call_resumable API.

Changed

  • Clean up the wasmi_core crate API. (#607, #608, #609)
    • This removes plenty of traits from the public interface of the crate
      which greatly simplifies the API surface for users.
    • The UntypedValue type gained some new methods to replace functionality
      that was provided in parts by the removed traits.
  • The wasmi crate now follows the Wasmtime API a bit more closely. (#613)
    • StoreContext new methods:
      • fn engine(&self) -> &Engine
      • fn data(&self) -> &T
    • StoreContextMut new methods:
      • fn engine(&self) -> &Engine
      • fn data(&self) -> &T
      • fn data_mut(&mut self) -> &mut T
    • Renamed Store::state method to Store::data.
    • Renamed Store::state_mut method to Store::data_mut.
    • Renamed Store::into_state method to Store::into_data.

Internal

  • The Store and Engine types are better decoupled from their generic parts. (#610, #611)
    • This might reduce binary bloat and may have positive effects on the performance.
      In fact we measured significant performance improvements on the Wasm target.