Skip to content

fix(netwatch): compilation for all Apple targets#152

Closed
yukibtc wants to merge 1 commit into
n0-computer:mainfrom
yukibtc:netwatch-apple
Closed

fix(netwatch): compilation for all Apple targets#152
yukibtc wants to merge 1 commit into
n0-computer:mainfrom
yukibtc:netwatch-apple

Conversation

@yukibtc
Copy link
Copy Markdown

@yukibtc yukibtc commented Jun 1, 2026

Description

Fix netwatch cfg gates so the Darwin/BSD implementation is enabled for all Apple targets via target_vendor = "apple", instead of only macos and ios.

This covers Apple targets such as watchOS, tvOS, and visionOS at compile time by applying the same Apple routing implementation and target-specific dependencies consistently.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

Fix `netwatch` cfg gates so the Darwin/BSD implementation is enabled for all Apple targets via `target_vendor = "apple"`, instead of only `macos` and `ios`.

This covers Apple targets such as watchOS, tvOS, and visionOS at compile time by applying the same Apple routing implementation and target-specific dependencies consistently.

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
@dignifiedquire
Copy link
Copy Markdown
Contributor

did you confirm these all work the same? the reason these are currently not enabled is that we have no testing for these platforms

@n0bot n0bot Bot added this to iroh Jun 1, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Jun 1, 2026
@yukibtc
Copy link
Copy Markdown
Author

yukibtc commented Jun 2, 2026

Sorry, I assumed these platforms worked the same way, but after digging deeper I found that this is not the case. Some of them, such as watchOS, don't provide access to the BSD/route sockets API. I'm going to close this PR.

@yukibtc yukibtc closed this Jun 2, 2026
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Jun 2, 2026
@yukibtc yukibtc deleted the netwatch-apple branch June 2, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants