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 2024-12-17 14:32:54 +00:00 committed by strawberry
parent 5f7636f177
commit 71673b2a88
6 changed files with 212 additions and 54 deletions

12
Cargo.lock generated
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"