forked from NordSecurity/libtelio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
189 lines (171 loc) · 5.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
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
[package]
name = "telio"
version = "5.0.0"
authors = ["[email protected]"]
edition = "2018"
license = "GPL-3.0-only"
repository = "https://github.com/NordSecurity/libtelio"
[package.metadata.cargo-udeps.ignore]
# Ignore wasm-bindgen dependency on gitlab cargo-lint-udeps
normal = ["wasm-bindgen"]
[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"
num_cpus = "1.15.0"
wasm-bindgen = "=0.2.83" # Only for compatability with moose wasm version
h2 = "=0.3.26" # RUSTSEC-2024-0332
anyhow.workspace = true
async-trait.workspace = true
base64.workspace = true
crypto_box.workspace = true
futures.workspace = true
ipnetwork.workspace = true
lazy_static.workspace = true
libc.workspace = true
modifier.workspace = true
parking_lot.workspace = true
serde.workspace = true
serde_with.workspace = true
serde_json.workspace = true
rand.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
uniffi.workspace = true
uuid.workspace = true
telio-crypto.workspace = true
telio-dns.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-task.workspace = true
telio-traversal.workspace = true
telio-utils.workspace = true
telio-wg.workspace = true
once_cell.workspace = true
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.19"
rustls-platform-verifier = { git = "https://github.com/tomaszklak/rustls-platform-verifier.git", rev = "2db68dd17d76eadb062176b913040341b99ef4f3" }
[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-proxy = { workspace = true, features = ["mockall"] }
telio-pq = { workspace = true, features = ["mockall"] }
telio-test.workspace = true
telio-traversal = { workspace = true, features = ["mockall"] }
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.8.2", features = ["std"] }
env_logger = "0.9.0"
futures = "0.3"
hashlink = "0.8.3"
hex = "0.4.3"
httparse = "1.8.0"
ipnet = "2.3"
ipnetwork = "0.18"
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"
modifier = "0.1.0"
nat-detect = { git = "https://github.com/NordSecurity/nat-detect.git", tag = "v0.1.8" }
ntest = "0.7"
num_enum = "0.6.1"
once_cell = "1"
parking_lot = "0.12"
pnet_packet = "0.33.0"
pretty_assertions = "0.7.2"
proptest = "1.2.0"
proptest-derive = "0.3.0"
protobuf-codegen-pure = "2"
rand = "0.8"
rstest = "0.11.0"
rupnp = { version = "1.1.0", default-features = false }
rustc-hash = "1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.7.0"
sha2 = "0.10.6"
slog = "2.7"
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"] }
boringtun = { git = "https://github.com/NordSecurity/boringtun.git", tag = "v1.1.11" }
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-nurse = { version = "0.1.0", path = "./crates/telio-nurse" }
telio-proto = { version = "0.1.0", path = "./crates/telio-proto" }
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-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