-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
261 lines (243 loc) · 5.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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
[workspace]
members = [
"macro",
"scripts"
]
[workspace.package]
version = "0.7.0"
edition = "2021"
authors = ["Meadowsys <meadowsys@kiwin.gay>"]
repository = "https://github.com/meadowsys/wiwi"
license = "MIT"
[package]
name = "wiwi"
description = "A library, of, Stuff™"
version = { workspace = true }
edition = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
exclude = [
".cargo",
".github",
"codecov.yml",
"rust-toolchain.toml",
]
categories = [
# "data-structures" # ?
# "internationalization" # ?
# "localization" # ?
# "mathematics" # ?
# "encoding" # ?
"rust-patterns"
# "wasm" # ?
# "web-programming" # ?
]
keywords = [
"fundamental",
"general",
"general-purpose",
"z85"
]
[dependencies]
wiwiwiwiwi = { path = "macro", version = "=0.7.0" }
argon2 = { version = "0.5.3", optional = true }
chacha20poly1305 = { version = "0.10.1", optional = true }
chrono = { version = "0.4.35", optional = true, features = ["clock"] }
hashbrown = { version = "0.14.3", optional = true, features = ["ahash"] }
httparse = { version = "1.8.0", optional = true }
image = { version = "0.25.1", optional = true }
ordered-float = { version = "4.2.0", optional = true }
p384 = { version = "0.13.0", optional = true }
parking_lot = { version = "0.12.1", optional = true }
rand = { version = "0.8.5", optional = true }
serde_json = { version = "1.0.116", optional = true }
spin_sleep = { version = "1.2.0", optional = true }
thiserror = { version = "1.0.58", optional = true }
tokio = { version = "1.36.0", optional = true, features = ["full"] }
url = { version = "2.5.0", optional = true }
uuid = { version = "1.8.0", optional = true }
zeroize = { version = "1.7.0", optional = true }
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
hex = "0.4.3"
rand = "0.8.5"
z85 = "3.0.5"
[features]
# Adding new unstable feature:
# - append `-unstable` to its name
# - document it in README (note it is unstable by putting parens after name)
# - make sure to add to `all-unstable` feature
# - check doc cfg_attrs at top of lib.rs
# - make sure to add it to "No features enabled!" thing
# - also check the top of the prelude module
# - make sure the `pub mod` declaration in lib.rs has the right feature attr on it
# - `pub mod` declaration should also have the docsrs cfg attr on it
# In total: the module addition should have 1 change in README, 2 changes in
# Cargo.toml, 3 changes in lib.rs, 1 change in prelude.rs, and of course
# the module file itself
# TODO: write something similar for below graduating feats out of unstable
#
# Graduating feature out of unstable:
# - remove `-unstable` from feature name below
# - update its entry in README
# - move it from `all-unstable` to `all`
# - rename it in cfg_attrs at top of lib.rs
# - rename it in "No features enabled!" thing
# - also check the top of the prelude module
# - update its name in the feature gate / doc attr of its `pub mod` declaration in lib.rs
# - check/add/update its prelude entries
#
# No longer necessary (but good to do anyways I guess):
# - check workflow files
# - check below docs.rs config
# - NOTE: this _is_ good for the docs deploy workflow
#
# It would be good to occasionally check the dependencies too, update them,
# remove ones that aren't part of any feature anymore, etc
all = [
"clock-timer",
"debounce",
"h",
"hex",
"lazy-wrap",
"nominal",
"to-maybeuninit",
"z85"
]
all-unstable = [
"all",
"auth-unstable",
"bitstream-unstable",
"chainer-unstable",
"defer-unstable",
"id-unstable",
"int-unstable",
"iter-unstable",
"lsl-unstable",
"memory-usage-unstable",
"minesweeper-unstable",
"path-unstable",
"serialiser-unstable",
"string-pool-unstable",
"sudoku-unstable"
]
auth-unstable = [
"dep:argon2",
"dep:chacha20poly1305",
"dep:chrono",
"dep:p384",
"dep:rand",
"dep:thiserror",
"dep:zeroize",
"z85"
]
# base16 = [
# "dep:thiserror",
# "hex"
# ]
# base32 = [
# "dep:thiserror"
# ]
# base64 = [
# "dep:thiserror"
# ]
bitstream-unstable = []
chainer-unstable = [
"iter-unstable",
"to-maybeuninit"
]
clock-timer = [
"dep:chrono",
"dep:tokio"
]
debounce = [
"dep:chrono",
"dep:tokio"
]
defer-unstable = []
h = [
"dep:thiserror"
]
hex = [
"dep:thiserror"
]
id-unstable = [
"dep:rand"
]
int-unstable = [
"wiwiwiwiwi/int"
]
iter-unstable = []
lazy-wrap = [
"dep:parking_lot"
]
lsl-unstable = [
"dep:hashbrown",
"dep:spin_sleep",
"dep:uuid",
"hex",
"id-unstable"
]
memory-usage-unstable = [
"wiwiwiwiwi/memory-usage"
]
minesweeper-unstable = [
"dep:rand",
"chainer-unstable",
"z85"
]
nominal = []
path-unstable = []
serialiser-unstable = [
"dep:ordered-float"
]
string-pool-unstable = [
"dep:hashbrown",
"lazy-wrap"
]
sudoku-unstable = [
"chainer-unstable",
"iter-unstable"
]
to-maybeuninit = []
# ws = [
# "dep:httparse",
# "dep:thiserror",
# "dep:url"
# ]
z85 = [
"dep:thiserror"
]
# addon features
hashbrown = ["dep:hashbrown"]
image = ["dep:image"]
serde-json = ["dep:serde_json"]
[[bench]]
name = "hex-and-z85"
required-features = [
# "base32",
# "base64",
"hex",
"z85",
]
harness = false
[profile.bench]
lto = "thin"
[package.metadata.docs.rs]
# https://docs.rs/about/metadata
# https://users.rust-lang.org/t/how-to-document-optional-features-in-api-docs/64577
rustdoc-args = ["--cfg", "docsrs"]
features = [
"all",
# addon features
"hashbrown",
"image",
"serde-json"
]
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc"
]