-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathCargo.toml
192 lines (163 loc) · 4.37 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
# FerrumC Project workspace
#
# Layout of this file:
# - Members of the workspace.
# - Profile compilation settings.
# - Workspace lints
# - Workspace dependencies.
[workspace]
resolver = "2"
#================= Members =================#
members = [
"src/bin",
"src/lib/adapters/anvil",
"src/lib/adapters/anvil",
"src/lib/adapters/nbt",
"src/lib/adapters/nbt",
"src/lib/core",
"src/lib/core/state",
"src/lib/derive_macros",
"src/lib/derive_macros",
"src/lib/ecs",
"src/lib/events",
"src/lib/net",
"src/lib/net/crates/codec",
"src/lib/net/crates/encryption",
"src/lib/plugins",
"src/lib/storage",
"src/lib/text",
"src/lib/utils",
"src/lib/utils/general_purpose",
"src/lib/utils/logging",
"src/lib/utils/profiling",
"src/lib/world",
]
#================== Lints ==================#
[workspace.lints.rust]
unsafe_code = "deny"
unused_unsafe = "deny"
#unsafe_op_in_unsafe_fn = "deny"
#unused_crate_dependencies = "deny"
unused_import_braces = "deny"
unused_lifetimes = "deny"
keyword_idents_2018 = "deny"
keyword_idents_2024 = "deny"
missing_abi = "deny"
future_incompatible = { level = "deny", priority = -1 }
[workspace.lints.clippy]
borrow_as_ptr = "deny"
case_sensitive_file_extension_comparisons = "deny"
cast_lossless = "deny"
cast_ptr_alignment = "deny"
match_bool = "deny"
mut_mut = "deny"
wildcard_dependencies = "deny"
redundant_type_annotations = "deny"
infinite_loop = "deny"
#================= Profile =================#
[profile.release]
[profile.hyper]
inherits = "release"
strip = "symbols"
lto = true
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
panic = "abort"
codegen-units = 1
#=============== Dependencies ==============#
[workspace.dependencies]
# Workspace members
ferrumc-anvil = { path = "src/lib/adapters/anvil" }
ferrumc-config = { path = "src/lib/utils/config" }
ferrumc-core = { path = "src/lib/core" }
ferrumc-ecs = { path = "src/lib/ecs" }
ferrumc-events = { path = "src/lib/events"}
ferrumc-general-purpose = { path = "src/lib/utils/general_purpose" }
ferrumc-logging = { path = "src/lib/utils/logging" }
ferrumc-macros = { path = "src/lib/derive_macros" }
ferrumc-nbt = { path = "src/lib/adapters/nbt" }
ferrumc-net = { path = "src/lib/net" }
ferrumc-net-codec = { path = "src/lib/net/crates/codec" }
ferrumc-net-encryption = { path = "src/lib/net/crates/encryption" }
ferrumc-plugins = { path = "src/lib/plugins" }
ferrumc-profiling = { path = "src/lib/utils/profiling" }
ferrumc-state = { path = "src/lib/core/state" }
ferrumc-storage = { path = "src/lib/storage" }
ferrumc-text = { path = "src/lib/text" }
ferrumc-utils = { path = "src/lib/utils" }
ferrumc-world = { path = "src/lib/world" }
# Asynchronous
tokio = { version = "1.40.0", features = ["full"] }
socket2 = "0.5.7"
futures = "0.3.30"
async-trait = "0.1.82"
# Logging
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tracing-appender = "0.2.3"
log = "0.4.22"
console-subscriber = "0.4.1"
# Concurrency/Parallelism
parking_lot = "0.12.3"
rayon = "1.10.0"
# Network
reqwest = { version = "0.12.9", features = ["json"] }
# Error handling
thiserror = "2.0.3"
# Cryptography
rand = "0.9.0-beta.0"
fnv = "1.0.7"
wyhash = "0.5.0"
# Encoding/Serialization
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
serde_derive = "1.0.210"
base64 = "0.22.1"
bitcode = "0.6.3"
bitcode_derive = "0.6.3"
toml = "0.8.19"
# Bit manipulation
byteorder = "1.5.0"
# Data types
hashbrown = "0.15.0"
tinyvec = "1.8.0"
dashmap = "6.1.0"
uuid = { version = "1.1", features = ["v4", "v3", "serde"] }
whirlwind = "0.1.1"
# Macros
lazy_static = "1.5.0"
quote = "1.0.37"
syn = "2.0.77"
proc-macro2 = "1.0.86"
proc-macro-crate = "3.2.0"
paste = "1.0.15"
maplit = "1.0.2"
macro_rules_attribute = "0.2.0"
# Magic ("life-before-main" initialization, __attribute__((constructor)))
ctor = "0.2.9"
# Compression/Decompression
libflate = "2.1.0"
flate2 = { version = "1.0.33", features = ["zlib"], default-features = false }
zstd = { version = "0.13.2" }
brotli = "7.0.0"
lzzzz = "1.1.0"
yazi = "0.2.0"
bzip2 = "0.4.1"
# Database
heed = "0.20.5"
moka = "0.12.8"
# CLI
clap = "4.5.20"
indicatif = "0.17.8"
colored = "2.1.0"
# Misc
deepsize = "0.2.0"
page_size = "0.6.0"
regex = "1.11.1"
# I/O
tempfile = "3.12.0"
memmap2 = "0.9.5"
# Benchmarking
criterion = { version = "0.5.1", features = ["html_reports"] }