Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

cpufeatures: use `is_*_feature_detected!` on targets with `std`?

オープン
#1,534 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

まず、cpufeatures のターゲット検出実装と、参照されている is_*_feature_detected! マクロを読みます。OS ターゲットにおけるマクロベースのアプローチと CPUID アプローチを、未解決の 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時間
マージ済み PR(30日)
10

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/utils のほかの issue

RustCrypto/utils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。