tenebrous-sheets/build.rs

9 lines
289 B
Rust

fn main() {
let mut config = prost_build::Config::new();
config.type_attribute(".", "#[derive(Serialize)]");
config.type_attribute(".", "#[serde(rename_all = \"camelCase\")]");
config
.compile_protos(&["proto/cofd.proto"], &["src/", "proto/"])
.unwrap();
}