mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
18 lines
408 B
Rust
18 lines
408 B
Rust
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");
|
|
}
|