Skip to content

Commit a7c85f6

Browse files
authored
Add feature flags allowing for statically linking to libclang (#413)
1 parent ae68c99 commit a7c85f6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,18 @@ redis-module-macros = { path = "./redismodule-rs-macros"}
143143
redis-module = { path = "./", default-features = false }
144144

145145
[build-dependencies]
146-
bindgen = "0.66"
146+
bindgen = { version = "0.66", default-features = false, features = ["logging", "prettyplease"]}
147147
cc = "1"
148148

149149
[features]
150-
default = ["min-redis-compatibility-version-6-0"]
150+
default = ["min-redis-compatibility-version-6-0", "bindgen-runtime"]
151151
min-redis-compatibility-version-7-4 = ["redis-module/min-redis-compatibility-version-7-4"]
152152
min-redis-compatibility-version-7-2 = ["redis-module/min-redis-compatibility-version-7-2"]
153153
min-redis-compatibility-version-7-0 = ["redis-module/min-redis-compatibility-version-7-0"]
154154
min-redis-compatibility-version-6-2 = ["redis-module/min-redis-compatibility-version-6-2"]
155155
min-redis-compatibility-version-6-0 = ["redis-module/min-redis-compatibility-version-6-0"]
156+
157+
# Enable static linking to libclang in bindgen
158+
bindgen-static = ["bindgen/static"]
159+
# Enable dynamic linking to libclang in bindgen
160+
bindgen-runtime = ["bindgen/runtime"]

0 commit comments

Comments
 (0)