Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Curp] Failed to compile proto in that message.proto contains proto3 optional fields. #115

Closed
Phoenix500526 opened this issue Dec 27, 2022 · 0 comments

Comments

@Phoenix500526
Copy link
Collaborator

When I executed the cargo build --release as described in the Contribution Guide document, it showed me a proto compile error as follows:

$ cargo build --release
   Compiling curp v0.1.0 (/home/Xline/curp)
error: failed to run custom build command for `curp v0.1.0 (/home/Xline/curp)`

Caused by:
  process didn't exit successfully: `/home/Xline/target/release/build/curp-755359d522eb8104/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Failed to compile proto, error is Custom { kind: Other, error: "protoc failed: message.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.\n" }', curp/build.rs:4:29
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I will issue a pr to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant