network-interface 1.0.0

Retrieve system's Network Interfaces on Linux, macOS and Windows on a standarized manner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    #[cfg(target_os = "macos")]
    {
        use cc::Build;
        use std::path::Path;

        let path = Path::new("src")
            .join("target")
            .join("macos")
            .join("ffi")
            .join("lladdr.c");

        Build::new().file(path).compile("ffi");
    }
}