fastgrep 0.1.4

Fast parallel grep with SIMD-accelerated search and trigram indexing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::Command;

fn main() {
    let sha = Command::new("git")
        .args(["rev-parse", "--short", "HEAD"])
        .output()
        .ok()
        .filter(|o| o.status.success())
        .and_then(|o| String::from_utf8(o.stdout).ok())
        .unwrap_or_default();
    println!("cargo:rustc-env=GIT_SHA={}", sha.trim());
    println!("cargo:rerun-if-changed=.git/HEAD");
}