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

Does `elliptic-curve` with only the `serde` feature enabled still require `alloc`?

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

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

評価

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

調査の方向性

まず p256/Cargo.toml と elliptic-curve/Cargo.toml に記載された feature 定義を調査し、次に p256/serde を有効にすると alloc が必要になる経路を追跡します。Signature 用に生成された serde 実装を alloc なしで組み込みターゲット向けにビルドできるか確認します。serde を引き続き使用でき、alloc が不要になっていれば完了です。

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

説明

elliptic-curve

Hi,

We're trying to use some primitives from the p256 crate on an embedded target and would like to rely on the serde impls it provides, but sadly this transitively pulls in an alloc requirement that we cannot and do not want to satisfy.

Preliminary checks suggest that the problem is that p256/serde activates elliptic-curve/serde, which in turn unconditionally activates its alloc feature.

Is there a way to get rid of this requirement so that we can use the generated serde impls for Signature without being forced to draw in alloc?

Thanks,

Jona

主要言語
Rust
スター
756
フォーク
256
平均マージ
2時間 53分
マージ済み PR(30日)
1

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

RustCrypto/traits のほかの issue

RustCrypto/traits の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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