sharkdp/fd

Set use-jemalloc conditionally instead of ignoring it for some targets

Open

#1822 aperta il 31 ott 2025

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (1059 fork)batch import
feature-requesthelp wantedpackaging/tooling

Metriche repository

Star
 (42.984 star)
Metriche merge PR
 (Merge medio 15g 23h) (16 PR mergiate in 30 g)

Descrizione

src/main.rs and Cargo.toml include a complex expression to not use jemalloc on some targets even when use-jemalloc has been set explicitly. As far as I can tell most of the cases where jemalloc is disabled is due to build failures. Since cargo can be configured to use a system provided jemalloc these build failures can be avoided on some targets (in my case on 32-bit musl and riscv64). Therefor it would be nice to conditionally have use-jemalloc in the default features instead of force disabling it on some targets.

Guida contributor