for raspberry pi compilation. This is because rppal won't compile on mac, so we only want to bring in the dependency when actually compiling for the raspberry pi, and so will manually need to enable the dependency.
8 lines
226 B
Rust
8 lines
226 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure().compile(
|
|
&["../protobuf/src/main/proto/car/control/motorService.proto"],
|
|
&["../protobuf/src/main/proto"],
|
|
)?;
|
|
Ok(())
|
|
}
|