Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (54 loc) · 1.63 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (54 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
name = "listeners"
version = "0.6.1"
edition = "2024"
authors = ["Giuliano Bellini <gyulyvgc99@gmail.com>"]
description = "Cross-platform library to find out processes listening on network ports"
readme = "README.md"
repository = "https://github.com/GyulyVGC/listeners"
license = "MIT"
keywords = ["listen", "port", "process", "socket", "pid"]
categories = ["network-programming"]
include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md", "examples/**/*", "build.rs"]
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
dbg_macro = "warn"
print_stdout = "warn"
print_stderr = "warn"
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Threading",
"Win32_NetworkManagement_IpHelper"
] }
[target.'cfg(target_os = "linux")'.dependencies]
rustix = {version = "1.1", features = ["fs"]}
[target.'cfg(any(target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
libc = "0.2"
[target.'cfg(any(target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.build-dependencies]
cc = "1.4"
[dev-dependencies]
http-test-server = "2.1.1"
serial_test = "4.0.1"
criterion = "0.8.2"
serde_json = "1.0.151"
rand = "0.10.2"
[[bench]]
name = "get_all"
harness = false
[[bench]]
name = "get_process_by_active_port"
harness = false
[[bench]]
name = "get_process_by_inactive_port"
harness = false
[[bin]]
name = "spawn_process"
path = "benches/spawn_process/src/main.rs"