mirror of
https://github.com/SideStore/em_proxy.git
synced 2026-05-17 20:20:35 +00:00
c8a280e54c
* add cbindgen to build dependencies * use cbindgen rust-style rather then via command * comment out doc length line which causes error Couldn't parse config file: unknown field `documentation_length`
12 lines
240 B
Rust
12 lines
240 B
Rust
// Jackson Coxson
|
|
use std::env;
|
|
use cbindgen;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
|
|
cbindgen::generate(crate_dir)
|
|
.expect("Unable to generate C bindings")
|
|
.write_to_file("em_proxy.h");
|
|
}
|