Make libc backend on Linux depend only on libc

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
静か
技術スタック
rust

調査の方向性

まず、Rustix の libc バックエンドの Linux ビルド設定と linux-raw-sys のすべての使用箇所を監査します。特に、issue で名前が挙げられている STATX_* 定数と xdp_mmap_offsets を確認してください。各設定で libc がどの定義をエクスポートしているか、また linux-raw-sys にアクティブな利用者がいるかを確認します。完了とするには、libc のみに依存する方向性を決定している必要があります。

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

説明

Currently, the Rustix libc backend on Linux has a dependency on linux-raw-sys in certain build configurations. The underlying issues are:

Constants/definitions

  1. libc doesn't export all constants on all build configurations. For example, STATX_* on Linux musl is not exported and xdp_mmap_offsets.
  2. Rustix tries to make up for this using linux-raw-sys constants + defintions.

I think the solution is to slowly try to upstream the things Rustix currently uses to libc, and if we get rejected, delete the corresponding linux-raw-sys if we find no active user.

But open to other options.

主要言語
Rust
スター
2.1k
フォーク
322
平均マージ
5日 16時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

bytecodealliance/rustix のほかの issue

bytecodealliance/rustix の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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