Skip to content

Commit 61a6ecb

Browse files
Nikita Patskovfacebook-github-bot
authored andcommitted
Allow transformation spec to be passed to rust binaries
Summary: Transformation specs should also be available for Rust (mostly to migrate off link group-based APIs that is currently rolled out for rust too). Thankfully this is easy to configure because all we should do is to propagate the values and all handling will work out of the box. Allowing transformation spec to be configured for rust binaries and tests Reviewed By: yahayaohinoyi Differential Revision: D83559454 fbshipit-source-id: a5e27f1d0cb3515a16d103aa40ba3a3360a34fce
1 parent dd75918 commit 61a6ecb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prelude/decls/rust_rules.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ rust_binary = prelude_rule(
131131
rust_common.cxx_toolchain_arg() |
132132
rust_common.rust_toolchain_arg() |
133133
rust_common.workspaces_arg() |
134+
native_common.transformation_spec_arg() |
134135
buck.allow_cache_upload_arg()
135136
),
136137
uses_plugins = [RustProcMacroPlugin],
@@ -286,6 +287,7 @@ rust_test = prelude_rule(
286287
rust_common.cxx_toolchain_arg() |
287288
rust_common.rust_toolchain_arg() |
288289
rust_common.workspaces_arg() |
290+
native_common.transformation_spec_arg() |
289291
test_common.attributes()
290292
),
291293
uses_plugins = [RustProcMacroPlugin],

0 commit comments

Comments
 (0)