rust-randomx 0.4.0

Rust interface to the RandomX hash function
Documentation
1
2
3
4
5
6
7
8
9
10
11
// build.rs

use cmake::Config;

fn main() {
    let dst = Config::new("RandomX").define("DARCH", "native").build();

    println!("cargo:rustc-link-search=native={}/lib", dst.display());
    println!("cargo:rustc-link-lib=static=randomx");
    println!("cargo:rustc-link-lib=dylib=stdc++");
}