-
Notifications
You must be signed in to change notification settings - Fork 354
/
Cargo.toml
153 lines (138 loc) · 3.67 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[workspace.package]
authors = ["Mullvad VPN"]
repository = "https://github.com/mullvad/mullvadvpn-app/"
license = "GPL-3.0"
edition = "2021"
rust-version = "1.80.0"
[workspace]
resolver = "2"
members = [
"android/translations-converter",
"desktop/packages/nseventforwarder",
"mullvad-api",
"mullvad-cli",
"mullvad-daemon",
"mullvad-exclude",
"mullvad-fs",
"mullvad-ios",
"mullvad-jni",
"mullvad-management-interface",
"mullvad-nsis",
"mullvad-encrypted-dns-proxy",
"mullvad-paths",
"mullvad-problem-report",
"mullvad-relay-selector",
"mullvad-setup",
"mullvad-types",
"mullvad-types/intersection-derive",
"mullvad-version",
"talpid-core",
"talpid-dbus",
"talpid-future",
"talpid-macos",
"talpid-net",
"talpid-openvpn",
"talpid-openvpn-plugin",
"talpid-platform-metadata",
"talpid-routing",
"talpid-time",
"talpid-tunnel",
"talpid-tunnel-config-client",
"talpid-windows",
"talpid-wireguard",
"tunnel-obfuscation",
"wireguard-go-rs",
"windows-installer",
]
# The default members may exclude packages that cannot be built for all targets, or that do not always
# need to be built
default-members = [
"android/translations-converter",
"desktop/packages/nseventforwarder",
"mullvad-api",
"mullvad-cli",
"mullvad-daemon",
"mullvad-exclude",
"mullvad-fs",
"mullvad-ios",
"mullvad-jni",
"mullvad-management-interface",
"mullvad-nsis",
"mullvad-encrypted-dns-proxy",
"mullvad-paths",
"mullvad-problem-report",
"mullvad-relay-selector",
"mullvad-setup",
"mullvad-types",
"mullvad-types/intersection-derive",
"mullvad-version",
"talpid-core",
"talpid-dbus",
"talpid-future",
"talpid-macos",
"talpid-net",
"talpid-openvpn",
"talpid-openvpn-plugin",
"talpid-platform-metadata",
"talpid-routing",
"talpid-time",
"talpid-tunnel",
"talpid-tunnel-config-client",
"talpid-windows",
"talpid-wireguard",
"tunnel-obfuscation",
"wireguard-go-rs",
]
# Keep all lints in sync with `test/Cargo.toml`
[workspace.lints.rust]
# Security
non_ascii_idents = "forbid"
# Deny old style Rust
rust_2018_idioms = { level = "deny", priority = -1 }
macro_use_extern_crate = "deny"
absolute_paths_not_starting_with_crate = "deny"
# Easy to read style and opinionated best practices
explicit_outlives_requirements = "warn"
missing_abi = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
single_use_lifetimes = "warn"
[workspace.lints.clippy]
unused_async = "deny"
[workspace.dependencies]
hickory-proto = "0.24.2"
hickory-resolver = "0.24.2"
hickory-server = { version = "0.24.2", features = ["resolver"] }
tokio = { version = "1.42" }
parity-tokio-ipc = "0.9"
futures = "0.3.15"
# Tonic and related crates
tonic = "0.12.3"
tonic-build = { version = "0.10.0", default-features = false }
tower = { version = "0.5.1", features = ["util"] }
prost = "0.13.3"
prost-types = "0.13.3"
hyper-util = {version = "0.1.8", features = ["client", "client-legacy", "http2", "http1"]}
env_logger = "0.10.0"
thiserror = "1.0.57"
log = "0.4"
shadowsocks = "1.20.3"
shadowsocks-service = "1.20.3"
windows-sys = "0.52.0"
chrono = { version = "0.4.26", default-features = false }
clap = { version = "4.4.18", features = ["cargo", "derive"] }
once_cell = "1.16"
serde = "1.0.204"
serde_json = "1.0.122"
ipnetwork = "0.20"
# Test dependencies
proptest = "1.4"
[profile.release]
opt-level = "s"
lto = true
strip = true
# Key generation may take over one minute without optimizations enabled.
[profile.dev.package."classic-mceliece-rust"]
opt-level = 3
[profile.release.package."classic-mceliece-rust"]
opt-level = 3