changeset 8: |
bebb76da449c |
parent: |
315fedf35bc7
|
child: |
1fedeaa5bfc5 |
author: |
ellis <ellis@rwest.io> |
date: |
Sun, 07 May 2023 20:42:26 -0400 |
permissions: |
-rw-r--r-- |
description: |
tests and stuff |
2 use std::fs::create_dir; 3 use std::path::PathBuf; 5 let crate_dir: PathBuf = env::var("CARGO_MANIFEST_DIR") 6 .expect("CARGO_MANIFEST_DIR env var is not defined") 8 // let mpk_py = "build.py"; 9 let build_dir = crate_dir.join("ffi/"); 10 if !build_dir.exists() { 11 create_dir(&build_dir).unwrap(); 13 cbindgen::generate(crate_dir) 14 .expect("Unable to find cbindgen.toml configuration file") 15 .write_to_file(build_dir.join("demo.h"));