cpufeatures: use `is_*_feature_detected!` on targets with `std`?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
先阅读 cpufeatures 的目标检测实现以及所引用的 is_*_feature_detected! 宏。比较基于宏的方法和 CPUID 方法在 OS 目标上的差异,包括尚未解决的 x86 问题。当选定目标确定了适用于下一次 breaking release 的一致检测策略,并且新增目标特性所需的维护工作更少时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Sadly, the only popular target arch where a proper no_std target feature detection is available is x86(-64). For other targets we use OS-specific detection code.
Targets with OS generally have std, so we could use is_*_feature_detected! macros on them instead of re-implementing OS-specific target feature detection code. This would allow us to automatically support new target features with minimal maintenance burden.
I suggest we switch to the macros on selected targets with available std in the next breaking release.
One open question is whether we should use is_x86_feature_detected! on targets with OS or keep using our CPUID code.
- 主要语言
- 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 条评论 ·
-
难度 5/5 一周以上 新手友好度 45/100
RustCrypto/utils#1529 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
RustCrypto/utils#1510 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 45/100
RustCrypto/utils#1509 ·
相似的 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