-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shape.bzl] generate thrift impl as long as __thrift is set at all
Summary: It can be useful to make empty structs as sentinel types which generate unit structs in Rust. Update the Rust code generator to generate thrift impls as long as `__thrift` is non-`null` Test Plan: On D68505354 ``` arc rust-check fbcode//metalos/bzl/service:service.shape-rust ``` Reviewed By: sergeyfd Differential Revision: D68506178 fbshipit-source-id: 855e700ea36f4a1a2b63bd90d3b619e36c1db28d
- Loading branch information
1 parent
370cf44
commit 05176e0
Showing
2 changed files
with
4 additions
and
2 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