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

Investigate `min_generic_const_args` for handling array sizes generically

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
compilers

調査の方向性

まず src/sizes.rs を読んで、現在の固定サイズマクロのアプローチを理解し、その後 nightly min_generic_const_args の目標を確認してください。Array 型の N として typenum::Unsigned::USIZE を使う proof of concept を構築してください。関連するユースケースで任意のサイズが機能し、このアプローチが実行可能であることが確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Currently we use macros to write a fixed set of supported sizes, which is inflexible and we would ideally support arbitrary sizes instead (#81). See:

https://github.com/RustCrypto/hybrid-array/blob/master/src/sizes.rs

It seems like min_const_generic_args could be the missing compiler feature we need to be able to use the associated constant typenum::Unsigned::USIZE as N for [T; N] when defining our Array type.

It would be good to try to make this work on nightly in a proof-of-concept capacity to ensure it will actually work for our use cases. It would also make a compelling use case for min_const_generic_args.

cc @BoxyUwU

主要言語
Rust
スター
23
フォーク
25
平均マージ
1時間 46分
マージ済み PR(30日)
1

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

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

はじめの一歩

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

RustCrypto/hybrid-array のほかの issue

RustCrypto/hybrid-array の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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