Skip to content

Commit

Permalink
Use oak_utils wrapper for protobuf generation (#558)
Browse files Browse the repository at this point in the history
We should find a way of enforcing that we always use `oak_utils`
wrappers instead of the underlying `grpc` functions.

See #510
  • Loading branch information
tiziano88 authored Feb 6, 2020
1 parent 94ef0a5 commit 664f0d6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/Cargo.lock

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

1 change: 1 addition & 0 deletions examples/chat/module/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ rand = "*"
serde = {version = "*", features = ["derive"]}

[build-dependencies]
oak_utils = "*"
protoc-rust-grpc = { path = "../../../../third_party/grpc-rust/protoc-rust-grpc" }
2 changes: 1 addition & 1 deletion examples/chat/module/rust/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
protoc_rust_grpc::run(protoc_rust_grpc::Args {
oak_utils::run_protoc_rust_grpc(protoc_rust_grpc::Args {
out_dir: "src/proto",
input: &["../../proto/chat.proto"],
includes: &["../../proto", "../../third_party"],
Expand Down
1 change: 1 addition & 0 deletions examples/translator/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ oak = "=0.1.0"
protobuf = "*"

[build-dependencies]
oak_utils = "*"
protoc-rust-grpc = { path = "../../../third_party/grpc-rust/protoc-rust-grpc" }
2 changes: 1 addition & 1 deletion examples/translator/common/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
protoc_rust_grpc::run(protoc_rust_grpc::Args {
oak_utils::run_protoc_rust_grpc(protoc_rust_grpc::Args {
out_dir: "src/proto",
input: &["../proto/translator.proto"],
includes: &["../proto", "../third_party"],
Expand Down
3 changes: 0 additions & 3 deletions examples/translator/module/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ oak_derive = "=0.1.0"
oak_log = "=0.1.0"
protobuf = "*"
translator_common = "=0.1.0"

[build-dependencies]
protoc-rust-grpc = { path = "../../../../third_party/grpc-rust/protoc-rust-grpc" }

0 comments on commit 664f0d6

Please sign in to comment.