9 breaking releases

new 0.32.0 Jan 2, 2025
0.31.0 Sep 22, 2024
0.30.0 Jul 6, 2024
0.24.0 Feb 25, 2024

#128 in Network programming

Download history 4049/week @ 2024-09-18 5475/week @ 2024-09-25 5919/week @ 2024-10-02 4228/week @ 2024-10-09 6048/week @ 2024-10-16 7054/week @ 2024-10-23 7606/week @ 2024-10-30 6358/week @ 2024-11-06 6839/week @ 2024-11-13 5677/week @ 2024-11-20 7809/week @ 2024-11-27 7683/week @ 2024-12-04 7252/week @ 2024-12-11 5048/week @ 2024-12-18 3253/week @ 2024-12-25 6213/week @ 2025-01-01

23,258 downloads per month
Used in 53 crates (18 directly)

MIT license

115KB
2.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.32"

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–8.5MB
~69K SLoC