-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (74 loc) · 2.56 KB
/
Cargo.toml
File metadata and controls
81 lines (74 loc) · 2.56 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
[package]
name = "piing"
version = "0.8.1"
edition = "2024"
authors = ["TeamDman"]
description = "Utility for monitering network stability"
license = "MPL-2.0"
readme = "README.md"
repository = "https://github.com/TeamDman/piing"
keywords = ["network","ping"]
categories = ["command-line-utilities"]
documentation = "https://docs.rs/crate/teamy-windows"
[dependencies]
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.5.40", features = ["derive"] }
cloud_terrastodon_user_input = "0.29.0"
color-eyre = "0.6.5"
eyre = "0.6.12"
hcl-primitives = "0.1.11"
hcl-rs = "0.19.4"
humantime = "2.2.0"
owo-colors = "4.2.3"
ping = "0.5.2"
reqwest = "0.12.20"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
teamy-windows = { version = "0.7.0", features = ["tracing-subscriber"] }
tokio = { version = "1.45.1", features = ["full"] }
tracing = "0.1.43"
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
windows = { version = "0.62.2", features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
"Win32_System_Com",
"Win32_UI_Controls",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
"Win32_NetworkManagement_Ndis",
"Win32_System_Memory",
"Win32_System_DataExchange",
"Win32_Media_Multimedia",
] }
# Enable max optimizations for dependencies, but not for our code:
[profile.dev.package."*"]
opt-level = 3
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization for better performance.
strip = true # Automatically strip symbols from the binary.
codegen-units = 1 # Most optimized when using a single thread to compile; max context
panic = "abort" # Smallest panic code size.
[build-dependencies]
embed-resource = "3.0.6"
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[lints.clippy]
cargo = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
correctness = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
multiple_crate_versions = "allow" # turn this off periodically to see how bad it has gotten :P
# nursery = { level = "warn", priority = -1 } # optional, might cause more false positives
multiple_unsafe_ops_per_block = "deny"
module_inception = "allow"