110a9efc3c
* proof of concept * fix syntax for rust and add auto fix syntax * fix syntax for C * fix bug with files owner * add information to wiki * try to add ci * format code from master * even more format fixes * change docker to docker-compose * Exclude ./target_*/build directories from format check * Run rustfmt only on project files * add ulimit setup for long clang list * merge * fix rustfmt, exclude target Inc directory * sync with master * abspath Co-authored-by: aanper <mail@s3f.ru> Co-authored-by: Vadim Kaushan <admin@disasm.info>
16 lines
412 B
Rust
16 lines
412 B
Rust
use std::env;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
let pkg_name = env::var("CARGO_PKG_NAME").unwrap();
|
|
|
|
cbindgen::generate(&crate_dir)
|
|
.expect("Unable to generate cbindgen bindings")
|
|
.write_to_file(
|
|
Path::new(&crate_dir)
|
|
.join("bindings")
|
|
.join(format!("{}.h", pkg_name)),
|
|
);
|
|
}
|