Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ def _generate_bindings(ctx, target, basename, inputs, args, rustc_env, proto_cra
ctx.actions.run(
outputs = outputs,
inputs = depset(
[ctx.file._clang_format, ctx.file._rustfmt, ctx.file._rustfmt_cfg],
[ctx.file._rustfmt_cfg],
transitive = [inputs],
),
env = rustc_env | verbose_log_env,
tools = [toolchain.binary],
tools = [toolchain.binary, ctx.executable._rustfmt, ctx.executable._clang_format],
executable = ctx.executable._process_wrapper,
mnemonic = "CcBindingsFromRust",
progress_message = "Generating C++ bindings from Rust: %s" % h_out_file,
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/bazel_support/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _cc_bindings_from_rs_toolchain_impl(ctx):
return [
platform_common.ToolchainInfo(
cc_bindings_from_rs_toolchain_info = CcBindingsFromRustToolchainInfo(
binary = ctx.file.binary,
binary = ctx.executable.binary,
),
),
]
Expand Down