Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
keyprovider: Temporary fix for nightly builds
Browse files Browse the repository at this point in the history
Do not autogenerate keyprovider.rs and patch it until
hyperium/tonic#892 is merged

Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
  • Loading branch information
Samuel Ortiz authored and sameo committed Jan 27, 2022
1 parent 2e4c844 commit c4e1505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
extern crate tonic_build;

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.out_dir("src/utils/")
.compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
// tonic_build::configure()
// .build_server(true)
// .out_dir("src/utils/")
// .compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
Ok(())
}
2 changes: 2 additions & 0 deletions src/utils/keyprovider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ pub mod key_provider_service_client {
#[doc = r""]
#[doc = r" This requires the server to support it otherwise it might respond with an"]
#[doc = r" error."]
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[doc = r" Enable decompressing responses with `gzip`."]
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
Expand Down

0 comments on commit c4e1505

Please sign in to comment.