4 releases (2 breaking)

0.25.0 Apr 7, 2024
0.24.0 Feb 25, 2024
0.23.1 Feb 19, 2024
0.22.0 Feb 18, 2024
0.0.1 Jan 22, 2024

#1514 in Network programming

Download history 1/week @ 2024-01-20 1143/week @ 2024-02-17 1898/week @ 2024-02-24 1400/week @ 2024-03-02 1056/week @ 2024-03-09 1736/week @ 2024-03-16 2274/week @ 2024-03-23 1653/week @ 2024-03-30 1678/week @ 2024-04-06

7,499 downloads per month
Used in 11 crates (5 directly)

MIT license

130KB
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.25"

For more details, see examples or doc.

Tested on

  • Linux
    • Ubuntu
      • 22.04
      • 21.10
      • 20.04
      • 18.04
    • Kali
      • 2023.2
      • 2022.1
      • 2021.1
  • macOS
    • 13.4.1
    • 11.6
  • Windows
    • 11 Pro 22H2 22621.3155
    • 11 22H2 22621.3155
    • 10 21H2 19044.1586

Dependencies

~0–40MB
~575K SLoC