netwatch: support tvOS

Aperta Adatta ai principianti
#282 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
ios, rust
Ambito
networking

Direzione di ricerca

Le condizioni da modificare sono l'alias cfg bsd in build.rs e i controlli target_os = "ios" in interfaces/bsd.rs e netmon/actor.rs; aggiungi tvOS accanto a iOS in ciascuno. Poi aggiungi aarch64-apple-tvos e aarch64-apple-tvos-sim alla matrice CI di iOS, cosa che deve attendere la release di netdev citata nell'issue. Il lavoro è completato quando il crate compila per i target tvOS e la matrice CI li include.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
34
Fork
56
Merge medio
2g 1h
PR unite (30g)
9

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di n0-computer/net-tools

Tutte le issue di n0-computer/net-tools

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.