Repository navigation
feat(netwatch): support tvOS - #285
Merged
Merged
Conversation
tvOS has the same AF_ROUTE routing socket and Darwin APIs as iOS, but the bsd cfg alias and every platform gate named only target_os = "ios", so tvOS got no interface or route-monitor code. Gate tvOS alongside iOS everywhere. Needs a netdev release with tvOS support for the full build.
flub
approved these changes
Nov 27, 2026
Member
|
Please do check all the items in the checklist. In particular do run |
andoriyu
marked this pull request as draft
November 28, 2026 03:53
Contributor
Author
|
Sorry, opened a bit prematurely. I'll bring it out of draft once
shellrow/netdev#201
released. I'll update lock file for url crate issue if it's not fixed in
default branch by the time netdev release.
…On Fri, Nov 27, 2026 at 4:28 AM Floris Bruynooghe ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Please fix the failures.
—
Reply to this email directly, view it on GitHub
<#285?email_source=notifications&email_token=AABEFG7OJEGTW7BI3IHOGBT53FXPPA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMBYHAYTIMBZGE4KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-6088140918>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABEFG4UU6C4MXPS4VQWS7353FXPPAVCNFSNUABFKJSXA33TNF2G64TZHM4DSNZUG42DKMRUHNEXG43VMU5TMNRUGE2TANJZG4YKC5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
netdev 0.48.1 builds on tvOS (shellrow/netdev#201). url 2.5.8 has a stack overflow in Url::origin() on nested blob: URLs (RUSTSEC-2026-0592), which fails cargo deny. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SnBHbXi2r2EQkp7JSRYvHA
bsd.rs only builds on Apple and the BSDs, so CI's Linux clippy and doc jobs don't see it, and cargo make failed on macOS: needless_bool in is_valid_rib_type, unused_async on default_route (kept async to match the other platforms), and <must be specified> in the RouteMessage docs read as HTML tags. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SnBHbXi2r2EQkp7JSRYvHA
andoriyu
marked this pull request as ready for review
November 28, 2026 06:03
Contributor
Author
|
Fixed build issues. |
|
Tested this change (patched onto netwatch 0.20.2) with iroh 1.5 on the tvOS 27 Simulator (aarch64-apple-tvos-sim): builds and works, endpoints connect and stream. The device target (aarch64-apple-tvos) also builds and runs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refs #282
Builds netwatch for tvOS the way iOS is built. tvOS has the same
AF_ROUTErouting socket and Darwin APIs, so each gate that namestarget_os = "ios"(thebsdalias inbuild.rs,interfaces/bsd.rs,netmon/actor.rs) now names tvOS too.aarch64-apple-tvosandaarch64-apple-tvos-simjoin the iOS CI matrix.Dependency updates:
Url::origin()on nestedblob:URLs. It was failingcargo deny.I also had to fix a few things to get
cargo makepassing on my Mac.bsd.rsdoesn't get compiled on Linux, so CI never caught these: a couple of clippy lints (needless_boolandunused_async) and rustdoc treating<must be specified>as an HTML tag. I leftdefault_routeasync so it matches the other platforms.API Changes
None.
Testing
On macOS (aarch64), stable 1.100.1:
cargo make: fmt, check, clippy, doc and nextest all pass (32 tests).cargo build --locked --workspace --all-features --target <t>(the CI command) andcargo clippywith no warnings, foraarch64-apple-tvos,aarch64-apple-tvos-simandaarch64-apple-ios.cargo deny --workspace --all-features check -Dwarnings: advisories, bans, licenses and sources all pass.With iroh 1.5 and this netwatch, our tvOS app connects and streams on the tvOS simulator. The same change on netwatch 0.19 has shipped in our TestFlight builds.
Change checklist
cargo makepasses locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01SnBHbXi2r2EQkp7JSRYvHA