Skip to content

Commit

Permalink
Add compile_bindings feature to the Cargo.toml of Glecs
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed May 2, 2024
1 parent 8831aa3 commit b9d853e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion addons/glecs/rust/glecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
crate-type = ["cdylib"]

0 comments on commit b9d853e

Please sign in to comment.