-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
215 lines (194 loc) · 6.45 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[package]
name = "telio"
version = "5.2.0"
authors = ["[email protected]"]
edition = "2018"
license = "GPL-3.0-only"
repository = "https://github.com/NordSecurity/libtelio"
[lib]
crate-type = ["cdylib", "lib"]
[features]
pretend_to_be_macos = ["telio-model/pretend_to_be_macos"]
[dependencies]
cfg-if = "1.0.0"
ffi_helpers = "0.3.0"
anyhow.workspace = true
async-trait.workspace = true
base64.workspace = true
crypto_box.workspace = true
futures.workspace = true
ipnet.workspace = true
if-addrs.workspace = true
lazy_static.workspace = true
libc.workspace = true
modifier.workspace = true
num_cpus.workspace = true
parking_lot.workspace = true
regex.workspace = true
rustls.workspace = true
serde.workspace = true
serde_json.workspace = true
rand.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
tracing-subscriber.workspace = true
uniffi.workspace = true
uuid.workspace = true
telio-crypto.workspace = true
telio-dns.workspace = true
telio-network-monitors.workspace = true
telio-firewall.workspace = true
telio-lana.workspace = true
telio-model.workspace = true
telio-nat-detect.workspace = true
telio-nurse.workspace = true
telio-pmtu.workspace = true
telio-proto.workspace = true
telio-proxy.workspace = true
telio-pq.workspace = true
telio-relay.workspace = true
telio-sockets.workspace = true
telio-starcast.workspace = true
telio-task.workspace = true
telio-traversal.workspace = true
telio-utils.workspace = true
telio-wg.workspace = true
once_cell.workspace = true
nat-detect.workspace = true
smart-default.workspace = true
time.workspace = true
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.19"
rustls-platform-verifier.workspace = true
[target.'cfg(windows)'.dependencies]
winapi = { workspace = true, features = ["ntdef", "winerror"] }
[dev-dependencies]
maplit.workspace = true
slog-async = "2.7"
slog-term = "2.8"
mockall.workspace = true
ntest.workspace = true
pretty_assertions.workspace = true
rstest.workspace = true
tokio = { workspace = true, features = ["test-util"] }
telio-dns = { workspace = true, features = ["mockall"] }
telio-firewall = { workspace = true, features = ["mockall"] }
telio-nurse = { workspace = true, features = ["mockall"] }
telio-proxy = { workspace = true, features = ["mockall"] }
telio-pq = { workspace = true, features = ["mockall"] }
telio-test.workspace = true
telio-traversal = { workspace = true, features = ["mockall"] }
telio-utils.workspace = true
telio-wg = { workspace = true, features = ["mockall", "test-adapter"] }
[build-dependencies]
anyhow.workspace = true
cc.workspace = true
uniffi = { workspace = true, features = ["build"] }
[target.'cfg(windows)'.build-dependencies]
winres = "0.1"
[workspace]
resolver = "2"
members = [
"crates/*",
"clis/*",
]
exclude = [
"wireguard-go-rust-wrapper"
]
[workspace.dependencies]
anyhow = "1"
async-trait = "0.1.51"
base64 = "0.13.0"
bytes = "1"
cc = "1.0"
clap = { version = "3.1", features = ["derive"] }
crypto_box = { version = "0.9.1", features = ["std"] }
env_logger = "0.9.0"
futures = "0.3.31"
hashlink = "0.8.3"
hex = "0.4.3"
httparse = "1.8.0"
if-addrs = "0.12.0"
ipnet = { version = "2.3", features = ["serde"] }
itertools = "0.10"
lazy_static = "1.4.0"
libc = "0.2.112"
tracing = { version = "0.1.37", features = ["max_level_trace", "release_max_level_debug"] }
maplit = "1"
mockall = "0.11.3"
mockall_double = "0.3.1"
modifier = "0.1.0"
nat-detect = { git = "https://github.com/NordSecurity/nat-detect.git", tag = "v0.1.8" }
ntest = "0.7"
num_cpus = "1.15.0"
num_enum = "0.6.1"
once_cell = "1"
parking_lot = "0.12"
pnet_packet = "0.34.0"
pretty_assertions = "0.7.2"
proptest = "1.2.0"
proptest-derive = "0.5"
protobuf-codegen-pure = "2"
rand = "0.8"
regex = "1.5.5"
rstest = "0.11.0"
rustc-hash = "1"
rustls = { version = "0.23.16", default-features = false, features = ["ring", "std"] }
rustls-platform-verifier = "0.3.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.10.6"
slog = "2.7"
smart-default = "0.7.1"
sn_fake_clock = "0.4"
socket2 = "0.5"
strum = { version = "0.24.0", features = ["derive"] }
surge-ping = { version = "0.8.0" }
thiserror = "1.0"
time = { version = "0.3.20", features = ["formatting"] }
tokio = ">=1.22"
tracing-subscriber = { version = "0.3.17", features = ["local-time"] }
tracing-appender = "0.2.3"
uniffi = { git = "https://github.com/NordSecurity/uniffi-rs.git", tag = "v0.3.1+v0.25.0" }
url = "2.2.2"
uuid = { version = "1.1.2", features = ["v4"] }
winapi = { version = "0.3", features = ["netioapi", "ws2def"] }
windows = { version = "0.56", features = [
"Win32_Networking_WinSock",
"Win32_NetworkManagement_IpHelper",
] }
neptun = { git = "https://github.com/NordSecurity/neptun.git", tag = "v1.0.0", features = ["device"] }
x25519-dalek = { version = "2.0.1", features = ["reusable_secrets", "static_secrets"] }
telio-crypto = { version = "0.1.0", path = "./crates/telio-crypto" }
telio-dns = { version = "0.1.0", path = "./crates/telio-dns" }
telio-firewall = { version = "0.1.0", path = "./crates/telio-firewall" }
telio-lana = { version = "0.1.0", path = "./crates/telio-lana" }
telio-model = { version = "0.1.0", path = "./crates/telio-model" }
telio-nat-detect = { version = "0.1.0", path = "./crates/telio-nat-detect" }
telio-network-monitors = { version = "0.1.0", path = "./crates/telio-network-monitors" }
telio-nurse = { version = "0.1.0", path = "./crates/telio-nurse" }
telio-proto = { version = "0.1.0", path = "./crates/telio-proto" }
telio-batcher = { version = "0.1.0", path = "./crates/telio-batcher" }
telio-proxy = { version = "0.1.0", path = "./crates/telio-proxy" }
telio-relay = { version = "0.1.0", path = "./crates/telio-relay" }
telio-sockets = { version = "0.1.0", path = "./crates/telio-sockets" }
telio-starcast = { version = "0.1.0", path = "./crates/telio-starcast" }
telio-task = { version = "0.1.0", path = "./crates/telio-task" }
telio-test = { version = "1.0.0", path = "./crates/telio-test" }
telio-traversal = { version = "0.1.0", path = "./crates/telio-traversal" }
telio-utils = { version = "0.1.0", path = "./crates/telio-utils" }
telio-wg = { version = "0.1.0", path = "./crates/telio-wg" }
telio-pq = { version = "0.1.0", path = "./crates/telio-pq" }
telio-pmtu = { version = "0.1.0", path = "./crates/telio-pmtu" }
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
debug = "full"
[profile.dev]
debug = 0
strip = "debuginfo"
#TODO: remove this when anyone starts using telio-starcast
[workspace.metadata.cargo-udeps.ignore]
normal = ["telio-starcast"]