Skip to content

Commit

Permalink
rust_binary() respects crate_name for naming the output.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickvanprim committed Jun 22, 2024
1 parent c014c61 commit 9fac8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _rust_binary_impl(ctx):
crate_name = compute_crate_name(ctx.workspace_name, ctx.label, toolchain, ctx.attr.crate_name)
_assert_correct_dep_mapping(ctx)

output = ctx.actions.declare_file(ctx.label.name + toolchain.binary_ext)
output = ctx.actions.declare_file(crate_name + toolchain.binary_ext)

deps = transform_deps(ctx.attr.deps)
proc_macro_deps = transform_deps(ctx.attr.proc_macro_deps + get_import_macro_deps(ctx))
Expand Down

0 comments on commit 9fac8f3

Please sign in to comment.