[package]
edition = "2024"
name = "listeners"
version = "0.5.1"
authors = ["Giuliano Bellini <gyulyvgc99@gmail.com>"]
build = "build.rs"
include = [
"src/**/*",
"LICENSE",
"README.md",
"CHANGELOG.md",
"examples/**/*",
"build.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform library to find out processes listening on network ports"
readme = "README.md"
keywords = [
"listen",
"port",
"process",
"socket",
"pid",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/GyulyVGC/listeners"
[lib]
name = "listeners"
path = "src/lib.rs"
[[example]]
name = "get_all"
path = "examples/get_all.rs"
[[example]]
name = "get_process_by_port"
path = "examples/get_process_by_port.rs"
[[example]]
name = "print_paths"
path = "examples/print_paths.rs"
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.http-test-server]
version = "2.1.1"
[dev-dependencies.rand]
version = "0.10.0"
[dev-dependencies.serde_json]
version = "1.0.149"
[dev-dependencies.serial_test]
version = "3.3.1"
[target.'cfg(any(target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies.libc]
version = "0.2"
[target.'cfg(any(target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.build-dependencies.cc]
version = "1.2"
[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "1.1"
features = ["fs"]
[target.'cfg(target_os = "macos")'.dependencies.byteorder]
version = "1.5"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Threading",
"Win32_NetworkManagement_IpHelper",
]