getifs 0.6.0

Cross-platform enumeration of network interfaces and their MTU, gateway, multicast, and local/private/public IP addresses.
Documentation
1
2
3
4
5
6
7
8
use getifs::route_table;

fn main() {
  let routes = route_table().unwrap();
  for r in routes {
    println!("Route: {r}");
  }
}