From b9d853ec868053cda9317a3c065ceb534d2da9c3 Mon Sep 17 00:00:00 2001 From: GsLogimaker Date: Thu, 2 May 2024 18:19:00 -0500 Subject: [PATCH] Add compile_bindings feature to the Cargo.toml of Glecs --- addons/glecs/rust/glecs/Cargo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/glecs/rust/glecs/Cargo.toml b/addons/glecs/rust/glecs/Cargo.toml index e288eac..a53b6c3 100644 --- a/addons/glecs/rust/glecs/Cargo.toml +++ b/addons/glecs/rust/glecs/Cargo.toml @@ -3,6 +3,10 @@ name = "glecs" version = "0.1.0" edition = "2021" +[features] +default = ["compile_bindings"] +compile_bindings = [] + [build-dependencies] bindgen = "0.68.1" build = "0.0.2" @@ -13,8 +17,12 @@ flecs = "0.1.4" godot = { git = "https://github.com/godot-rust/gdext", branch = "master" } cstr = "0.2.12" +['cfg(compile_bindings)'.dependencies] +flecs = { version = "0.1.4", features = ["export_bindings"] } + + [patch.crates-io] flecs = {path = "../flecs-rs"} [lib] -crate-type = ["cdylib"] \ No newline at end of file +crate-type = ["cdylib"]