5 releases (3 breaking)

new 0.26.0 May 18, 2024
0.25.0 Apr 7, 2024
0.24.0 Feb 25, 2024
0.23.1 Feb 19, 2024
0.0.1 Jan 22, 2024

#1249 in Network programming

Download history 768/week @ 2024-02-15 1853/week @ 2024-02-22 1397/week @ 2024-02-29 1159/week @ 2024-03-07 1548/week @ 2024-03-14 2346/week @ 2024-03-21 1552/week @ 2024-03-28 2025/week @ 2024-04-04 1922/week @ 2024-04-11 2023/week @ 2024-04-18 2467/week @ 2024-04-25 3114/week @ 2024-05-02 2647/week @ 2024-05-09 3117/week @ 2024-05-16

11,619 downloads per month
Used in 28 crates (9 directly)

MIT license

135KB
3.5K 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.26"

For more details, see examples or doc.

Tested on

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

Dependencies

~0–39MB
~575K SLoC