Skip to content

v0.5.3

Choose a tag to compare

@github-actions github-actions released this 24 Mar 16:04
a459604

Added

  • host_result module — canonical decoder for the HostResult wire format (0x00 Ok + payload / 0x01 Err + message). All host functions that return data use this encoding instead of WASM traps for recoverable errors. (#25)

Changed

  • fs::read, fs::metadata, fs::exists, fs::read_dir — decode HostResult from kernel. File-not-found, permission denied, and VFS errors returned as Err(SysError) instead of crashing the capsule. (#25)
  • kv::get_bytes, kv::list_keys, kv::clear_prefix — decode HostResult from kernel. (#25)

Fixed

  • Interceptor chain payload corruption — interceptors returning Result<(), SysError> serialized () as b"null" (4 bytes), overwriting the chain payload for subsequent interceptors. Now returns empty bytes, preserving the original payload. (#25)

With many thanks from the following Astrinauts 🚀

  • Joshua J. Bouw