forked from mitmproxy/mitmproxy_rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
90 lines (79 loc) · 2.27 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
[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.5.1"
publish = false
repository = "https://github.com/mitmproxy/mitmproxy-rs"
edition = "2021"
rust-version = "1.70"
[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.79", features = ["backtrace"] }
log = "0.4.18"
once_cell = "1"
pretty-hex = "0.4.1"
rand_core = { version = "0.6.4", features = ["getrandom"] }
smoltcp = "0.10"
tokio = { version = "1.35.1", features = ["macros", "net", "rt-multi-thread", "sync", "time", "io-util", "process"] }
boringtun = { version = "0.6", default-features = false }
x25519-dalek = "=2.0.0-rc.3"
async-trait = "0.1.77"
console-subscriber = { version = "0.2.0", optional = true }
image = "0.24.8"
prost = "0.12.3"
tokio-util = { version = "0.7.10", features = ["codec"] }
futures-util = { version = "0.3.30", features = ["sink"] }
lru_time_cache = "0.11.11"
internet-packet = { version = "0.2.0", features = ["smoltcp"] }
# [patch.crates-io]
# tokio = { path = "../tokio/tokio" }
# smoltcp = { git = 'https://github.com/mhils/smoltcp', rev = 'f65351adfa92db5193f368368cb668bac721fe43' }
[target.'cfg(windows)'.dependencies.windows]
version = "0.52.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]
apple-security-framework = "2.9.2"
nix = { version = "0.27.1", default-features = false, features = ["fs"] }
[dev-dependencies]
env_logger = "0.10"
rand = "0.8"
criterion = "0.5.1"
[[bench]]
name = "process"
harness = false
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[features]
tracing = ["console-subscriber"]