Should have the ability to select a world from a wit file with multiple worlds
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
复现使用 issue 中的 WIT 文件,并在 src/main.rs:123 处失败,因为生成的 bindings 只暴露最后一个 world。首先跟踪 HttpWorldExports 的生成和选择方式;当无论声明顺序如何都可以选择 http-world,同时 queue-world 仍然可用时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
With a simple wit file like it not possible to select a world. The last one in the file is selected and used. So in the case the bindings are generated for queue-world.
package hyperlight:worlds;
interface http-interface {
record request {
params: list<string>
}
record response {
body: string
}
handle-request: func(event: request) -> response;
}
interface queue-interface {
record message {
data: string
}
record output {
messages: list<string>
}
handle-message: func(msg: message) -> output;
}
world http-world {
export http-interface;
}
world queue-world {
export queue-interface;
}
For instance, I added queue world after getting bindings working for http-world and now get the following error. If Swap the worlds it works.
error[E0433]: failed to resolve: could not find `HttpWorldExports` in `worlds`
--> src/main.rs:123:69
|
123 | let instance = bindings::hyperlight::worlds::HttpWorldExports::http_interface(&mut wrapped);
- 主要语言
- 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
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
docs(skills): issue-first should reference an existing Linear ticket instead of filing a duplicate未关闭documentation
难度 1/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
area: tui good first issue help wanted type: bug
难度 2/5 1-3 小时 新手友好度 72/100
srothgan/claude-code-rust#473 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
storytold/photocraft#5260 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复