Skip to content

v0.11.0

Compare
Choose a tag to compare
@gzurl gzurl released this 27 Mar 22:01
· 60 commits to main since this release

0.11.0 (2023/03/27)

  • In this version, Wasm modules can now return any output type via stdout, including binaries with non UTF-8 bytes sequences or \0 NULL terminators in the middle.
  • Also added some minor improvements for error management and building scripts.

mod_wasm.so

  • Support for the new wasm_executionctx_run() signature in the wasm_runtime C-API.
  • Better error management when invoking ap_scan_script_header_err_strs().
  • Some improvements in build.sh per #36.

libwasm_runtime.so

  • Now the Wasm module stdout is modelled as a Vec<u8> instead of a String:
    • This prevents an exception when a module emits a non UTF-8 output.
  • New signature for wasm_executionctx_run() in the C-API now requires buffer and length pointers:
    • This allows NULL terminators (\0) in the middle of the output to be managed by C without truncating the string (ie.: requires fwrite() instead of fprintf(), etc.).
  • Better clean_all target in Makefile.
  • Dependencies:
    • Bump version dependencies:
      • wasmtime to 7.0.0.
      • anyhow to 1.0.70.
    • Updated cargo.lock dependencies via cargo update.

httpd-mod-wasm demo container

  • Enabling mod_rewrite.
  • Adding /php-hello-slim demo.
  • Adding WasmEnv TMPDIR /tmp directive to all PHP-related demos.
  • Adding stubs for Drupal and Drupal-Zero demos (still WIP).