vmware-labs / wasm-workers-server

🚀 Develop and run serverless applications on WebAssembly

Home Page:https://workers.wasmlabs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement HTTP bindings for Ruby

Angelmmiguel opened this issue · comments

Is your feature request related to a problem? Please describe.

The goal for this task is to allow Ruby workers to perform HTTP requests using the new bindings from #165. Note that wws was using the Ruby runtimes from Wasm Language Runtimes. Since we plan to start adding custom features for Wasm Workers Server, we need to create now a Ruby kit.

To create this kit, we will reuse the assets from Wasm Language Runtimes. In this specific case, we want to generate the libruby static Wasm library and load it in a kit based on Rust. Then, we will use a crate like rutie to interact with the library.

This article explains how to embed libpython in Rust. Other kits like JavaScript uses a similar approach, but changing the specific library with QuickJS. The outcome will be very similar and we will publish it as a new version.

Describe the solution you'd like

I want a new Ruby kit that allows me to perform HTTP requests. All my existing workers should work without any modification. The kit should use WIT files to define the required bindings, so it's easy to extend it in the future.

Describe alternatives you've considered

No response

Additional context

No response