Just a quick note to myself on how to compile the insanely fast rg utility from git sources w/ AVX and SIMD activated.
- Clone from sources: git clone git@github.com:BurntSushi/ripgrep.git --depth 1 && cd ripgrep
- Install rustup to be able to compile against nightly Rust releases: curl https://sh.rustup.rs -sSf | sh
- Enable the nightly rust release for the ripgrep project: rustup override set nightly
- Compile: ./compile
- The new binary can be found run from ./target/release/rg
Shell installer are quite fishy, so this is not the preferred way of installation, there is also the possibility to directly install it via (packaged) cargo command (cargo install ripgrep) but that version is w/o AVX/SIMD as both can not compile (currently) with the stable Rust version.
Additionally there is a home-/ linux- brew based installer, but I have not tried it.