-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
164 lines (156 loc) · 5.66 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
[workspace.package]
authors = ["SARDONYX"]
categories = ["encoding"]
description = "Havok Behavior (De)Serialization Library(ver. hk_2010.2.0-r1)"
edition = "2021"
keywords = ["serde", "havok"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/SARDONYX-sard/serde-hkx" # NOTE: Without it, CLI & CI build will error.
rust-version = "1.79"
version = "0.4.0"
[workspace]
members = [
"crates/class_generator",
"crates/cli",
"crates/serde_hkx_features",
"crates/havok_classes",
"crates/havok_serde",
"crates/havok_types",
"crates/havok_types_derive",
"crates/havok_types_derive/src/proc_macros",
"crates/inheritance_tree_gen",
"serde_hkx",
]
default-members = ["crates/cli"]
resolver = "2"
[workspace.dependencies]
bitflags = "2.6.0" # To generate flags type
color-print = "0.3.6" # To color example help
educe = "0.6.0" # Custom derive by derive
indexmap = "2.6.0" # Ordering HashMap
jwalk = { version = "0.8" } # To enumarate json class files
num-derive = "0.4" # To serialize Enum & Flags
num-traits = "0.2.19" # To serialize Enum & Flags
parse-display = "0.10.0" # Display derive
parse_int = { version = "0.6" }
proc-macro2 = { version = "1.0.89", default-features = false } # Rust token
quote = { version = "1.0.37", default-features = false } # Rust token gen to more convinience
schemars = { version = "1.0.0-alpha.15" }
serde = { version = "1.0.214", features = ["derive"] } # (De)Serializer
serde_json = { version = "1.0.132" } # To read and write Json files
serde_with = "3.11.0" # Serde utility
similar = "2.6.0" # Create diff
snafu = "0.8.4" # Define all error patterns(with backtrace)
static_assertions = "1.1.0" # Compile tim assertions
syn = { version = "2.0.85", default-features = false } # Rust parser
tokio = { version = "1.41.0" } # Async runtime
tracing = { version = "0.1.40" } # logger
# workspace members
havok_classes = { path = "./crates/havok_classes" }
havok_serde = { path = "./crates/havok_serde" }
havok_types = { path = "./crates/havok_types" }
havok_types_derive = { path = "./crates/havok_types_derive" }
serde_hkx = { path = "./serde_hkx", default-features = false }
serde_hkx_features = { path = "./crates/serde_hkx_features" }
# dev-dependencies
pretty_assertions = "1.4.1" # Color diff assertion
quick_tracing = { version = "0.1.5", features = ["derive"] } # Easy logging
[profile.release]
codegen-units = 1
debug = false
lto = true
opt-level = 3
strip = true
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# allow list
cargo_common_metadata = "allow"
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
allow_attributes_without_reason = "deny"
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"
useless_let_if_seq = "deny"
useless_transmute = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"
zero_sized_map_values = "deny"