Skip to content

Commit cca4221

Browse files
committed
Vendor protoc for sqlite-watcher build
1 parent d12d0c4 commit cca4221

File tree

3 files changed

+73
-5
lines changed

3 files changed

+73
-5
lines changed

Cargo.lock

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

sqlite-watcher/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ build = "build.rs"
1010

1111
[build-dependencies]
1212
tonic-build = "0.11"
13+
protoc-bin-vendored = "3"
1314

1415
[dependencies]
1516
anyhow = "1.0"

sqlite-watcher/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
fn main() -> Result<(), Box<dyn std::error::Error>> {
2+
let protoc = protoc_bin_vendored::protoc_bin_path()?;
3+
std::env::set_var("PROTOC", protoc);
24
tonic_build::configure()
35
.build_client(true)
46
.build_server(true)

0 commit comments

Comments
 (0)