bytecodealliance / bytecodealliance/cap-std

Change `Pool` to hold a callback instead of a set of grants?

未关闭
#339 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
821
派生
57
平均合并
1 小时 16 分钟
30 天内合并 PR
4

描述

In https://github.com/bytecodealliance/wasmtime/pull/7662, there is discussion that a callback would be more useful than a simple set of allowed addresses. If that's true for Wasmtime, then it's true for cap-std in general, so we should consider migrating cap-std in that direction too.

The current code that maintains a list of allowed addresses could be factored out into a utility that users could use to implement the callback if they need that functionality.

贡献指南

打开贡献指南

调研方向

阅读 Wasmtime PR 7662 中的讨论,然后检查 cap-std 当前用于维护允许地址列表的代码。确定 Pool 是否应接受 callback,以及现有的地址列表行为是否应成为可复用的 utility;完成的标准是确定 API 方向和相应的实现范围。

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

评估

技术栈
rust
领域
security
Issue 类型
重构
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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