netstat-esr 0.8.1

Maintained version of netstat-rs which is a cross-platform library to retrieve network sockets information.
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
    #[cfg(target_os = "macos")]
    {
        cc::Build::new()
            .file("src/integrations/osx/ext/get_netstat.c") // Path to your C file
            .compile("get_netstat"); // Name of the compiled library

        println!("cargo:rerun-if-changed=src/integrations/osx/ext/get_netstat.c");
    }
}