pin mimalloc and mimalloc-sys #252
This commit is contained in:
parent
e31e61485d
commit
ec56c45f51
3 changed files with 26 additions and 4 deletions
21
Cargo.lock
generated
21
Cargo.lock
generated
|
|
@ -1496,6 +1496,16 @@ version = "0.2.11"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa"
|
checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "libmimalloc-sys"
|
||||||
|
version = "0.1.40"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "07d0e07885d6a754b9c7993f2625187ad694ee985d60f23355ff0e7077261502"
|
||||||
|
dependencies = [
|
||||||
|
"cc",
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "linux-raw-sys"
|
name = "linux-raw-sys"
|
||||||
version = "0.4.15"
|
version = "0.4.15"
|
||||||
|
|
@ -1553,6 +1563,15 @@ dependencies = [
|
||||||
"autocfg",
|
"autocfg",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mimalloc"
|
||||||
|
version = "0.1.44"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "99585191385958383e13f6b822e6b6d8d9cf928e7d286ceb092da92b43c87bc1"
|
||||||
|
dependencies = [
|
||||||
|
"libmimalloc-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "minimal-lexical"
|
name = "minimal-lexical"
|
||||||
version = "0.2.1"
|
version = "0.2.1"
|
||||||
|
|
@ -2074,6 +2093,8 @@ dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"hot_reload",
|
"hot_reload",
|
||||||
|
"libmimalloc-sys",
|
||||||
|
"mimalloc",
|
||||||
"rpxy-acme",
|
"rpxy-acme",
|
||||||
"rpxy-certs",
|
"rpxy-certs",
|
||||||
"rpxy-lib",
|
"rpxy-lib",
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,9 @@ rpxy-lib = { path = "../rpxy-lib/", default-features = false, features = [
|
||||||
"sticky-cookie",
|
"sticky-cookie",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
# TODO: stop using mimalloc doe to compilation failure by musl
|
# TODO: pin mimalloc due to compilation failure by musl
|
||||||
# mimalloc = { version = "*", default-features = false }
|
mimalloc = { version = "=0.1.44", default-features = false }
|
||||||
|
libmimalloc-sys = { version = "=0.1.40" }
|
||||||
anyhow = "1.0.97"
|
anyhow = "1.0.97"
|
||||||
ahash = "0.8.11"
|
ahash = "0.8.11"
|
||||||
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
|
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// #[global_allocator]
|
#[global_allocator]
|
||||||
// static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||||
|
|
||||||
mod config;
|
mod config;
|
||||||
mod constants;
|
mod constants;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue