One way to call and register functions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read the host and guest call entry points, the guest registration APIs, and the WIT code generation path; the issue does not name specific files or tests. Map where call, call_host, call_host_function, register_fn, and register_function are used, then check the changes in issue #1987 before scoping the API updates. Done means the proposed deprecations and removal are addressed, dynamic host calls are available, and WIT codegen uses register_fn.
由索引模型根据 Issue 内容生成。
描述
Each operation has several entry points with different costs:
- Host calls:
call, and the deprecatedcall_guest_function_by_name. - Guest calls to the host:
call_host, andcall_host_function, which takes an ownedVec<ParameterValue>. - Guest registration:
#[guest_function],register_fn, andregister_functionwith a hand-built definition.
Proposal:
- Remove
call_guest_function_by_name. - Add guest
call_host_dynamic(name, &[ParameterValueRef], ReturnType)for runtime signatures. Deprecatecall_host_function. - Deprecate
register_functionandprint_output_with_host_print. Switch WIT codegen toregister_fn.
Builds on #1987.
- 主要语言
- Rust
- 星标
- 4.8k
- 派生
- 223
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 65
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperlight-dev/hyperlight 的其他 Issue
-
A-api C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 75/100
hyperlight-dev/hyperlight#2135 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 76/100
hyperlight-dev/hyperlight#2136 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 78/100
hyperlight-dev/hyperlight#2132 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 84/100
hyperlight-dev/hyperlight#2133 ·
维护者通常 1 天内回复
-
A-ci A-fuzzing C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 78/100
hyperlight-dev/hyperlight#2134 ·
维护者通常 1 天内回复
查看 hyperlight-dev/hyperlight 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
roc-lang/basic-webserver#277 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 82/100
samkerrcode/opengent#113 ·
维护者通常 1 天内回复
-
app bug session
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复