netwatch: support tvOS

オープン 初心者向け
#282 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ios, rust
領域
networking

調査の方向性

変更すべき箇所は、build.rs にある bsd cfg エイリアスと、interfaces/bsd.rs および netmon/actor.rs にある target_os = "ios" のチェックです。それぞれで iOS の隣に tvOS を追加してください。その後、iOS の CI マトリクスに aarch64-apple-tvos と aarch64-apple-tvos-sim を追加します。これは issue で言及されている netdev のリリースを待つ必要があります。tvOS ターゲット向けに crate がビルドでき、CI マトリクスにそれらが含まれていれば完了です。

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

説明

netwatch doesn't build for tvOS (aarch64-apple-tvos). tvOS has the same AF_ROUTE routing socket and Darwin APIs as iOS, but the bsd cfg alias in build.rs and the platform gates in interfaces/bsd.rs and netmon/actor.rs name only target_os = "ios", so tvOS gets no interface or route-monitor code. netdev has the same gap; I've opened a PR there: https://github.com/shellrow/netdev/pull/201

We ship an iroh-based Apple TV app and have been carrying a patched netwatch to make it build: tvOS gated next to iOS everywhere, nothing else. With that patch it builds and runs on tvOS, and iroh connects fine.

I'd like to upstream it as one small PR: tvOS added next to iOS in each gate, plus aarch64-apple-tvos and aarch64-apple-tvos-sim in the iOS CI matrix. Is that welcome? The CI entries would need to wait for a netdev release with tvOS support. The branch is ready: https://github.com/andoriyu/net-tools/tree/netwatch-tvos-support

主要言語
Rust
スター
34
フォーク
56
平均マージ
2日 1時間
マージ済み PR(30日)
9

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

n0-computer/net-tools のほかの issue

n0-computer/net-tools の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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