14 releases (breaking)

new 0.34.1 May 19, 2025
0.33.0 Mar 8, 2025
0.31.0 Sep 22, 2024
0.30.0 Jul 6, 2024
0.24.0 Feb 25, 2024

#100 in Network programming

Download history 7752/week @ 2025-01-31 8423/week @ 2025-02-07 8305/week @ 2025-02-14 8453/week @ 2025-02-21 7918/week @ 2025-02-28 9008/week @ 2025-03-07 10188/week @ 2025-03-14 8089/week @ 2025-03-21 8607/week @ 2025-03-28 8976/week @ 2025-04-04 8764/week @ 2025-04-11 6686/week @ 2025-04-18 7758/week @ 2025-04-25 8836/week @ 2025-05-02 9772/week @ 2025-05-09 6413/week @ 2025-05-16

34,652 downloads per month
Used in 132 crates (25 directly)

MIT license

125KB
3K SLoC

netdev Crates.io License

netdev provides a cross-platform API for network interface.

Key Features

  • Get list of available network interfaces
  • Get default network interface
  • Access additional information related to network interface

Please refer to the Interface struct documentation for detail.

Notice

This project was rebranded from default-net by the author myself for future expansion, continuation, and better alignment with naming conventions.

Supported platform

  • Linux
  • macOS
  • Windows

Usage

Add netdev to your dependencies

[dependencies]
netdev = "0.34"

For more details, see examples or doc.

Tested on

  • Linux
    • Ubuntu
      • 24.04
      • 22.04
      • 21.10
      • 20.04
      • 18.04
    • Kali
      • 2024.2
      • 2023.2
      • 2022.1
      • 2021.1
    • Arch
      • 2024.05.01
  • macOS (Apple Silicon)
    • 14.6.1
  • macOS (Intel)
    • 13.4.1
    • 11.6
  • Windows
    • 11 23H2 22631.4602
    • 11 Pro 22H2 22621.3155
    • 11 22H2 22621.3155
    • 10 21H2 19044.1586
  • FreeBSD
    • 14

Dependencies

~0.1–9MB
~70K SLoC