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:
Paul-Sebastian Manole
2020-06-03 19:10:07 +03:00
committed by GitHub
parent 253984f204
commit 02499fdfd3
+1 -1
View File
@@ -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(())
}
```