-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Remove dependency on protoc
- Loading branch information
Showing
6 changed files
with
3,359 additions
and
22 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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
// The gRPC Storage Write API is vendored in `src/google` to avoid | ||
// depending on protoc in GitHub Actions. | ||
// | ||
// To regenerate the gRPC Storage Write API from the proto file: | ||
// - Comment the build_transport(false) line below. | ||
// - Run `cargo build` to regenerate the API. | ||
// - Uncomment the build_transport(false) line below. | ||
// - Commit the changes. | ||
tonic_build::configure() | ||
.build_transport(false) | ||
.build_server(false) | ||
.out_dir("src/google") | ||
.compile( | ||
&["googleapis/google/cloud/bigquery/storage/v1/storage.proto"], | ||
&["googleapis"], | ||
)?; | ||
Ok(()) | ||
} | ||
} |
Oops, something went wrong.