-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
121 lines (99 loc) · 3.47 KB
/
Cargo.toml
File metadata and controls
121 lines (99 loc) · 3.47 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
[package]
name = "ftr"
version = "0.7.0"
edition = "2021"
authors = ["David Weekly <[email protected]>"]
description = "A fast, parallel ICMP traceroute with ASN lookup, reverse DNS, and ISP detection"
license = "MIT"
repository = "https://github.com/dweekly/ftr"
homepage = "https://github.com/dweekly/ftr"
readme = "README.md"
keywords = ["traceroute", "icmp", "networking", "asn", "diagnostics"]
categories = ["command-line-utilities", "network-programming"]
rust-version = "1.85.0"
[features]
default = ["async"]
async = ["tokio/full"]
[lib]
name = "ftr"
path = "src/lib.rs"
[[bin]]
name = "ftr"
path = "src/main.rs"
[[bench]]
name = "traceroute_bench"
harness = false
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
opt-level = "z" # Optimize for size
[dependencies]
tokio = { version = "1.47", features = ["rt-multi-thread", "time", "net", "macros", "sync", "io-util"] }
socket2 = { version = "0.6", features = ["all"] }
clap = { version = "4.5", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2.0"
getrandom = "0.3"
ip_network_table = "0.2.0"
ip_network = "0.4.1"
ureq = { version = "3", default-features = false, features = ["native-tls"] }
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
# Enable vendored OpenSSL for static linking on Linux
ureq = { version = "3", default-features = false, features = ["native-tls", "vendored"] }
[target.'cfg(target_os = "freebsd")'.dependencies]
libc = "0.2"
[target.'cfg(target_os = "openbsd")'.dependencies]
libc = "0.2"
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.60", features = ["Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_Foundation", "Win32_System_IO", "Win32_System_Threading", "Win32_Security"] }
[dev-dependencies]
assert_cmd = "2.0"
predicates = "3.1"
serde_json = "1.0"
criterion = { version = "0.7", features = ["html_reports"] }
[target.'cfg(target_os = "freebsd")'.dev-dependencies]
libc = "0.2"
[lints.clippy]
# Deny correctness issues (lower priority so specific lints can override)
correctness = { level = "deny", priority = -1 }
suspicious = { level = "deny", priority = -1 }
# Warn on performance issues
perf = { level = "warn", priority = -1 }
# Warn on style issues (with exceptions)
style = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
# Warn on selected pedantic lints
needless_pass_by_value = "warn"
redundant_closure_for_method_calls = "warn"
inefficient_to_string = "warn"
# Warn on unwrap/expect/panic in code
unwrap_used = "warn"
expect_used = "allow" # We use expect() for mutex locks which is acceptable
panic = "warn"
[lints.rust]
# Require documentation for public items
missing_docs = "warn"
[package.metadata.deb]
section = "net"
priority = "optional"
depends = "$auto"
maintainer = "David Weekly <[email protected]>"
copyright = "2025, David Weekly <[email protected]>"
license-file = ["LICENSE", "4"]
extended-description = """\
ftr (Fast TraceRoute) is a high-performance, parallel ICMP traceroute \
implementation written in Rust. It features concurrent probing for faster \
route discovery, automatic ASN (Autonomous System Number) lookups to identify \
network operators, and intelligent hop classification (e.g., local networks, \
IXPs, CDNs)."""
assets = [
["target/release/ftr", "usr/bin/", "755"],
["README.md", "usr/share/doc/ftr/README", "644"],
["CHANGELOG.md", "usr/share/doc/ftr/CHANGELOG", "644"],
]
[package.metadata.cargo-machete]
ignored = []