From 9b9ba59331538221b52eb9c42385acafd329bd07 Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Fri, 7 Oct 2022 12:54:03 -0700 Subject: [PATCH] Add a TARGETS file for RE stub Summary: Works open source. Reviewed By: lmvasquezg Differential Revision: D40176302 fbshipit-source-id: f7ac0e9122bccaf5979258cec2f4d976511929ad --- buck2_execute/TARGETS | 3 ++- buck2_execute_impl/TARGETS | 3 ++- remote_execution/stub/TARGETS | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 remote_execution/stub/TARGETS 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", + ], +)