-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is needed to emit the `.rs` files into the right build directory in a follow up diff to add `BUCK` files. Signed-off-by: Austin Seipp <[email protected]>
- Loading branch information
1 parent
efe6f51
commit b02838a
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
load("//buck/shims/jj.bzl", "jj") | ||
|
||
jj.rust_binary( | ||
name = 'gen-protos', | ||
srcs = ['src/main.rs'], | ||
env = { | ||
'CARGO_MANIFEST_DIR': '$(location //lib:protos.pb)', | ||
}, | ||
deps = [ | ||
# CARGO-SYNC-START: dependencies | ||
'third-party//rust:prost-build', | ||
# CARGO-SYNC-END | ||
] | ||
) | ||
|
||
genrule( | ||
name = 'protos.rs', | ||
cmd = "$(exe :gen-protos)", | ||
out = ".", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters