Skip to content

Releases: WasmEdge/wasmedge-rust-sdk

WasmEdge Rust SDK 0.13.2

15 Nov 12:26
6d72f15
Compare
Choose a tag to compare

[0.13.2] - 2023-11-15

🐛 Bug Fixes

  • Fix the static build to link against zstd (#91)

Contributors

@jprendes

WasmEdge Rust SDK 0.13.1

15 Nov 12:25
c99e30d
Compare
Choose a tag to compare

[0.13.1] - 2023-11-14

  • Update the wat dep. This update is to fix #88.

WasmEdge Rust SDK 0.13.0

15 Nov 12:24
a27724d
Compare
Choose a tag to compare

[0.13.0] - 2023-11-07

⛰️ Features

  • New API PluginManager::nn_preload. This API is used to initialize the wasi_nn plug-in with given preloads (#74)

  • Implement FromStr trait for NNPreload struct (#81)

🚜 Refactor

  • [BREAKING] Update the argument types (#82):

    • VmBuilder::with_plugin
    • VmBuilder::with_plugin_wasi_nn
    • VmBuilder::with_plugin_wasi_crypto
    • VmBuilder::with_plugin_wasmedge_process
  • [BREAKING] Update the argument types (#76):

    • Executor::run_func_with_timeout and Executor::run_func_async_with_timeout
    • Vm::run_func_with_timeout and Vm::run_func_async_with_timeout
    • Func::run_with_timeout and Func::run_async_with_timeout

🐛 Bug Fixes

  • Introduce new C-API WasmEdge_FunctionInstanceGetData to fix the memory leak issue caused by host data (#84)

Ci

  • Support macos-13 and remove macos-11 from the ci-build and standalone workflows (#84)

WasmEdge Rust SDK 0.12.2

22 Sep 13:58
5014756
Compare
Choose a tag to compare

[0.12.2] - 2023-09-22

🚜 Refactor

  • Disable timeout related APIs for the musl environment (#71)

Contributors

@jprendes @apepkuss

WasmEdge Rust SDK 0.12.1

14 Sep 05:26
e5bcf0a
Compare
Choose a tag to compare

[0.12.1] - 2023-09-14

🐛 Bug Fixes

  • (wasmedge-sys) Update the sha256sum of WasmEdge 0.13.4 (#66)

Contributors

@jprendes

WasmEdge Rust SDK 0.12.0

11 Sep 05:48
00cc34d
Compare
Choose a tag to compare

[0.12.0] - 2023-09-10

⛰️ Features

  • New timeout APIs (#61)
    • Add Vm::run_func_with_timeout and Vm::run_func_async_with_timeout. These APIs are used to run a host function with a timeout
    • Add Executor::run_func_with_timeout and Executor::run_func_async_with_timeout. These APIs are used to run a host function with a timeout
    • Add Func::run_with_timeout and Func::run_async_with_timeout. These APIs are used to run a host function with a timeout
  • New API Store::register_plugin_module. This API is used to register a `PluginInstance`` into a store instance (#53)
  • New type alias PluginInstance (#53)

🚜 Refactor

  • [BREAKING] Merge async mod into wasi mod (#55)
  • [BREAKING] Update the return type of PluginManager::find from Option<Plugin> to WasmEdgeResult<Plugin> (#53)
  • [BREAKING] Update the return type of Plugin::mod_instance from Option<Instance> to WasmEdgeResult<PluginInstance> (#53)

📚 Documentation

  • Update WasmEdge RustSDK API Document (#55)

Contributors

@L-jasmine @hydai @apepkuss

WasmEdge Rust SDK 0.11.2

07 Aug 08:03
094eb2d
Compare
Choose a tag to compare

[0.11.2] - 2023-08-07

⛰️ Features

  • New API WasiContext::generate. This API provides more flexible argument types than the existing WasiContext::new (#49)

🚜 Refactor

  • Improve host_function and async_host_function proc-macros (#49)
  • Improve build script (#48)
    • Options to specify the type of linking required for the different dependencies using environment variables.
    • Adds an option to use an external rust-bindgen using environment variables.
    • Adds support for musl libc

📚 Documentation

  • Update README.md (#50)
  • Update Rust SDK API Document (#50)

Ci

  • Disable the publish of the async API document (#50)

Contributors

Thank you @jprendes for the improvements in the build script.

@jprendes @apepkuss

WasmEdge Rust SDK 0.11.0

01 Aug 12:59
d8e8f30
Compare
Choose a tag to compare

[0.11.0] - 2023-07-31

⛰️ Features

  • Add Func::wrap_async_func_with_type (#43)
  • Add WasiInstance::exit_code in async mod (#43)
  • Add WasiInstance::name in wasi mod (#42)
  • Add WasiContext (#39)
  • Add VmBuilder::with_wasi_context (#39)

🚜 Refactor

  • [BREAKING] Update Func::new
    • Rename Func::new to Func::wrap_with_type (#43)
    • Change the type of the data argument to Option<Box<T>> (#39)
  • [BREAKING] Update Func::wrap_func
    • Rename Func::wrap_func to Func::wrap (#43)
    • The type of the data argument is changed to Option<Box<T>> (#39)
  • [BREAKING] Update async WasiInstance
    • Move WasiInstance for async scenarios from wasi mod to async mod (#39)
    • Remove the implementation of AsInstance trait for WasiInstance defined in async mod (#39)
    • Remove WasiInstance::initialize defined in async mod (#39)
  • [BREAKING] Update WasiInstance
    • Remove the implementation of AsInstance trait for WasiInstance defined in wasi mod (#42)
  • [BREAKING] Move AsyncState into async mod (#39)
  • [BREAKING] Remove HostFn<T> and AsyncHostFn<T> (#39)
  • [BREAKING] Update ImportObjectBuilder
    • Add ?Size and Clone trait bounds on generic type of ImportObjectBuilder::build (#41)
    • Change the type of the data argument of ImportObjectBuilder::with_func to Option<Box<D>> (#39)
    • Change the type of the data argument of ImportObjectBuilder::with_func_by_type to Option<Box<D>> (#39)
  • [BREAKING] Update ImportObject
    • Add generic type to ImportObject (#41)
    • Rename as_raw_ptr to as_ptr (#41)
  • [BREAKING] Update PluginModuleBuilder
    • Change the type of the data argument of PluginModuleBuilder::with_func to Option<Box<D>> (#39)
    • Add ?Sized trait bound on the generic type of PluginModuleBuilder<T> (#42)
    • Update PluginModuleBuilder::build (#42)
  • [BREAKING] Update PluginModule (#42)
  • [BREAKING] Add generic type to Store::register_import_module (#41)
  • [BREAKING] Update async_host_function proc-macro (#43)
  • Update Vm
    • Remove imports field from Vm (#41)
    • [BREAKING] Update the signature of Vm::register_import_module (#41)
    • Update Vm::build for async scenarios (#42)
    • Enable Vm::wasi_module and Vm::wasi_module_mut for async scenarios (#43)
  • Update VmBuilder::build (#39)
  • Improve the standalone deployment mode (#40)

📚 Documentation

  • Update README.md (#43)
  • Update Rust SDK API Document (#44)

Ci

  • Add steps for publishing async API document in release-wasmedge-sdk workflow (#44)

Contributors

This release contains contributions from @jprendes, which significantly improve the build script.

@jprendes @apepkuss