-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
227 lines (216 loc) · 8.19 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
#cargo-features = ["codegen-backend"]
[workspace]
members = [
"dotstar_toolkit_utils",
"gtx",
"hipstr",
"jdmod",
# "msadpcm",
"nx_opus",
"rgbcx-rs",
"rgbcx-sys",
"rgbcx",
"superstruct",
"ubiart_toolkit_shared_types",
"ubiart_toolkit",
"wii_toolkit",
"xtx",
# "bluestar_toolkit",
]
resolver = "2"
[profile.release]
debug = "line-tables-only"
panic = "abort"
[profile.dev]
panic = "abort"
[profile.bench]
debug = "line-tables-only"
#[profile.dev]
#codegen-backend = "cranelift"
#[profile.dev.package.ubiart_toolkit]
#opt-level = 3
#[profile.dev.package.dotstar_toolkit_utils]
#opt-level = 3
[profile.dev.package."aes"]
opt-level = 3
[profile.dev.package."anyhow"]
opt-level = 3
[profile.dev.package."arbitrary"]
opt-level = 3
[profile.dev.package."bindgen"]
opt-level = 3
[profile.dev.package."bitflags"]
opt-level = 3
[profile.dev.package."bit-vec"]
opt-level = 3
[profile.dev.package."cbc"]
opt-level = 3
[profile.dev.package."cipher"]
opt-level = 3
[profile.dev.package."clap"]
opt-level = 3
[profile.dev.package."crossbeam"]
opt-level = 3
[profile.dev.package."datatest-stable"]
opt-level = 3
[profile.dev.package."dotstar_toolkit_utils"]
opt-level = 3
[profile.dev.package."flate2"]
opt-level = 3
[profile.dev.package."gc_adpcm"]
opt-level = 3
[profile.dev.package."gtx"]
opt-level = 3
[profile.dev.package."hash32"]
opt-level = 3
[profile.dev.package."hipstr"]
opt-level = 3
[profile.dev.package."hound"]
opt-level = 3
[profile.dev.package."image"]
opt-level = 3
[profile.dev.package."image_dds"]
opt-level = 3
[profile.dev.package."itertools"]
opt-level = 3
[profile.dev.package."memmap2"]
opt-level = 3
[profile.dev.package."nx_opus"]
opt-level = 3
[profile.dev.package."ogg"]
opt-level = 3
[profile.dev.package."opus"]
opt-level = 3
[profile.dev.package."ownable"]
opt-level = 3
[profile.dev.package."path-clean"]
opt-level = 3
[profile.dev.package."positioned-io"]
opt-level = 3
[profile.dev.package."quick-xml"]
opt-level = 3
[profile.dev.package."regex"]
opt-level = 3
[profile.dev.package."rgbcx"]
opt-level = 3
[profile.dev.package."rgbcx-sys"]
opt-level = 3
[profile.dev.package."rubato"]
opt-level = 3
[profile.dev.package."serde"]
opt-level = 3
[profile.dev.package."serde_json"]
opt-level = 3
[profile.dev.package."serde_with"]
opt-level = 3
[profile.dev.package."simd-json"]
opt-level = 3
[profile.dev.package."simdutf8"]
opt-level = 3
[profile.dev.package."stable_deref_trait"]
opt-level = 3
[profile.dev.package."superstruct"]
opt-level = 3
[profile.dev.package."tegra_swizzle"]
opt-level = 3
[profile.dev.package."test_eq"]
opt-level = 3
[profile.dev.package."texpresso"]
opt-level = 3
[profile.dev.package."thiserror"]
opt-level = 3
[profile.dev.package."tracing"]
opt-level = 3
[profile.dev.package."tracing-subscriber"]
opt-level = 3
[profile.dev.package."ubiart_toolkit_shared_types"]
opt-level = 3
[profile.dev.package."wiiu_swizzle"]
opt-level = 3
[profile.dev.package."yoke"]
opt-level = 3
[profile.dev.package."zip"]
opt-level = 3
[profile.dev.package."zopfli"]
opt-level = 3
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
as_conversions = "deny"
empty_structs_with_brackets = "deny"
get_unwrap = "deny"
lossy_float_literal = "deny"
missing_assert_message = "deny"
missing_panics_doc = "deny"
allow_attributes_without_reason = "deny"
float_cmp = "allow" # Used a lot in deserialize functions for checking
cognitive_complexity = "allow" # most deserialize functions are "too" complex
multiple_crate_versions = "allow" # Not much we can do about this
similar_names = "allow" # triggers too often
doc_markdown = "allow" # unreliable
missing_errors_doc = "allow" # the error types are descriptive enough
option_if_let_else = "allow" # much less readable than the original
too_many_lines = "allow" # parsers and writers are large and not easy to split
module_name_repetitions = "allow" # they're named like that for a reason
if_not_else = "allow" # code is easier to follow without the lint
struct_field_names = "allow"
# TODO: Too many undocumented stuff in ubiart_toolkit
#missing_docs = "deny"
#missing_docs_in_private_items = "deny"
[workspace.dependencies]
aes = { version = "0.8.4", default-features = false }
anyhow = { version = "1.0.93", default-features = false, features = ["std", "backtrace"] }
arbitrary = { version = "1.4.1", default-features = false, features = ["derive"] }
bindgen = { version = "0.70.1", default-features = false}
bitflags = { version = "2.6.0", default-features = false, features = ["std"] }
bit-vec = { version = "0.8.0", default-features = false }
cbc = { version = "0.1.2", default-features = false, features = ["std", "block-padding"] }
cipher = { version = "0.4.4", default-features = false, features = ["std"] }
clap = { version = "4.5.21", default-features = false, features = ["std", "help", "usage", "suggestions", "derive"] }
crossbeam = { version = "0.8.4", default-features = false, features = ["std", "crossbeam-channel"] }
datatest-stable = { version = "0.2.9", default-features = false }
dotstar_toolkit_utils = { path = "dotstar_toolkit_utils" }
flate2 = { version = "1.0.35", default-features = false, features = ["rust_backend"] }
gc_adpcm = { version = "0.2.0", default-features = false, features = ["std"] }
gtx = { path = "gtx" }
hash32 = { version = "0.3.1", default-features = false }
hipstr= { path = "hipstr", default-features = false, features = ["std", "serde"]}
hound = { version = "3.5.1", default-features = false }
image = { version = "0.25.5", default-features = false, features = ["png"] }
image_dds = { version = "0.6.1", default-features = false, features = ["ddsfile", "image"]}
itertools = { version = "0.13.0", default-features = false }
memmap2 = { version = "0.9.5", default-features = false, features = ["stable_deref_trait"] }
nx_opus = { path = "nx_opus" }
nohash-hasher = { version = "0.2.0", default-features = false, features = ["std"] }
ogg = { version = "0.9.1", default-features = false }
opus = { version = "0.3.0", default-features = false }
ownable = { version = "0.6.2", default-features = false, features = ["std"]}
path-clean = { version = "1.0.1", default-features = false }
phf = { version = "0.11.2", default-features = false, features = ["macros"]}
positioned-io = { version = "0.3.3", default-features = false }
quick-xml = { version = "0.37.0", default-features = false, features = ["serialize", "overlapped-lists"] }
regex = { version = "1.11.1", default-features = false, features = ["std", "perf"] }
rgbcx = { path = "rgbcx" }
rgbcx-sys = { path = "rgbcx-sys" }
rubato = { version = "0.16.1", default-features = false, features = []}
serde = { version = "1.0.214", default-features = false, features = ["std", "derive"] }
serde_json = { version = "1.0.132", default-features = false, features = ["std"] }
serde_with = { version = "3.11.0", default-features = false, features = ["std", "macros"] }
simd-json = { version = "0.14.2", default-features = false, features = ["runtime-detection", "swar-number-parsing"]}
simdutf8 = { version = "0.1.5", default-features = false, features = ["std", "aarch64_neon"]}
stable_deref_trait = { version = "1.2.0", default-features = false, features = ["std"] }
superstruct = { path = "superstruct", version = "0.8.0", default-features = false, features = [] }
tegra_swizzle = { version = "0.4.0", default-features = false, features = ["std"]}
test_eq = { version = "0.1.1", default-features = true }
texpresso = { version = "2.0.1", default-features = false }
thiserror = { version = "2.0.3", default-features = false, features = ["std"] }
tracing = { version = "0.1.40", default-features = false, features = ["std", "attributes"] }
tracing-subscriber = { version = "0.3.18", features = ["std", "fmt", "ansi", "local-time", "time", "env-filter"] }
ubiart_toolkit = { path = "ubiart_toolkit" }
ubiart_toolkit_shared_types = { path = "ubiart_toolkit_shared_types" }
wiiu_swizzle = { version = "0.3.0", default-features = false, features = ["std"] }
yoke = { version = "0.7.4", default-features = false, features = ["alloc", "derive"] }
zip = { version = "2.2.0", default-features = false, features = ["deflate-flate2"] }
zopfli = { version = "0.8.1", default-features = false, features = ["zlib", "std"] }