zeroize_derive: attribute for obtaining a mutable slice
还没有人认领这个 Issue。
评估
调研方向
首先定位 issue 中描述的 zeroize custom-derive 入口点和现有的 slice Zeroize 实现。跟踪 derive 属性的解析方式,然后为 Vec 字段上的 #[zeroize(as_mut)] 添加覆盖;完成的标准是该属性能够派生出使用字段可变 slice 的可用实现。
由索引模型根据 Issue 内容生成。
描述
An optimized Zeroize<Z> impl exists for slices where Z: DefaultIsZeros.
It would be nice if custom derive could leverage it by obtaining a mutable slice of a field, e.g. via the AsMut trait:
#[zeroize(as_mut)]
field: Vec<u8>,
- 主要语言
- Rust
- 星标
- 674
- 派生
- 170
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 10
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RustCrypto/utils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
RustCrypto/utils#1546 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 55/100
RustCrypto/utils#1537 · 7 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
RustCrypto/utils#1534 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 45/100
RustCrypto/utils#1529 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
RustCrypto/utils#1510 · 1 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
bug core
难度 2/5 1-3 小时 新手友好度 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW 未关闭fuzz
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/ClickHouse#122114 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
linebender/vello_svg#90 ·
-
难度 2/5 1-3 小时 新手友好度 74/100