forked from mitmproxy/mitmproxy_rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
80 lines (69 loc) · 1.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
[workspace]
members = [
".",
"ffi",
"windows-redirector",
"wireguard-test-client",
]
[workspace.package]
authors = [
"Fabio Valentini <[email protected]>",
"Maximilian Hils <[email protected]>",
]
version = "0.2.0-beta.3"
publish = false
repository = "https://github.com/mitmproxy/mitmproxy-rs"
edition = "2021"
rust-version = "1.65.0"
[workspace.dependencies]
bincode = "2.0.0-rc.2"
[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.68", features = ["backtrace"] }
base64 = "0.21"
log = "0.4.17"
once_cell = "1"
pretty-hex = "0.3.0"
rand_core = { version = "0.6.4", features = ["getrandom"] }
smoltcp = "0.8"
tokio = { version = "1.23", features = ["macros", "net", "rt-multi-thread", "sync", "time", "io-util"] }
boringtun = { version = "0.5", default-features = false }
x25519-dalek = "2.0.0-pre.1"
async-trait = "0.1.60"
console-subscriber = { version = "0.1.8", optional = true }
[patch.crates-io]
# tokio = { path = "../tokio/tokio" }
tokio = { git = 'https://github.com/mhils/tokio', branch = 'readmode-fix' }
[target.'cfg(windows)'.dependencies]
bincode.workspace = true
[target.'cfg(windows)'.dependencies.windows]
version = "0.44.0"
features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_NetworkManagement_IpHelper",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Threading",
]
[dev-dependencies]
env_logger = "0.10"
rand = "0.8"
criterion = "0.4.0"
[[bench]]
name = "process"
harness = false
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[features]
tracing = ["console-subscriber"]