diff --git a/Cargo.lock b/Cargo.lock index a3c95d5..14da9b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1352,8 +1352,7 @@ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" [[package]] name = "libmimalloc-sys" version = "0.1.49" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9" +source = "git+https://github.com/xonatius/mimalloc_rust.git?rev=6d4c41bb10c6d9da1d1b6f07b38c4cc051667f11#6d4c41bb10c6d9da1d1b6f07b38c4cc051667f11" dependencies = [ "cc", ] @@ -1476,8 +1475,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "mimalloc" version = "0.1.52" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862" +source = "git+https://github.com/xonatius/mimalloc_rust.git?rev=6d4c41bb10c6d9da1d1b6f07b38c4cc051667f11#6d4c41bb10c6d9da1d1b6f07b38c4cc051667f11" dependencies = [ "libmimalloc-sys", ] @@ -2932,7 +2930,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys", diff --git a/Cargo.toml b/Cargo.toml index acbc902..2bd87bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,12 +17,13 @@ name = "prosody" [dependencies] chrono = "0.4" futures = "0.3" -mimalloc = { version = "0.1", features = ["local_dynamic_tls"] } +# TODO: Use a crates.io release after it includes the fix for https://github.com/microsoft/mimalloc/issues/1287. +mimalloc = { git = "https://github.com/xonatius/mimalloc_rust.git", rev = "6d4c41bb10c6d9da1d1b6f07b38c4cc051667f11", features = [ + "local_dynamic_tls", +] } opentelemetry = "0.32" parking_lot = "0.12" -prosody = { version = "0.6.0", features = [ - "libz-static", -] } +prosody = { version = "0.6.0", features = ["libz-static"] } pyo3 = { version = "0.29", features = ["chrono"] } pyo3-async-runtimes = { version = "0.29", features = ["tokio-runtime"] } pythonize = "0.29"