Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Implementing multiple worlds

未关闭
#203 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust, wasm
领域
backend

调研方向

首先跟踪 issue 中展示的 register_host_functions 和 export WIT_WORLD 设置,然后检查如何为选定的 world 生成 guest bindings。确定如何在不合并它们的 world 的情况下同时注册 wasi:cli 和 wasi:http。完成标准是应用程序可以通过单独的注册和生成的 bindings 支持两个 world。

由索引模型根据 Issue 内容生成。

描述

lifecycle/confirmed

It doesn't seem possible today to register multiple worlds. For instance, if I wanted my app to support both wasi:cli and wasi:http.

I thought it might be possible to create two different modules and then register them like:

    let rt = cli::bindings::register_host_functions(&mut sb, state);
    let rt = http::bindings::register_host_functions(&mut rt, state);

This doesn't work due to export WIT_WORLD which must be set to one and will only generate guest bindings for one of them.

The work around for now is combine the worlds into one world.

主要语言
Rust
星标
729
派生
39
平均合并
16 小时 18 分钟
30 天内合并 PR
8

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperlight-dev/hyperlight-wasm 的其他 Issue

查看 hyperlight-dev/hyperlight-wasm 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。