Skip to content

Commit

Permalink
[bazel] Mark param_extractor{_bin} as no-downstream
Browse files Browse the repository at this point in the history
Dependent repositories will not have the required rust crates for them by default, so disable them there
  • Loading branch information
fhanau committed Jan 31, 2024
1 parent 44760c9 commit 926db7f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/workerd/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ filegroup(
"//src/workerd/tools:api_encoder_" + label
for (date, label) in compat_dates
],
tags = ["no-arm64"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand All @@ -97,6 +98,8 @@ filegroup(
"--compatibility-date",
date,
] if date else []),
# Cross-compiling is not supported as this runs in target cfg.
tags = ["no-arm64"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand Down Expand Up @@ -126,12 +129,16 @@ cc_ast_dump(
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
deps = [":api_encoder_lib", ":compile_api_headers_only"],
deps = [
":api_encoder_lib",
":compile_api_headers_only",
],
)

rust_binary(
name = "param_extractor_bin",
srcs = ["param-extractor.rs"],
tags = ["no-downstream"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand Down Expand Up @@ -163,6 +170,7 @@ run_binary(
"--output",
"$(location param-names.json)",
],
tags = ["no-downstream"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand Down

0 comments on commit 926db7f

Please sign in to comment.