Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Bump prost, tonic to pick up protoc fix #26854

Merged
merged 3 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Cargo.lock

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

19 changes: 19 additions & 0 deletions programs/bpf/Cargo.lock

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

25 changes: 25 additions & 0 deletions storage-bigtable/build-proto/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 storage-bigtable/build-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ version = "1.11.5"
[workspace]

[dependencies]
protobuf-src = "1.0.5"
tonic-build = "0.8.0"
5 changes: 5 additions & 0 deletions storage-bigtable/build-proto/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
fn main() -> Result<(), std::io::Error> {
const PROTOC_ENVAR: &str = "PROTOC";
if std::env::var(PROTOC_ENVAR).is_err() {
std::env::set_var(PROTOC_ENVAR, protobuf_src::protoc());
}
Comment on lines +3 to +5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could just unwrap_or(), but this works too


let manifest_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));

let out_dir = manifest_dir.join("../proto");
Expand Down
1 change: 1 addition & 0 deletions storage-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ name = "solana_storage_proto"
targets = ["x86_64-unknown-linux-gnu"]

[build-dependencies]
protobuf-src = "1.0.5"
tonic-build = "0.8.0"
5 changes: 5 additions & 0 deletions storage-proto/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
fn main() -> Result<(), std::io::Error> {
const PROTOC_ENVAR: &str = "PROTOC";
if std::env::var(PROTOC_ENVAR).is_err() {
std::env::set_var(PROTOC_ENVAR, protobuf_src::protoc());
}

let proto_base_path = std::path::PathBuf::from("proto");
let proto_files = ["confirmed_block.proto", "transaction_by_addr.proto"];
let mut protos = Vec::new();
Expand Down