Add grpc rust codegen + stubs, add rppal compile feature
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.
This commit is contained in:
7
car-rs/build.rs
Normal file
7
car-rs/build.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user