-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
117 lines (103 loc) · 2.92 KB
/
Cargo.toml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[lib]
name = "e_libscanner"
# dylib cdylib staticlib rlib proc-macro lib
# https://doc.rust-lang.org/reference/linkage.html?highlight=ffi#linkage
# crate-type = ["cdylib", "staticlib", "rlib"]
[features]
async = ["async-io", "futures-lite", "futures"]
service = ["native-tls", "sync"]
os = []
sync = []
full = ["async", "sync", "os", "service"]
default = ["sync"]
[dependencies]
socket2 = { version = "0.4.4", features = ["all"] }
rayon = "1.5.3"
async-io = { version = "1.7.0", optional = true }
native-tls = { version = "0.2.10", optional = true }
futures = { version = "0.3.21", features = [
"executor",
"thread-pool",
], optional = true }
futures-lite = { version = "1.12.0", optional = true }
pnet_packet = { version = "0.31.0" }
pnet_datalink = { version = "0.31.0" }
once_cell = "^1.1"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0.140"
structopt = "0.3.26"
ipnet = "2.5"
e-utils = { version = "^0.1.20", features = [
"random",
"dns",
"traceroute",
], default-features = false }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.30.0", features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
] }
libc = "0.2"
[[example]]
name = "port_scan"
path = "examples/port_scan.rs"
required-features = ["sync"]
[[example]]
name = "host_scan"
path = "examples/host_scan.rs"
required-features = ["sync"]
[[example]]
name = "async_port_scan"
path = "examples/async_port_scan.rs"
required-features = ["async"]
[[example]]
name = "async_host_scan"
path = "examples/async_host_scan.rs"
required-features = ["async"]
[[example]]
name = "service_detection"
path = "examples/service_detection.rs"
required-features = ["service"]
[[example]]
name = "os"
path = "examples/os.rs"
required-features = ["os"]
[[example]]
name = "cmd_input"
path = "examples/cmd_input.rs"
required-features = []
[[example]]
name = "dns"
path = "examples/dns.rs"
required-features = []
[[example]]
name = "tracert"
path = "examples/tracert.rs"
required-features = []
[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"]
[package]
name = "e-libscanner"
version = "0.1.8"
authors = ["Eternal <[email protected], [email protected]>"]
license-file = "GNU-LICENSE"
edition = "2021"
readme = "README.md"
rust-version = "1.62.0"
description = "The bottom layer is scanned by capturing packets"
documentation = "https://docs.rs/e-libscanner"
homepage = "https://github.com/EternalNight996"
repository = "https://github.com/EternalNight996/e-libscanner"
include = ["src/", "Cargo.toml", "*-LICENSE", "*.md"]
keywords = ["net", "scan", "async", "e-libscanner", "e-"]
categories = [
"network-programming",
"asynchronous",
"os",
"command-line-utilities",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html