first bits of a dynamc lib

This commit is contained in:
Dustin J. Mitchell
2022-01-22 22:48:40 +00:00
parent 8576e7ffa7
commit 33f5f056b1
13 changed files with 6942 additions and 1 deletions

18
lib/build.rs Normal file
View File

@@ -0,0 +1,18 @@
use cbindgen::*;
use std::env;
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
Builder::new()
.with_crate(crate_dir)
.with_language(Language::C)
.with_config(Config {
cpp_compat: true,
..Default::default()
})
.generate()
.expect("Unable to generate bindings")
.write_to_file("taskchampion.h");
}