chore: wrong path for call to compile_protos (#366)
Fixed wrong path "proto/helloworld.proto" for `compile_protos` first argument. `build.rs` being in the project root, means the correct path should be "src/proto/helloworld.proto".
This commit is contained in:
committed by
GitHub
parent
253984f204
commit
02499fdfd3
@@ -129,7 +129,7 @@ At the root of your crate, create a `build.rs` file and add the following code:
|
||||
|
||||
```rust
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::compile_protos("proto/helloworld.proto")?;
|
||||
tonic_build::compile_protos("src/proto/helloworld.proto")?;
|
||||
Ok(())
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user