-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
147 lines (133 loc) · 3.83 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
[package]
name = "wirespider"
version = "0.5.1"
authors = ["Linus Karl <linus@lotz.li>"]
license = "GPL-3"
edition = "2021"
readme = "README.md"
description = "Wirespider distributes wireguard tunnel configurations and routes"
[dependencies]
clap = { version = "4", features = ["derive", "env"] }
clap_complete = "4"
lazy_static = "1.5.0"
itertools = "0.13.0"
#wireguard
wireguard-uapi = "3"
boringtun = { git = "https://github.com/firezone/boringtun.git", rev = "7cae12daa8978d705b807ab87a10f13756c89fb7" }
x25519-dalek = "2.0.1"
# grpc
tonic = { version = "0.12", features = ["tls", "tls-webpki-roots"] }
prost = "0.13"
tokio = { version = "1", features = [
"macros",
"rt-multi-thread",
"sync",
"net",
"process",
"signal",
] }
tokio-stream = { version = "0.1", features = ["net", "time"] }
async-stream = "0.3"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
typed-builder = "0.20.0"
#database
sqlx = { version = "0.8", default-features = false, features = [
"runtime-tokio-rustls",
"sqlite",
"uuid",
"migrate",
"macros",
] }
base64 = "0.22"
rand = { version = "0.8", features = ["getrandom"] }
ipnet = "2.10"
iprange = "0.6.7"
macaddr = "1.0"
uuid = { version = "1", features = ["v4"] }
# tracing
tracing = { version = "0.1", features = ["release_max_level_debug"] }
tracing-subscriber = "0.3"
tracing-error = "0.2"
tracing-unwrap = "1.0"
# error handling
anyhow = "1"
thiserror = "2"
# nat traversal
stun_codec = "0.3.5"
bytecodec = "0.4.15"
trackable = "1.3.0"
network-interface = "2"
# shutdown
tokio-graceful-shutdown = "0.15"
# retry
backoff = { version = "0.4.0", features = ["futures", "tokio"] }
[build-dependencies]
tonic-build = { version = "0.12" }
prost-build = { version = "0.13" }
clap = { version = "4", features = ["derive", "env"] }
clap_complete = "4"
uuid = "1"
ipnet = "2.10.1"
tonic = { version = "0.12", features = ["tls", "tls-webpki-roots"] }
[features]
network-test = []
[package.metadata.deb]
maintainer-scripts = "debian/"
depends = "$auto, wireguard-tools, iproute2"
section = "net"
assets = [
[
"target/release/wirespider",
"usr/bin/",
"755",
],
[
"README.md",
"usr/share/doc/wirespider/README",
"644",
],
[
"CHANGELOG.md",
"usr/share/doc/wirespider/CHANGELOG",
"644",
],
[
"systemd/system/wirespider-client@.service",
"lib/systemd/system/",
"644",
],
[
"systemd/system/wirespider-server.service",
"lib/systemd/system/",
"644",
],
[
"systemd/wirespider/wg0",
"etc/wirespider/wg0-example",
"644",
],
[
"completions/_wirespider",
"usr/share/zsh/site-functions/",
"644",
],
[
"completions/wirespider.bash",
"usr/share/bash-completion/completions/wirespider",
"644",
],
]
[package.metadata.generate-rpm.requires]
wireguard-tools = "*"
iproute2 = "*"
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/wirespider", dest = "/usr/bin/", mode = "0755" },
{ source = "README.md", dest = "/usr/share/doc/wirespider/README", mode = "644" },
{ source = "CHANGELOG.md", dest = "/usr/share/doc/wirespider/CHANGELOG", mode = "644" },
{ source = "systemd/system/wirespider-client@.service", dest = "/lib/systemd/system/wirespider-client@.service", mode = "644" },
{ source = "systemd/system/wirespider-server.service", dest = "/lib/systemd/system/wirespider-server.service", mode = "644" },
{ source = "systemd/wirespider/wg0", dest = "/etc/wirespider/wg0-example", mode = "644" },
{ source = "completions/_wirespider", dest = "/usr/share/zsh/site-functions/_wirespider", mode = "644" },
{ source = "completions/wirespider.bash", dest = "/usr/share/bash-completion/completions/wirespider", mode = "644" },
]