Skip to content

Relative path to the parent folder for building proto files #1688

Closed Answered by ripls56
ripls56 asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed it via add protoc_arg()

tonic_build::configure()
        .build_server(true)
        .protoc_arg("-I=../proto")
        .compile(&["auth.proto"], &["proto"])?;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ripls56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant