mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
12 lines
342 B
Rust
12 lines
342 B
Rust
extern crate cbindgen;
|
|
|
|
use std::env;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
let mut config: cbindgen::Config = Default::default();
|
|
config.language = cbindgen::Language::C;
|
|
cbindgen::generate_with_config(&crate_dir, config)
|
|
.unwrap()
|
|
.write_to_file("target/vdirsyncer_rustext.h");
|
|
}
|