Trying to use the prost
Some checks failed
ci/woodpecker/push/code_tests Pipeline failed
ci/woodpecker/push/pre_commit_test Pipeline failed

This commit is contained in:
2025-11-28 19:18:04 +01:00
parent 56aa1e1bbf
commit 2052178ebf
8 changed files with 52 additions and 78 deletions

View File

@@ -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(())
}