Skip to content

netwatch: bump netdev to 0.46 to drop the default CoreWLAN XPC round-trip (apple-wifi-extra is now opt-in) #207

Closed

Description

@liminalcommons

netdev 0.46.0 (via shellrow/netdev#175) moved the macOS Wi-Fi transmit-rate lookup behind a new opt-in feature, apple-wifi-extra. Under the default features, get_interfaces() no longer performs a synchronous XPC round-trip to airportd per Wi-Fi interface, and objc2-core-wlan (plus its objc2/objc2-foundation companions) drops out of the macOS tree entirely.

netwatch currently pins netdev = "0.45.0" — the last version where that lookup is unconditional. Two data points for why the bump is worth it for netwatch specifically:

  • netwatch never consumes the value the XPC pays for. The only textual reference to transmit_speed in the crate is the fake() test-fixture constructor in src/interfaces.rs; the real paths (interfaces.rs, ip.rs, interfaces/bsd.rs) call netdev::interface::get_interfaces() and read link/address state only.
  • The cost lands on hot paths. netwatch re-enumerates on every network event, and downstreams like iroh pay one enumeration at every endpoint bind. We've measured the CoreWLAN call as state-dependent: single-digit milliseconds on a quiet host, ~0.3–0.5 s per process on busy hosts (the numbers in netdev#175 match ours), and we have one recorded state where enumeration blocked for ~30 s; it did not reproduce after the host's state changed — state-dependent, not constant. A default code path that can block bind on Wi-Fi-daemon state, to fetch a number nothing reads, seems worth being rid of now that upstream made it optional.

One honest caveat: 0.45 → 0.46 is a 0.x minor, so there may be real API churn behind it (netwatch mirroring netdev types rather than re-exporting them, per #163, should contain the blast radius — but we haven't compiled the bump). Happy to open the bump PR including any mirror adjustments if that's welcome — just say the word.

Activity

  1. moved this to 🚑 Needs Triage in irohon Aug 15, 2026
  2. moved this from 🚑 Needs Triage to 🏗 In progress in irohon Aug 17, 2026
  3. flub commented on Aug 19, 2026

    @flub
    Member

    Please don't copy-paste so much llm text. You could write this much shorter and equally clear :)

  4. flub commented on Aug 19, 2026

    @flub
    Member

    done in #209

  5. moved this from 🏗 In progress to ✅ Done in irohon Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions