Skip to content

Commit

Permalink
Use protobuf-src for building protobufs (#91)
Browse files Browse the repository at this point in the history
- Use protobuf-src for building protobufs. This should minimize protobuf system setup.
- Update jito-protos submodule.
  • Loading branch information
buffalu authored Jan 6, 2024
1 parent ed7d734 commit 885ddf7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ once_cell = "1"
openssl = "0.10.51"
prost = "0.12.1"
prost-types = "0.12.1"
protobuf-src = "1.1.0"
quinn = "0.9"
rand = "0.8.5"
rayon = "1.7.0"
Expand Down
1 change: 1 addition & 0 deletions jito-protos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ solana-sdk = { workspace = true }
tonic = { workspace = true }

[build-dependencies]
protobuf-src = { workspace = true }
tonic-build = { workspace = true }
6 changes: 6 additions & 0 deletions jito-protos/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
use tonic_build::configure;

fn main() {
const PROTOC_ENVAR: &str = "PROTOC";
if std::env::var(PROTOC_ENVAR).is_err() {
#[cfg(not(windows))]
std::env::set_var(PROTOC_ENVAR, protobuf_src::protoc());
}

configure()
.compile(
&[
Expand Down
2 changes: 1 addition & 1 deletion jito-protos/protos
Submodule protos updated 2 files
+28 −2 bundle.proto
+37 −15 searcher.proto

0 comments on commit 885ddf7

Please sign in to comment.