Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HTTP bindings for Ruby #177

Open
Angelmmiguel opened this issue Jul 12, 2023 · 0 comments
Open

Implement HTTP bindings for Ruby #177

Angelmmiguel opened this issue Jul 12, 2023 · 0 comments
Labels
🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs

Comments

@Angelmmiguel
Copy link
Contributor

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

@Angelmmiguel Angelmmiguel added 🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs
Projects
None yet
Development

No branches or pull requests

1 participant