add worker_affinity feature

split runtime init from main.rs

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-12-18 13:31:58 -05:00
1 parent 5f7636f177
commit 71673b2a88
6 files changed
+212 -54

No files matched your search

Generated
+12
View File
@@ -631,6 +631,7 @@ dependencies = [
"conduwuit_service",
"console-subscriber",
"const-str",
"core_affinity",
"hardened_malloc-rs",
"log",
"opentelemetry",
@@ -933,6 +934,17 @@ version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "core_affinity"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "622892f5635ce1fc38c8f16dfc938553ed64af482edb5e150bf4caedbfcb2304"
dependencies = [
"libc",
"num_cpus",
"winapi",
]
[[package]]
name = "cpufeatures"
version = "0.2.16"