-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
242 lines (224 loc) · 7.03 KB
/
Cargo.toml
File metadata and controls
242 lines (224 loc) · 7.03 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
[package]
name = "mdns-scanner"
version.workspace = true
description = "Scan a network and create a list of IPs and associated hostnames, including mDNS hostnames and other aliases."
exclude = [".github", "scripts"]
keywords = ["tui", "command-line", "network"]
license.workspace = true
authors.workspace = true
edition.workspace = true
readme.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies]
mds-cli.workspace = true
mds-config.workspace = true
mds-tui.workspace = true
mds-log.workspace = true
ratatui.workspace = true
color-eyre.workspace = true
semver.workspace = true
tokio = { version = "1.47.1", default-features = false }
axoupdater = { workspace = true, features = [
"github_releases",
], optional = true }
mds-keybindings.workspace = true
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = "0.1.47"
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), not(target_os = "freebsd"), target_arch = "x86_64"))'.dependencies]
tikv-jemallocator = { version = "0.6.0", optional = true }
[dev-dependencies]
insta.workspace = true
mds-collector.workspace = true
mds-config.workspace = true
mds-ipinfo.workspace = true
mds-netscan.workspace = true
mds-tui = { workspace = true, features = ["test-utils"] }
mds-util.workspace = true
[profile.release]
opt-level = 3
debug = false
panic = "abort"
strip = true
lto = true
codegen-units = 1
[profile.dev]
debug = "line-tables-only"
[profile.dev.package."*"]
debug = false
[profile.debugging]
inherits = "dev"
debug = true
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
[features]
default = []
# Toggle for the features that are enabled for the distributed prebuilt version
dist = ["jemalloc", "self-update"]
jemalloc = ["tikv-jemallocator"]
# Adds self-update functionality. This feature is only enabled for the cargo-dist installer
# and should be left unselected when building mdns-scanner for package managers.
self-update = ["axoupdater", "mds-cli/self-update"]
[workspace]
members = [
"crates/mds-cli",
"crates/mds-collector",
"crates/mds-config",
"crates/mds-default",
"crates/mds-dns-sd",
"crates/mds-ipinfo", "crates/mds-keybindings",
"crates/mds-log",
"crates/mds-netscan",
"crates/mds-tui",
"crates/mds-util",
]
[workspace.package]
description = "Scan a network and create a list of IPs and associated hostnames, including DNS-SD service instances, mDNS hostnames and other aliases."
version = "0.27.1"
edition = "2024"
license = "MIT OR Apache-2.0"
authors = ["Marc Beck König <mgit@tuta.io>"]
readme = "README.md"
homepage = "https://github.com/CramBL/mdns-scanner"
repository = "https://github.com/CramBL/mdns-scanner"
rust-version = "1.88.0"
[workspace.dependencies]
mds-config.path = "crates/mds-config"
mds-keybindings.path = "crates/mds-keybindings"
mds-dns-sd.path = "crates/mds-dns-sd"
mds-log.path = "crates/mds-log"
mds-util.path = "crates/mds-util"
mds-cli.path = "crates/mds-cli"
mds-tui.path = "crates/mds-tui"
mds-netscan.path = "crates/mds-netscan"
mds-ipinfo.path = "crates/mds-ipinfo"
mds-collector.path = "crates/mds-collector"
mds-default.path = "crates/mds-default"
console = "0.16.3"
serde = { version = "1.0", default-features = false, features = ["derive"] }
axoupdater = { version = "0.10.0", default-features = false }
ringbuffer = "0.16.0"
chrono = { version = "0.4.44", default-features = false, features = [
"std",
"clock",
] }
strum = { version = "0.28", features = ["derive"] }
socket2 = "0.6.3"
parking_lot = { version = "0.12.5", default-features = false }
regex = { version = "1.12.2", features = ["std"], default-features = false }
ratatui = "0.30.0"
semver = "1.0.28"
color-eyre = "0.6.5"
tui-textarea = "0.7.0"
unicode-width = "0.2.0"
threadpool = "1.8.1"
dns-lookup = "3.0.0"
config = { version = "0.15.21", features = ["toml"], default-features = false }
rlimit = "0.11.0"
log = "0.4"
smallvec = "1.15.1"
toml = "1.0.6"
toml_edit = "0.25.8"
dirs = "6.0"
thiserror = "2.0"
# Dev-dependencies
testresult = "0.4.1"
pretty_assertions = "1.4.1"
tempfile = "3"
proptest = "1.11.0"
insta = { version = "1.47.2", features = ["filters"] }
# https://github.com/rhysd/tui-textarea/pull/118
[patch.crates-io]
tui-textarea = { git = "https://github.com/phsym/tui-textarea", rev = "e2ec4d37eb5d638a9a2237e0145bcf908494a329" }
[workspace.lints.rust]
missing_copy_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_import_braces = "warn"
variant_size_differences = "warn"
unexpected_cfgs = "warn"
unsafe_code = "warn"
[workspace.lints.clippy]
disallowed_macros = "warn" # See clippy.toml
disallowed_methods = "warn" # See clippy.toml
disallowed_names = "warn" # See clippy.toml
disallowed_script_idents = "warn" # See clippy.toml
disallowed_types = "warn" # See clippy.toml
indexing_slicing = "allow" # Simply too annoying to use ratatui and byte buffers otherwise
as_ptr_cast_mut = "warn"
await_holding_lock = "warn"
bool_to_int_with_if = "warn"
char_lit_as_u8 = "warn"
checked_conversions = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
fn_to_numeric_cast_any = "warn"
from_iter_instead_of_collect = "warn"
get_unwrap = "warn"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
infinite_loop = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_without_into_iter = "warn"
large_digit_groups = "warn"
large_include_file = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
let_unit_value = "warn"
linkedlist = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
manual_string_new = "warn"
map_err_ignore = "warn"
map_flatten = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
mismatching_type_param_order = "warn"
missing_enforced_import_renames = "warn"
missing_safety_doc = "warn"
mut_mut = "warn"
mutex_integer = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_range_loop = "warn"
negative_feature_names = "warn"
non_zero_suggestions = "warn"
missing_fields_in_debug = "warn"
format_push_string = "warn"
ref_option = "warn"
needless_raw_string_hashes = "warn"
ignored_unit_patterns = "warn"