sha2-asm 0.2.1

Assembly implementation of SHA-2 compression functions
Documentation
extern crate gcc;

fn main() {
    let (sha256_path, sha512_path) = if cfg!(target_arch = "x86") {
        ("src/sha256_x86.S", "src/sha512_x86.S")
    } else if cfg!(target_arch = "x86_64") {
        ("src/sha256_x64.S", "src/sha512_x64.S")
    } else {
        panic!("Unsupported target architecture");
    };
    gcc::Config::new()
                .flag("-c")
                .file(sha256_path)
                .compile("libsha256.a");
    gcc::Config::new()
                .flag("-c")
                .file(sha512_path)
                .compile("libsha512.a");
}