diff --git a/buck2_execute/TARGETS b/buck2_execute/TARGETS index 384082c97f7ef..a5c3ba8144a4e 100644 --- a/buck2_execute/TARGETS +++ b/buck2_execute/TARGETS @@ -49,7 +49,8 @@ rust_library( "//buck2/facebook/test_env_allowlist:test_env_allowlist", "//buck2/gazebo/gazebo:gazebo", "//buck2/host_sharing:host_sharing", - "//buck2/remote_execution/internal:remote_execution", + # @oss-disable: "//buck2/remote_execution/internal:remote_execution", + "//buck2/remote_execution/stub:remote_execution", # @oss-enable "//buck2/shed/more_futures:more_futures", "//buck2/starlark-rust/starlark_map:starlark_map", "//common/rust/shed/fbinit:fbinit", diff --git a/buck2_execute_impl/TARGETS b/buck2_execute_impl/TARGETS index 54b5a5afd847b..668e5fe415c21 100644 --- a/buck2_execute_impl/TARGETS +++ b/buck2_execute_impl/TARGETS @@ -40,7 +40,8 @@ rust_library( "//buck2/buck2_forkserver_proto:buck2_forkserver_proto", "//buck2/gazebo/gazebo:gazebo", "//buck2/host_sharing:host_sharing", - "//buck2/remote_execution/internal:remote_execution", + # @oss-disable: "//buck2/remote_execution/internal:remote_execution", + "//buck2/remote_execution/stub:remote_execution", # @oss-enable "//buck2/shed/more_futures:more_futures", "//buck2/starlark-rust/starlark_map:starlark_map", # @oss-disable: "//common/rust/shed/hostname:hostname", diff --git a/remote_execution/stub/TARGETS b/remote_execution/stub/TARGETS new file mode 100644 index 0000000000000..f7f87710d2baf --- /dev/null +++ b/remote_execution/stub/TARGETS @@ -0,0 +1,17 @@ +load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") +load("@fbsource//tools/build_defs:glob_defs.bzl", "glob") + +oncall("buck2") + +rust_library( + name = "remote_execution", + srcs = glob(["src/**/*.rs"]), + deps = [ + "fbsource//third-party/rust:anyhow", + "fbsource//third-party/rust:futures", + "fbsource//third-party/rust:prost", + "fbsource//third-party/rust:prost-types", + "fbsource//third-party/rust:regex", + "fbsource//third-party/rust:thiserror", + ], +)