microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
openhcl/diag_proto/build.rs
13lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | #![expect(missing_docs)] |
| 5 | |
| 6 | fn main() { |
| 7 | prost_build::Config::new() |
| 8 | .type_attribute(".", "#[derive(mesh::MeshPayload)]") |
| 9 | .type_attribute(".", "#[mesh(prost)]") |
| 10 | .service_generator(Box::new(mesh_build::MeshServiceGenerator::new())) |
| 11 | .compile_protos(&["src/diag.proto"], &["src/"]) |
| 12 | .unwrap(); |
| 13 | } |