mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 08:02:28 +00:00
Implements native bindings (c) bindings to be used across multiple languages such as: GoLang C# (dotNet framework) ... --------- Co-authored-by: Ivan Miletic <vnmiletic@gmail.com> Co-authored-by: Ivan Miletic <60513195+ivanmiletic@users.noreply.github.com>
13 lines
304 B
Rust
13 lines
304 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
|
|
cbindgen::Builder::new()
|
|
.with_language(cbindgen::Language::C)
|
|
.with_crate(crate_dir)
|
|
.generate()
|
|
.expect("Unable to generate bindings")
|
|
.write_to_file("zen_engine.h");
|
|
}
|