ArroyoSystems / arroyo

Distributed stream processing engine in Rust
https://arroyo.dev
Apache License 2.0
3.81k stars 220 forks source link

need set --experimental_allow_proto3_optional for protocbuf compiler #703

Closed zhuliquan closed 3 months ago

zhuliquan commented 3 months ago

I found below error when cargo build,

error: failed to run custom build command for `arroyo-rpc v0.12.0-dev (/mnt/d/workspace/rust/github.com/zhuliquan/arroyo/crates/arroyo-rpc)`

Caused by:
  process didn't exit successfully: `/mnt/d/workspace/rust/github.com/zhuliquan/arroyo/target/debug/build/arroyo-rpc-6d47546660ec2985/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=proto/rpc.proto
  cargo:rerun-if-changed=proto

  --- stderr
  Error: Custom { kind: Other, error: "protoc failed: rpc.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.\n" }
warning: build failed, waiting for other jobs to finish...