tenebrous-sheets/build.rs

13 lines
378 B
Rust
Raw Normal View History

fn main() {
let mut config = prost_build::Config::new();
2020-12-31 22:21:05 +00:00
config.btree_map(&["."]);
config.type_attribute(".", "#[derive(Serialize)]");
config.type_attribute(".", "#[serde(rename_all = \"camelCase\")]");
config
.compile_protos(
&["proto/cofd.proto", "proto/cofd_api.proto"],
&["src/", "proto/"],
)
.unwrap();
}