swm_version: 1 base: distro_version: dev pins: {} mutations: - type: source_patch repo: https://github.com/BurntSushi/ripgrep commit: 4649aa9700619f94cf9c66876e9549d83420e16c patches: - "diff --git a/Cargo.lock b/Cargo.lock\nindex 5ca69a0..0f0a13c 100644\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -222,26 +222,6 @@ version = \"1.0.11\"\n source = \"registry+https://github.com/rust-lang/crates.io-index\"\n checksum = \"49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b\"\n \n-[[package]]\n-name = \"jemalloc-sys\"\n-version = \"0.5.4+5.3.0-patched\"\n-source = \"registry+https://github.com/rust-lang/crates.io-index\"\n-checksum = \"ac6c1946e1cea1788cbfde01c993b52a10e2da07f4bac608228d1bed20bfebf2\"\n-dependencies = [\n- \"cc\",\n- \"libc\",\n-]\n-\n-[[package]]\n-name = \"jemallocator\"\n-version = \"0.5.4\"\n-source = \"registry+https://github.com/rust-lang/crates.io-index\"\n-checksum = \"a0de374a9f8e63150e6f5e8a60cc14c668226d7a347d8aee1a45766e3c4dd3bc\"\n-dependencies = [\n- \"jemalloc-sys\",\n- \"libc\",\n-]\n-\n [[package]]\n name = \"jobserver\"\n version = \"0.1.32\"\n@@ -367,7 +347,6 @@ dependencies = [\n \"bstr\",\n \"grep\",\n \"ignore\",\n- \"jemallocator\",\n \"lexopt\",\n \"log\",\n \"serde\",\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 2ec69c9..1aa4881 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -59,8 +59,6 @@ serde_json = \"1.0.23\"\n termcolor = \"1.1.0\"\n textwrap = { version = \"0.16.0\", default-features = false }\n \n-[target.'cfg(all(target_env = \"musl\", target_pointer_width = \"64\"))'.dependencies.jemallocator]\n-version = \"0.5.0\"\n \n [dev-dependencies]\n serde = \"1.0.77\"\ndiff --git a/crates/core/main.rs b/crates/core/main.rs\nindex 64f35ce..34a5473 100644\n--- a/crates/core/main.rs\n+++ b/crates/core/main.rs\n@@ -35,9 +35,9 @@ mod search;\n //\n // Moreover, we only do this on 64-bit systems since jemalloc doesn't support\n // i686.\n-#[cfg(all(target_env = \"musl\", target_pointer_width = \"64\"))]\n-#[global_allocator]\n-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;\n+// hammer (Etapa C): jemalloc se quita a propósito. Su build C (jemalloc-sys, autotools) embebe\n+// rutas de OUT_DIR ⇒ rompe la reproducibilidad bit-a-bit que exige el lab. Usamos el allocator\n+// de musl (más lento, pero ripgrep no es allocation-heavy y el build queda 100% Rust, hermético).\n \n /// Then, as it was, then again it will be.\n fn main() -> ExitCode {\n" build: compiler: zig-cc target: x86_64-linux-musl link: static flags: - --bin - rg phases: install: mkdir -p /out/usr/bin && cp target/release/rg /out/usr/bin/rg target_bin: /usr/bin/rg expected_hash: b3:fe27d568d6408dfad2c0000e49489d0018b705f75dd476709e17fe729588f040