refactor: Convert some things from static to const and refactor into drop-consts

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-10-13 08:59:00 +11:00
parent ef9f8caa54
commit f0e46c4a46
22 changed files with 76 additions and 47 deletions

13
Cargo.lock generated
View File

@ -821,6 +821,7 @@ version = "0.1.0"
dependencies = [
"database",
"dirs 6.0.0",
"drop-consts",
"log",
"regex",
"rustix 1.1.2",
@ -1091,6 +1092,7 @@ version = "0.1.0"
dependencies = [
"chrono",
"dirs 6.0.0",
"drop-consts",
"log",
"native_model",
"rustbreak",
@ -1376,6 +1378,7 @@ dependencies = [
"deranged 0.4.0",
"dirs 6.0.0",
"download_manager",
"drop-consts",
"droplet-rs",
"dynfmt",
"filetime",
@ -1438,6 +1441,13 @@ dependencies = [
"zstd",
]
[[package]]
name = "drop-consts"
version = "0.1.0"
dependencies = [
"dirs 6.0.0",
]
[[package]]
name = "droplet-rs"
version = "0.7.3"
@ -1865,6 +1875,7 @@ dependencies = [
"boxcar",
"database",
"download_manager",
"drop-consts",
"hex 0.4.3",
"log",
"md5 0.8.0",
@ -4281,6 +4292,7 @@ dependencies = [
"chrono",
"client",
"database",
"drop-consts",
"dynfmt",
"games",
"log",
@ -4640,6 +4652,7 @@ dependencies = [
"chrono",
"client",
"database",
"drop-consts",
"droplet-rs",
"gethostname",
"hex 0.4.3",