Skip to content

Commit 91543ba

Browse files
committed
add features for binaries too
1 parent 7b731c2 commit 91543ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/private/rust.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def _rust_binary_impl(ctx):
259259
compile_data = depset(compile_data),
260260
compile_data_targets = depset(ctx.attr.compile_data),
261261
owner = ctx.label,
262+
crate_features = ctx.attr.crate_features,
262263
),
263264
)
264265

@@ -423,6 +424,7 @@ def _rust_test_impl(ctx):
423424
compile_data = depset(compile_data),
424425
compile_data_targets = depset(ctx.attr.compile_data),
425426
owner = ctx.label,
427+
crate_features = [],
426428
)
427429

428430
providers = rustc_compile_action(

0 commit comments

Comments
 (0)