Skip to content

Commit 275e72f

Browse files
committed
using protoc-bin-vendored
1 parent a608f96 commit 275e72f

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

Cargo.lock

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ tokio = { version = "1", features = ["full"], optional = true }
4343
[build-dependencies]
4444
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls"] }
4545
tonic-build = "0.10"
46+
protoc-bin-vendored = "3.0.0"

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ fn main() -> Result<(), Box<dyn Error>> {
4747
// Process the proto files
4848
let proto_files = vec!["proto/agents.proto", "proto/reports.proto"];
4949

50+
// Set PROTOC Path
51+
std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path().unwrap());
52+
5053
tonic_build::configure()
5154
.type_attribute("ContextualizedStats", "#[derive(serde::Serialize)]")
5255
.type_attribute("StatsContext", "#[derive(serde::Serialize)]")

0 commit comments

Comments
 (0)