-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
executable file
·79 lines (60 loc) · 1.75 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
[package]
name = "hyperborealib"
version = "0.1.0"
description = "Hyperborea protocol implementation library"
authors = ["Nikita Podvirnyi <[email protected]>"]
homepage = "https://github.com/HyperboreaHQ/hyperborealib"
repository = "https://github.com/HyperboreaHQ/hyperborealib"
license = "AGPL-3.0"
edition = "2021"
[features]
serde = ["k256/serde"]
tracing = ["dep:tracing"]
# HTTP traits implementations
client-reqwest = ["dep:reqwest"]
server-axum = ["dep:axum", "dep:tokio"]
# Port forwarding implementations
port-forward-upnp = ["dep:easy-upnp"]
# Server backends traits implementation
router-global-table = ["dep:tokio", "tokio/fs"]
traversal-bfs-recursion = []
inbox-stored-queue = ["dep:tokio", "tokio/fs"]
full = [
"serde",
"tracing",
"client-reqwest",
"server-axum",
"port-forward-upnp",
"router-global-table",
"traversal-bfs-recursion",
"inbox-stored-queue"
]
# default = [
# "serde",
# "tracing"
# ]
default = ["full"]
[dependencies]
thiserror = "1.0"
async-trait = "0.1"
lazy_static = "1.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
k256 = { version = "0.13", features = ["ecdh", "sha256"] }
rand_chacha = "0.3"
base64 = "0.22"
# Tracing feature
tracing = { version = "0.1", optional = true }
# UPnP port forwarding
easy-upnp = { version = "0.2.0", optional = true }
# Messages encryption
aes-gcm = { version = "0.10", features = ["std"] }
chacha20poly1305 = "0.10"
# Messages compression
flate2 = "1.0"
brotli = "6.0"
# Client middleware features
reqwest = { version = "0.12", features = ["rustls-tls", "json"], optional = true }
# Server middleware features
axum = { version = "0.7", optional = true }
tokio = { version = "1.39", features = ["rt-multi-thread", "macros"], optional = true }