Skip to content

Commit

Permalink
refactor: pull out vendored protoc from shuttle-proto (#726)
Browse files Browse the repository at this point in the history
* feat: use grpcio to avoid needing protoc

* refactor: remove vendored protoc, revert to tonic otlp
  • Loading branch information
oddgrd authored Mar 17, 2023
1 parent 2d7b126 commit 5e1e527
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 60 deletions.
55 changes: 2 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ workspace = true
features = ["claims", "error", "service", "wasm"]

[build-dependencies]
protoc-bin-vendored = "3.0.0"
tonic-build = "0.8.3"
6 changes: 0 additions & 6 deletions proto/build.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
let protoc = protoc_bin_vendored::protoc_bin_path().unwrap();
let protoc_include = protoc_bin_vendored::include_path().unwrap();

std::env::set_var("PROTOC", protoc);
std::env::set_var("PROTOC_INCLUDE", protoc_include);

tonic_build::configure().compile(&["./provisioner.proto", "./runtime.proto"], &["./"])?;

Ok(())
Expand Down

0 comments on commit 5e1e527

Please sign in to comment.