Skip to content

Commit

Permalink
fix proto build
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Oct 6, 2023
1 parent bb6f8a8 commit 2dadd56
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 25 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hyper = { version = "0.14.26", features = ["server"] }
lazy_static = "1.4.0"
log = "0.4.0"
prometheus = "0.13.3"
prost = "0.10.3"
prost = "0.12.1"
rdkafka = { version = "0.28.0", features = ["ssl-vendored", "sasl"] }
serde = { version = "1.0.147", features = ["derive"] }
serde_json = "1.0.81"
Expand All @@ -30,7 +30,7 @@ tokio = { version = "1.14", features = ["rt-multi-thread", "time", "macros", "sy
anyhow = "1"
cargo-lock = "8"
git-version = "0.3"
prost-build = "0.10"
prost-build = "0.12.1"
vergen = "=7.2.1"

[package.metadata.docs.rs]
Expand Down
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use {

fn main() -> anyhow::Result<()> {
// Proto
prost_build::compile_protos(&["proto/event.proto"], &["proto/"])?;
let mut config = prost_build::Config::new();
config.boxed(".blockdaemon.solana.accountsdb_plugin_kafka.types.MessageWrapper");
config.protoc_arg("--experimental_allow_proto3_optional");
config.compile_protos(&["proto/event.proto"], &["proto/"])?;

// Version metrics
vergen(Config::default())?;
Expand Down

0 comments on commit 2dadd56

Please sign in to comment.