-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
180 lines (170 loc) · 5.25 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
[workspace.package]
version = "0.1.0"
description = ""
categories = ["games", "parsing"]
authors = ["SARDONYX-sard"]
license = "GPL-3.0"
repository = "https://github.com/SARDONYX-sard/d-merge"
readme = "README.md"
edition = "2021"
rust-version = "1.60"
[workspace]
members = [
"core/json_patch",
"core/mod_info",
"core/nemesis_merge",
"core/nemesis_xml",
"core/node_expr",
"core/skyrim_anim_parser",
"core/skyrim_crc",
"gui/backend",
]
resolver = "2"
[workspace.dependencies]
educe = { version = "0.6.0" }
futures = { version = "0.3.31" }
indexmap = { version = "2.7.0", features = ["rayon"] }
jwalk = { version = "0.8.1" }
once_cell = "1.20.2"
phf = "0.11.2"
rayon = "1.10.0"
serde = { version = "1.0.216", features = ["derive"] } # Implement (De)Serialize
serde_json = "1.0.133" # gui: To avoid generate_context error.
serde_repr = "0.1.19" # C like Serialize enum into numbers.(Using progress reporing)
simd-json = "0.14.3"
snafu = "0.8.5"
tokio = { version = "1.42.0", features = [
"fs",
"rt-multi-thread",
] } # Async runtime
tracing = { version = "0.1.41" } # logger
tracing-subscriber = "0.3.19"
winnow = { version = "0.6.20", features = ["simd"] }
serde_hkx = { git = "https://github.com/SARDONYX-sard/serde-hkx", rev = "7d216d45706053673022e8f078ec52463027eeb6", default-features = false }
havok_classes = { git = "https://github.com/SARDONYX-sard/serde-hkx", rev = "7d216d45706053673022e8f078ec52463027eeb6", default-features = false, features = [
"ignore_duplicates",
] }
serde_hkx_features = { git = "https://github.com/SARDONYX-sard/serde-hkx", rev = "7d216d45706053673022e8f078ec52463027eeb6", default-features = false }
# dev-dependencies
pretty_assertions = "1.4.1" # Color diff assertion
quick_tracing = { version = "0.1.5", features = ["derive"] } # Easy logging
# workspace members
skyrim_crc = { path = "./core/skyrim_crc" }
json_patch = { path = "./core/json_patch" }
mod_info = { path = "./core/mod_info" }
nemesis_xml = { path = "./core/nemesis_xml" }
nemesis_merge = { path = "./core/nemesis_merge" }
node_expr = { path = "./core/node_expr" }
skyrim_anim_parser = { path = "./core/skyrim_anim_parser" }
# NOTE: Set this to lto because there is a part of CI that assumes release dir, and use lto only when the tag is typed.
[profile.release]
codegen-units = 1
debug = false
lto = true
opt-level = 3
panic = 'abort'
strip = true
# Use release mode during development to prevent `serde-hkx` stack overflow
# - ref: https://doc.rust-lang.org/cargo/reference/profiles.html#release
[profile.release-no-lto]
inherits = "dev"
opt-level = 3
debug = false
strip = "none"
debug-assertions = false
overflow-checks = false
lto = false
panic = 'unwind'
incremental = false
codegen-units = 16
rpath = false
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# allow list
derive_partial_eq_without_eq = "allow"
future_not_send = "allow"
multiple_crate_versions = "allow"
pub_with_shorthand = "allow"
redundant_pub_crate = "allow"
# custom deny list
char_lit_as_u8 = "deny"
checked_conversions = "deny"
clone_on_ref_ptr = "deny"
cognitive_complexity = "deny"
debug_assert_with_mut_call = "deny"
disallowed_script_idents = "deny"
doc_link_with_quotes = "deny"
empty_enum = "deny"
empty_line_after_outer_attr = "deny"
empty_structs_with_brackets = "deny"
expect_used = "deny"
expl_impl_clone_on_copy = "deny"
explicit_deref_methods = "deny"
explicit_into_iter_loop = "deny"
fallible_impl_from = "deny"
filetype_is_file = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
float_equality_without_abs = "deny"
fn_params_excessive_bools = "deny"
fn_to_numeric_cast_any = "deny"
from_iter_instead_of_collect = "deny"
if_let_mutex = "deny"
implicit_clone = "deny"
imprecise_flops = "deny"
inefficient_to_string = "deny"
invalid_upcast_comparisons = "deny"
items_after_test_module = "deny"
large_digit_groups = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
let_unit_value = "deny"
linkedlist = "deny"
lossy_float_literal = "deny"
macro_use_imports = "deny"
manual_ok_or = "deny"
map_flatten = "deny"
map_unwrap_or = "deny"
match_on_vec_items = "deny"
match_same_arms = "deny"
match_wild_err_arm = "deny"
match_wildcard_for_single_variants = "deny"
mem_forget = "deny"
missing_const_for_fn = "deny"
missing_enforced_import_renames = "deny"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
mut_mut = "deny"
mutex_integer = "deny"
needless_borrow = "deny"
needless_continue = "deny"
needless_for_each = "deny"
option_if_let_else = "deny"
option_option = "deny"
path_buf_push_overwrite = "deny"
ptr_as_ptr = "deny"
rc_mutex = "deny"
ref_option_ref = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_functions_in_if_condition = "deny"
semicolon_if_nothing_returned = "deny"
single_match_else = "deny"
string_add = "deny"
string_add_assign = "deny"
string_lit_as_bytes = "deny"
string_to_string = "deny"
suspicious_operation_groupings = "deny"
trait_duplication_in_bounds = "deny"
unnested_or_patterns = "deny"
unseparated_literal_suffix = "deny"
unused_self = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
useless_let_if_seq = "deny"
useless_transmute = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"