forked from tgstation/rust-g
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
169 lines (159 loc) · 4.43 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
[package]
name = "rust-g"
edition = "2021"
version = "3.1.0"
authors = [
"Bjorn Neergaard <[email protected]>",
"Tad Hardesty <[email protected]>",
"rust-g maintainer team",
]
repository = "https://github.com/tgstation/rust-g"
license = "MIT"
description = "Offloaded task library for the /tg/ Space Station 13 codebase"
rust-version = "1.70"
[lib]
crate-type = ["cdylib"]
[profile.release]
opt-level = 3
codegen-units = 1
lto = true
debug = true
[dependencies]
thiserror = "1.0"
flume = { version = "0.11", optional = true }
chrono = { version = "0.4", optional = true }
base64 = { version = "0.22", optional = true }
md-5 = { version = "0.10", optional = true }
twox-hash = { version = "1.6", optional = true }
const-random = { version = "0.1.18", optional = true }
sha-1 = { version = "0.10", optional = true }
sha2 = { version = "0.10", optional = true }
hex = { version = "0.4", optional = true }
percent-encoding = { version = "2.3", optional = true }
url-dep = { version = "2.5", package = "url", optional = true }
png = { version = "0.17", optional = true }
image = { version = "0.25", optional = true, default-features = false, features = [
"png",
] }
gix = { version = "0.62", optional = true, default-features = false, features = [
"revision",
"max-performance-safe",
] }
noise = { version = "0.9", optional = true }
redis = { version = "0.25", optional = true }
reqwest = { version = "0.12", optional = true, default-features = false, features = [
"blocking",
"rustls-tls",
] }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
lazy_static = { version = "1.4", optional = true }
once_cell = { version = "1.19", optional = true }
mysql = { git = "https://github.com/ZeWaka/rust-mysql-simple.git", tag = "v25.0.0", default_features = false, optional = true }
dashmap = { version = "5.5", optional = true }
zip = { version = "0.6", optional = true }
rand = { version = "0.8", optional = true }
toml-dep = { version = "0.8.12", package = "toml", optional = true }
aho-corasick = { version = "1.1", optional = true }
rayon = { version = "1.10", optional = true }
dbpnoise = { version = "0.1.2", optional = true }
pathfinding = { version = "4.9", optional = true }
num-integer = { version = "0.1.46", optional = true }
dmi = { version = "0.3.5", optional = true }
fast_poisson = { version = "0.5.2", optional = true }
[features]
default = [
"acreplace",
# Aurora special snowflake noise gen
"auroranoise",
# Not default either but we need it
"batchnoise",
"cellularnoise",
"dmi",
"file",
"git",
# Not included by default, but we use it
"hash",
"http",
"json",
"log",
"noise",
"rustls_tls",
"sql",
"time",
"toml",
# Aurora special nowflake module, because of course we have one
"udp",
"url",
]
all = [
"acreplace",
# Aurora special snowflake noise gen
"auroranoise",
# Not default either but we need it
"batchnoise",
"cellularnoise",
"dmi",
"file",
"git",
# Not included by default, but we use it
"hash",
"http",
"json",
"log",
"noise",
"rustls_tls",
"sql",
"time",
"toml",
# Aurora special nowflake module, because of course we have one
"udp",
"url",
"batchnoise",
"hash",
"pathfinder",
"redis_pubsub",
"redis_reliablequeue",
"unzip",
"worleynoise",
]
# default features
acreplace = ["aho-corasick"]
auroranoise = ["fast_poisson"]
cellularnoise = ["rand", "rayon"]
dmi = ["png", "image", "dep:dmi"]
file = []
git = ["gix", "chrono"]
http = ["reqwest", "serde", "serde_json", "once_cell", "jobs"]
json = ["serde", "serde_json"]
log = ["chrono"]
sql = ["mysql", "serde", "serde_json", "once_cell", "dashmap", "jobs"]
time = []
toml = ["serde", "serde_json", "toml-dep"]
udp = []
url = ["url-dep", "percent-encoding"]
# additional features
batchnoise = ["dbpnoise"]
hash = [
"base64",
"const-random",
"md-5",
"hex",
"sha-1",
"sha2",
"twox-hash",
"serde",
"serde_json",
]
pathfinder = ["num-integer", "pathfinding", "serde", "serde_json"]
redis_pubsub = ["flume", "redis", "serde", "serde_json"]
redis_reliablequeue = ["flume", "redis", "serde", "serde_json"]
unzip = ["zip", "jobs"]
worleynoise = ["rand", "rayon"]
# Use the native tls stack for the mysql db
native_tls = ["mysql/default"]
rustls_tls = ["mysql/default-rustls"]
# internal feature-like things
jobs = ["flume"]
[dev-dependencies]
regex = "1"