Skip to content

Commit 86a653f

Browse files
authored
Allows deps to be specified in rust_bindgen_library (#831)
1 parent ed64716 commit 86a653f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bindgen/bindgen.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def rust_bindgen_library(
5555
if "tags" in kwargs:
5656
kwargs.pop("tags")
5757

58+
deps = kwargs.get("deps") or []
59+
if "deps" in kwargs:
60+
kwargs.pop("deps")
61+
5862
rust_bindgen(
5963
name = name + "__bindgen",
6064
header = header,
@@ -68,7 +72,7 @@ def rust_bindgen_library(
6872
name = name,
6973
srcs = [name + "__bindgen.rs"],
7074
tags = tags + ["__bindgen"],
71-
deps = [cc_lib],
75+
deps = deps + [cc_lib],
7276
**kwargs
7377
)
7478

0 commit comments

Comments
 (0)