Use tikv-jemallocator instead of jemallocator

`jemallocator` has been abandoned for nearly two years, and `rustc`
itself moved to use `tikv-jemallocator` instead:
3965773ae7

Let's switch to a better maintained version.
This commit is contained in:
Felix Yan 2021-09-10 01:20:46 +03:00
parent 6fafdb7711
commit a57943b77e
No known key found for this signature in database
GPG key ID: 786C63F330D7CB92
3 changed files with 24 additions and 24 deletions

View file

@ -100,7 +100,7 @@ analytics = ["whoami", "reqwest"]
default = ["analytics", "mini-dashboard"]
[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = "0.3.2"
tikv-jemallocator = "0.4.1"
[package.metadata.mini-dashboard]
assets-url = "https://github.com/meilisearch/mini-dashboard/releases/download/v0.1.4/build.zip"

View file

@ -10,7 +10,7 @@ use meilisearch_http::analytics;
#[cfg(target_os = "linux")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
#[actix_web::main]
async fn main() -> Result<(), MainError> {