equihash 0.2.2

The Equihash Proof-of-Work function
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Build script for the equihash tromp solver in C.

fn main() {
    #[cfg(feature = "solver")]
    build_tromp_solver();
}

#[cfg(feature = "solver")]
fn build_tromp_solver() {
    cc::Build::new()
        .include("tromp/")
        .file("tromp/equi_miner.c")
        .compile("equitromp");

    // Tell Cargo to only rerun this build script if the tromp C files or headers change.
    println!("cargo:rerun-if-changed=tromp");
}