Browse Source

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.
pull/1692/head
Felix Yan 3 weeks ago
parent
commit
a57943b77e
No known key found for this signature in database GPG Key ID: 786C63F330D7CB92
  1. 44
      Cargo.lock
  2. 2
      meilisearch-http/Cargo.toml
  3. 2
      meilisearch-http/src/main.rs

44
Cargo.lock

@ -1350,27 +1350,6 @@ version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
[[package]]
name = "jemalloc-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45"
dependencies = [
"cc",
"fs_extra",
"libc",
]
[[package]]
name = "jemallocator"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43ae63fcfc45e99ab3d1b29a46782ad679e98436c3169d15a167a1108a724b69"
dependencies = [
"jemalloc-sys",
"libc",
]
[[package]]
name = "jieba-rs"
version = "0.6.5"
@ -1583,7 +1562,6 @@ dependencies = [
"http",
"indexmap",
"itertools",
"jemallocator",
"log",
"main_error",
"meilisearch-error",
@ -1617,6 +1595,7 @@ dependencies = [
"tempdir",
"tempfile",
"thiserror",
"tikv-jemallocator",
"tokio",
"urlencoding",
"uuid",
@ -2853,6 +2832,27 @@ dependencies = [
"syn 1.0.76",
]
[[package]]
name = "tikv-jemalloc-sys"
version = "0.4.2+5.2.1-patched.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5844e429d797c62945a566f8da4e24c7fe3fbd5d6617fd8bf7a0b7dc1ee0f22e"
dependencies = [
"cc",
"fs_extra",
"libc",
]
[[package]]
name = "tikv-jemallocator"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c14a5a604eb8715bc5785018a37d00739b180bcf609916ddf4393d33d49ccdf"
dependencies = [
"libc",
"tikv-jemalloc-sys",
]
[[package]]
name = "time"
version = "0.1.44"

2
meilisearch-http/Cargo.toml

@ -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"

2
meilisearch-http/src/main.rs

@ -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> {

Loading…
Cancel
Save