Skip to content

Commit c7c0b71

Browse files
amilbournenyetwurk
authored andcommitted
Make build compatible with protoc 3.12-3.14
Signed-off-by: Anthony Milbourne <18662115+amilbourne@users.noreply.github.com>
1 parent 9bbdb93 commit c7c0b71

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Find binary releases at: https://github.com/Blockdaemon/solana-accountsdb-plugin
1010

1111
### Building from source
1212

13+
#### Prerequisites
14+
15+
You will need version 3.12 or later of the protobuf compiler `protoc` installed.
16+
17+
#### Build
18+
1319
```shell
1420
cargo build --release
1521
```

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::io::Result;
33
fn main() -> Result<()> {
44
let mut config = prost_build::Config::new();
55
config.boxed(".blockdaemon.solana.accountsdb_plugin_kafka.types.MessageWrapper");
6+
config.protoc_arg("--experimental_allow_proto3_optional");
67
config.compile_protos(&["proto/event.proto"], &["proto/"])?;
78
Ok(())
89
}

0 commit comments

Comments
 (0)