diff options
| author | unitexe <unitexe70@gmail.com> | 2025-06-07 20:50:57 -0500 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2025-06-07 20:51:36 -0500 |
| commit | 0ee55c3362abf1f7bf8dc4e5de161f1ba8c97ec1 (patch) | |
| tree | e07a67d6accbc89bf2049a0a1b1edf1660deec93 /build.rs | |
| parent | 12a0f187ec708d23926113713c7dd502c72ff414 (diff) | |
Query connected USB devices via gRPC server
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..2c2bae8 --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +use std::{env, path::PathBuf}; + +fn main() -> Result<(), Box<dyn std::error::Error>> { + let descriptor_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("skopos_descriptor.bin"); + tonic_build::configure() + .file_descriptor_set_path(&descriptor_path) + .compile_protos(&["proto/ormos.proto"], &["/proto/"])?; + Ok(()) +} |
