Skip to content

Commit

Permalink
deps: add protoc version check and update docs (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <[email protected]>
  • Loading branch information
hexfusion authored Feb 14, 2023
1 parent 428a337 commit 42834ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ async fn main() -> std::io::Result<()> {

See [`bin/timestampvm`](timestampvm/src/bin/timestampvm/main.rs) for plugin implementation and [`tests/e2e`](tests/e2e/src/tests/mod.rs) for full end-to-end tests.

## Dependencies

- Latest version of stable Rust.
- To build and test timestampvm you need [protoc](https://grpc.io/docs/protoc-installation/#install-pre-compiled-binaries-any-os) version >= 3.15.0.

## AvalancheGo Compatibility
| Version(s) | AvalancheGo Version(s) |
| --- | --- |
Expand Down
6 changes: 6 additions & 0 deletions scripts/build.release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if ! [[ "$0" =~ scripts/build.release.sh ]]; then
exit 255
fi

PROTOC_VERSION=$(protoc --version | cut -f2 -d' ')
if [[ "${PROTOC_VERSION}" == "" ]] || [[ "${PROTOC_VERSION}" < 3.15.0 ]]; then
echo "protoc must be installed and the version must be greater than 3.15.0"
exit 255
fi

# "--bin" can be specified multiple times for each directory in "bin/*" or workspaces
cargo build \
--release \
Expand Down

0 comments on commit 42834ce

Please sign in to comment.