Implementing multiple worlds
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 issue 中展示的 register_host_functions 和 export WIT_WORLD 设置,然后检查如何为选定的 world 生成 guest bindings。确定如何在不合并它们的 world 的情况下同时注册 wasi:cli 和 wasi:http。完成标准是应用程序可以通过单独的注册和生成的 bindings 支持两个 world。
由索引模型根据 Issue 内容生成。
描述
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
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperlight-dev/hyperlight-wasm 的其他 Issue
-
lifecycle/needs review
难度 4/5 3-5 天 新手友好度 35/100
hyperlight-dev/hyperlight-wasm#550 ·
维护者通常 1 天内回复
-
lifecycle/needs review
难度 4/5 3-5 天 新手友好度 55/100
hyperlight-dev/hyperlight-wasm#545 ·
维护者通常 1 天内回复
-
lifecycle/needs review
难度 4/5 3-5 天 新手友好度 38/100
hyperlight-dev/hyperlight-wasm#538 ·
维护者通常 1 天内回复
-
use the #[guest_func] macro on `init_wasm_runtime` instead of manually calling register_function?未关闭lifecycle/needs review
难度 3/5 1-2 天 新手友好度 35/100
hyperlight-dev/hyperlight-wasm#395 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
lifecycle/needs review
难度 2/5 1-3 小时 新手友好度 48/100
hyperlight-dev/hyperlight-wasm#378 ·
维护者通常 1 天内回复
查看 hyperlight-dev/hyperlight-wasm 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
swc-project/swc#12516 ·
维护者通常 1 天内回复
-
app bug
难度 2/5 1-3 小时 新手友好度 76/100
-
mls-rs-crypto-awslc: exact aws-lc-rs =1.16.3 pin blocks rustls security update可能已有人在做 @muscariello 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
-
[work-item] adam-adae-worsening-emergence: conform spec.yaml to the specification style contract (REQ-1280)可能已有人在做 @muse-yamaa-bot 今天认领。 未关闭work-item
难度 1/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复