aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/yazi/no-jemalloc.patch
blob: 713a0d1d82b5821a895e9de7b9a7beb0703f5371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
diff --git a/Cargo.lock b/Cargo.lock
index 7644bb7..513617b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4350,26 +4350,6 @@ dependencies = [
  "cfg-if",
 ]

-[[package]]
-name = "tikv-jemalloc-sys"
-version = "0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd8aa5b2ab86a2cefa406d889139c162cbb230092f7d1d7cbc1716405d852a3b"
-dependencies = [
- "cc",
- "libc",
-]
-
-[[package]]
-name = "tikv-jemallocator"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0359b4327f954e0567e69fb191cf1436617748813819c94b8cd4a431422d053a"
-dependencies = [
- "libc",
- "tikv-jemalloc-sys",
-]
-
 [[package]]
 name = "time"
 version = "0.3.44"
@@ -5616,7 +5596,6 @@ dependencies = [
  "ratatui",
  "scopeguard",
  "signal-hook-tokio",
- "tikv-jemallocator",
  "tokio",
  "tokio-stream",
  "tracing",
diff --git a/yazi-fm/Cargo.toml b/yazi-fm/Cargo.toml
index 914c684..09c9425 100644
--- a/yazi-fm/Cargo.toml
+++ b/yazi-fm/Cargo.toml
@@ -69,9 +69,6 @@ signal-hook-tokio = { version = "0.4.0", features = [ "futures-v0_3" ] }
 [target.'cfg(target_os = "macos")'.dependencies]
 crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] }

-[target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies]
-tikv-jemallocator = "0.6.1"
-
 [[bin]]
 name = "yazi"
 path = "src/main.rs"
diff --git a/yazi-fm/src/main.rs b/yazi-fm/src/main.rs
index 6f7f015..fffdfce 100644
--- a/yazi-fm/src/main.rs
+++ b/yazi-fm/src/main.rs
@@ -1,7 +1,3 @@
-#[cfg(all(not(target_os = "macos"), not(target_os = "windows")))]
-#[global_allocator]
-static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
-
 yazi_macro::mod_pub!(app cmp confirm help input mgr notify pick spot tasks which);

 yazi_macro::mod_flat!(dispatcher executor logs panic root router signals term);