-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Cargo.toml
105 lines (92 loc) · 2.76 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
[workspace]
members = [
".",
"mitmproxy-rs",
"mitmproxy-windows/redirector",
"wireguard-test-client",
"mitmproxy-macos/certificate-truster",
]
[workspace.package]
authors = [
"Fabio Valentini <decathorpe@gmail.com>",
"Maximilian Hils <cargo@maximilianhils.com>",
]
version = "0.11.0-dev"
publish = false
repository = "https://github.com/mitmproxy/mitmproxy-rs"
edition = "2021"
rust-version = "1.80" # MSRV
[workspace.lints.clippy]
large_futures = "deny"
[package]
name = "mitmproxy"
license = "MIT"
authors.workspace = true
version.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true
publish.workspace = true
[dependencies]
anyhow = { version = "1.0.92", features = ["backtrace"] }
log = "0.4.22"
once_cell = "1"
pretty-hex = "0.4.1"
rand_core = { version = "0.6.4", features = ["getrandom"] }
smoltcp = "0.11"
tokio = { version = "1.41.0", features = ["macros", "net", "rt-multi-thread", "sync", "time", "io-util", "process"] }
boringtun = { version = "0.6", default-features = false }
x25519-dalek = "2.0.0"
console-subscriber = { version = "0.4.1", optional = true }
image = { version = "0.25.4", default-features = false, features = ["png", "tiff"] }
prost = "0.13.3"
tokio-util = { version = "0.7.12", features = ["codec"] }
futures-util = { version = "0.3.31", features = ["sink"] }
lru_time_cache = "0.11.11"
internet-packet = { version = "0.2.2", features = ["smoltcp"] }
data-encoding = "2.4.0"
hickory-resolver = "0.24.1"
socket2 = "0.5.7"
[patch.crates-io]
# tokio = { path = "../tokio/tokio" }
smoltcp = { git = 'https://github.com/smoltcp-rs/smoltcp', rev = 'ef67e7b46cabf49783053cbf68d8671ed97ff8d4' }
boringtun = { git = 'https://github.com/cloudflare/boringtun', rev = 'e3252d9c4f4c8fc628995330f45369effd4660a1' }
[target.'cfg(windows)'.dependencies.windows]
version = "0.57.0"
features = [
"Win32_Foundation",
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_Networking_WinSock",
"Win32_NetworkManagement_IpHelper",
"Win32_Storage_FileSystem",
"Win32_System_LibraryLoader",
"Win32_System_ProcessStatus",
"Win32_System_Threading",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
]
[target.'cfg(target_os = "macos")'.dependencies]
security-framework = "3.0.0"
nix = { version = "0.29.0", default-features = false, features = ["fs"] }
core-graphics = "0.24"
core-foundation = "0.10"
cocoa = "0.26"
objc = "0.2"
sysinfo = "0.29.10"
[target.'cfg(target_os = "linux")'.dependencies]
tun = { version = "0.7.1", features = ["async"] }
[dev-dependencies]
env_logger = "0.11"
rand = "0.8"
criterion = "0.5.1"
hickory-server = "0.24.1"
[[bench]]
name = "process"
harness = false
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[features]
tracing = ["console-subscriber"]