|
|
|
@ -334,7 +334,7 @@ def _rust_proto_aspect_common(target, ctx, is_upb): |
|
|
|
|
ctx = ctx, |
|
|
|
|
attr = attr, |
|
|
|
|
cc_toolchain = cc_toolchain, |
|
|
|
|
cc_infos = [target[CcInfo], ctx.attr._cpp_thunks_deps[CcInfo]] + dep_cc_infos, |
|
|
|
|
cc_infos = [target[CcInfo]] + [dep[CcInfo] for dep in ctx.attr._cpp_thunks_deps] + dep_cc_infos, |
|
|
|
|
) for thunk in thunks]) |
|
|
|
|
|
|
|
|
|
runtime = proto_lang_toolchain.runtime |
|
|
|
@ -385,8 +385,11 @@ def _make_proto_library_aspect(is_upb): |
|
|
|
|
executable = True, |
|
|
|
|
cfg = "exec", |
|
|
|
|
), |
|
|
|
|
"_cpp_thunks_deps": attr.label( |
|
|
|
|
default = Label("//rust/cpp_kernel:cpp_api"), |
|
|
|
|
"_cpp_thunks_deps": attr.label_list( |
|
|
|
|
default = [ |
|
|
|
|
Label("//rust/cpp_kernel:cpp_api"), |
|
|
|
|
Label("//src/google/protobuf"), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
"_error_format": attr.label( |
|
|
|
|
default = Label("@rules_rust//:error_format"), |
|
|
|
|