-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
86 lines (75 loc) · 1.71 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
[package]
name = "doh-client"
version = "3.1.2"
edition = "2021"
authors = ["LinkTed <[email protected]>"]
license = "BSD-3-Clause"
description = "DNS over HTTPS client"
readme = "README.md"
keywords = ["doh", "dns", "http2", "h2"]
include = [
"src/**/*.rs",
"tests/*.rs",
"package/**/*",
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE",
]
repository = "https://github.com/LinkTed/doh-client"
categories = [
"command-line-utilities",
"network-programming"
]
[features]
default = ["socks5", "native-certs", "http-proxy"]
socks5 = ["tokio-socks"]
http-proxy = ["async-http-proxy"]
native-certs = ["rustls-native-certs"]
main-windows-service = ["windows-service", "winlog"]
[dependencies]
libc = "~0.2.137"
base64 = "~0.13.1"
log = "~0.4.17"
env_logger = "~0.9.1"
tokio-rustls = "~0.23.4"
futures = "~0.3.25"
h2 = "~0.3.15"
http = "~0.2.8"
rustls = "~0.20.7"
rustls-pemfile = "~1.0.1"
webpki = "~0.22.0"
bytes = "~1.2.1"
lru = "~0.8.1"
dns-message-parser = "~0.7.0"
lazy_static = "~1.4.0"
thiserror = "~1.0.37"
[dependencies.clap]
version = "~3.2.23"
features = ["cargo"]
[dependencies.async-http-proxy]
version = "~1.2.5"
optional = true
features = ["runtime-tokio", "basic-auth"]
[dependencies.tokio-socks]
version = "~0.5.1"
optional = true
[dependencies.tokio]
version = "~1.20.2"
features = ["rt-multi-thread", "net", "time", "macros"]
[dependencies.rustls-native-certs]
version = "~0.6.2"
optional = true
[dependencies.windows-service]
version = "~0.5.0"
optional = true
[dependencies.winlog]
version = "~0.2.6"
optional = true
[[bin]]
name = "windows-service"
path = "src/main_windows_service.rs"
required-features = ["main-windows-service"]
[profile.release]
lto = true
codegen-units = 1