gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1569Shell 203Rust 109Markdown 993728 Definitions

⎇ 6c655642b614bffd7f4f259d4883e6a6ceeb50f2 recipes/ripgrep-no-jemalloc.patch 69 lines · 2.1 KB History raw

recipes/ripgrep: rg Rust-nativo (Etapa C pieza 4) ffaccb9a9 · sergio ·

1diff --git a/Cargo.lock b/Cargo.lock
2index 5ca69a0..0f0a13c 100644
3--- a/Cargo.lock
4+++ b/Cargo.lock
5@@ -222,26 +222,6 @@ version = "1.0.11"
6 source = "registry+https://github.com/rust-lang/crates.io-index"
7 checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
8 
9-[[package]]
10-name = "jemalloc-sys"
11-version = "0.5.4+5.3.0-patched"
12-source = "registry+https://github.com/rust-lang/crates.io-index"
13-checksum = "ac6c1946e1cea1788cbfde01c993b52a10e2da07f4bac608228d1bed20bfebf2"
14-dependencies = [
15- "cc",
16- "libc",
17-]
18-
19-[[package]]
20-name = "jemallocator"
21-version = "0.5.4"
22-source = "registry+https://github.com/rust-lang/crates.io-index"
23-checksum = "a0de374a9f8e63150e6f5e8a60cc14c668226d7a347d8aee1a45766e3c4dd3bc"
24-dependencies = [
25- "jemalloc-sys",
26- "libc",
27-]
28-
29 [[package]]
30 name = "jobserver"
31 version = "0.1.32"
32@@ -367,7 +347,6 @@ dependencies = [
33  "bstr",
34  "grep",
35  "ignore",
36- "jemallocator",
37  "lexopt",
38  "log",
39  "serde",
40diff --git a/Cargo.toml b/Cargo.toml
41index 2ec69c9..1aa4881 100644
42--- a/Cargo.toml
43+++ b/Cargo.toml
44@@ -59,8 +59,6 @@ serde_json = "1.0.23"
45 termcolor = "1.1.0"
46 textwrap = { version = "0.16.0", default-features = false }
47 
48-[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator]
49-version = "0.5.0"
50 
51 [dev-dependencies]
52 serde = "1.0.77"
53diff --git a/crates/core/main.rs b/crates/core/main.rs
54index 64f35ce..34a5473 100644
55--- a/crates/core/main.rs
56+++ b/crates/core/main.rs
57@@ -35,9 +35,9 @@ mod search;
58 //
59 // Moreover, we only do this on 64-bit systems since jemalloc doesn't support
60 // i686.
61-#[cfg(all(target_env = "musl", target_pointer_width = "64"))]
62-#[global_allocator]
63-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
64+// hammer (Etapa C): jemalloc se quita a propósito. Su build C (jemalloc-sys, autotools) embebe
65+// rutas de OUT_DIR ⇒ rompe la reproducibilidad bit-a-bit que exige el lab. Usamos el allocator
66+// de musl (más lento, pero ripgrep no es allocation-heavy y el build queda 100% Rust, hermético).
67 
68 /// Then, as it was, then again it will be.
69 fn main() -> ExitCode {