class Fd < Formula desc "Simple, fast and user-friendly alternative to find" homepage "https://github.com/sharkdp/fd" url "https://github.com/sharkdp/fd/archive/v8.0.0.tar.gz" sha256 "fba93204c10266317e0981914c630b08e12cd322c75ff2a2e504ff1dce17d557" head "https://github.com/sharkdp/fd.git" bottle do cellar :any_skip_relocation sha256 "d3eafb3efc4c62d824ebc316c73ca1562cb92eca8049864ae1716144969c8c3d" => :catalina sha256 "c6c7349e7bfbe9893478d06c7c599934c1e07e017ced1b5d13a5716487327de3" => :mojave sha256 "49998bf05261897f03f5026a8394c5106e83bec4eb79dcd1b0846c3248e2573b" => :high_sierra end depends_on "rust" => :build # Work around issue with rust/jemalloc on Catalina # https://github.com/sharkdp/fd/issues/498 patch :DATA def install ENV["SHELL_COMPLETIONS_DIR"] = buildpath system "cargo", "install", "--locked", "--root", prefix, "--path", "." man1.install "doc/fd.1" bash_completion.install "fd.bash" fish_completion.install "fd.fish" zsh_completion.install "_fd" end test do touch "foo_file" touch "test_file" assert_equal "test_file", shell_output("#{bin}/fd test").chomp end end __END__ diff -pur a/Cargo.toml b/Cargo.toml --- a/Cargo.toml 2019-09-15 19:29:15.000000000 +0200 +++ b/Cargo.toml 2019-10-19 10:14:25.000000000 +0200 @@ -52,9 +52,6 @@ features = ["suggestions", "color", "wra [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies] libc = "0.2" -[target.'cfg(all(not(windows), not(target_env = "musl")))'.dependencies] -jemallocator = "0.3.0" - [dev-dependencies] diff = "0.1" tempdir = "0.3" diff -pur a/src/main.rs b/src/main.rs --- a/src/main.rs +++ b/src/main.rs @@ -29,11 +29,6 @@ use crate::filter::{SizeFilter, TimeFilter}; use crate::options::Options; use crate::regex_helper::pattern_has_uppercase_char; -// We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481 -#[cfg(all(not(windows), not(target_env = "musl")))] -#[global_allocator] -static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; - fn run() -> Result { let matches = app::build_app().get_matches_from(env::args_os());