listeners 0.4.0

Cross-platform library to find out processes listening on network sockets
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "listeners"
version = "0.4.0"
authors = ["Giuliano Bellini <gyulyvgc99@gmail.com>"]
build = false
include = [
    "src/**/*",
    "LICENSE",
    "README.md",
    "CHANGELOG.md",
    "examples/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform library to find out processes listening on network sockets"
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(target_os = "freebsd")'.dependencies.libc]
version = "0.2.182"

[target.'cfg(target_os = "freebsd")'.build-dependencies.cc]
version = "1.2.56"

[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "1.1.3"
features = ["fs"]

[target.'cfg(target_os = "macos")'.dependencies.byteorder]
version = "1.5.0"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
features = [
    "Win32_Foundation",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_Threading",
]