Skip to content

Commit

Permalink
Allow us to move the proto files outside of fbcode
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/executorch#4417

Allow `rust_protobuf_library` to take in a target or a source. This is an effort to move proto files to a standard, shareable location. The decision was made to make users of this macro to explicitly define the export file if they needed.

Reviewed By: ndmitchell, huydhn

Differential Revision: D60187261

fbshipit-source-id: 4a044b07d3096e433d987118f363aba42f54f716
  • Loading branch information
Adam Cantrowitz authored and facebook-github-bot committed Jul 31, 2024
1 parent a72e66f commit a7ca669
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions shim/shims.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,6 @@ def rust_protobuf_library(
] + (deps or []),
)

# For python tests only
for proto in protos:
prelude.export_file(
name = proto,
visibility = ["PUBLIC"],
)

def ocaml_binary(
deps = [],
visibility = ["PUBLIC"],
Expand Down

0 comments on commit a7ca669

Please sign in to comment.