Trying to use the prost
This commit is contained in:
13
lib/build.rs
13
lib/build.rs
@@ -1,4 +1,13 @@
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_prost_build::compile_protos("proto/helloworld.proto")?;
|
||||
use std::{fs, io::Result};
|
||||
fn main() -> Result<()> {
|
||||
//let proto_dir = "proto";
|
||||
//let paths = fs::read_dir(proto_dir).unwrap();
|
||||
//for path in paths {
|
||||
// prost_build::compile_protos(&[path.unwrap().path()], &[proto_dir])?;
|
||||
//}
|
||||
|
||||
|
||||
prost_build::compile_protos(&["proto/audio_backend.proto"], &["proto/"])?;
|
||||
prost_build::compile_protos(&["proto/items.proto"], &["proto/"])?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user