filecoin-proofs-ffi 0.7.2

FFI Interface to filecoin-proofs
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;
use std::path::Path;

fn main() {
    println!("cargo:rerun-if-changed=src/");

    let out_dir = env::var("OUT_DIR").unwrap();
    let hdr_out = Path::new(&out_dir).join("include/filecoin_proofs_ffi.h");

    cbindgen::generate(std::env::var("CARGO_MANIFEST_DIR").unwrap())
        .expect("Could not generate header")
        .write_to_file(hdr_out);
}