Skip to content

feat: wasm support#404

Merged
stefan-gorules merged 21 commits into
masterfrom
feat/wasm-support
Nov 13, 2025
Merged

feat: wasm support#404
stefan-gorules merged 21 commits into
masterfrom
feat/wasm-support

Conversation

@stefan-gorules

@stefan-gorules stefan-gorules commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

WASM Platform Support

This PR adds WebAssembly compilation support to zen-engine, enabling it to run in browser and Node.js WASM environments.

Changes

  • ✨ Added wasm32-wasip1-threads build target
  • 🔧 Configured WASI SDK toolchain and build pipeline
  • 🏗️ Refactored HTTP implementation for platform compatibility (native vs WASM)

Technical Details

The WASM build uses conditional compilation to separate platform-specific code. HTTP functionality and IAM authentication are available only in native builds, while WASM builds use a callback-based approach for extensibility.

Notes

⚠️ HTTP Handler: The httpHandler option was added for internal WASM compatibility and should not be used outside of WASM. This API may be deprecated or changed in future releases.

@stefan-gorules stefan-gorules merged commit 922a262 into master Nov 13, 2025
44 of 67 checks passed
@stefan-gorules stefan-gorules deleted the feat/wasm-support branch November 13, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants