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

protoc failed: bundle.proto: contains proto3 optional fields #57

Open
umaid56 opened this issue Aug 13, 2024 · 1 comment
Open

protoc failed: bundle.proto: contains proto3 optional fields #57

umaid56 opened this issue Aug 13, 2024 · 1 comment

Comments

@umaid56
Copy link

umaid56 commented Aug 13, 2024

Hi,
I am facing this issue while cargo build
"called Result::unwrap() on an Err value: Custom { kind: Other, error: "protoc failed: bundle.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.\n" }"

@sonicfromnewyoke
Copy link

yeah, try to follow compiler hint.

in jito_protos/build.rs

use tonic_build::configure;

fn main() {
    configure()
        .protoc_arg("--experimental_allow_proto3_optional")
        .compile(
            &[
                "protos/auth.proto",
                "protos/block.proto",
                "protos/block_engine.proto",
                "protos/bundle.proto",
                "protos/packet.proto",
                "protos/relayer.proto",
                "protos/searcher.proto",
                "protos/shared.proto",
            ],
            &["protos"],
        )
        .unwrap();
}

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

2 participants