zenoh-exp/build.rs

10 lines
382 B
Rust

use std::io::Result;
fn main() -> Result<()> {
let mut config = prost_build::Config::new();
config.type_attribute(".", "#[derive(serde::Serialize)]");
config.type_attribute(".", "#[derive(serde::Deserialize)]");
config.type_attribute(".", "#[serde(rename_all = \"camelCase\")]");
config.compile_protos(&["src/proto/parrot.proto"], &["src/proto"])?;
Ok(())
}