2020-12-07 20:32:02 +00:00
|
|
|
fn main() {
|
2020-12-08 08:47:34 +00:00
|
|
|
let mut config = prost_build::Config::new();
|
|
|
|
config.type_attribute(".", "#[derive(Serialize)]");
|
|
|
|
config.type_attribute(".", "#[serde(rename_all = \"camelCase\")]");
|
|
|
|
config
|
2020-12-27 21:03:10 +00:00
|
|
|
.compile_protos(
|
|
|
|
&["proto/cofd.proto", "proto/cofd_api.proto"],
|
|
|
|
&["src/", "proto/"],
|
|
|
|
)
|
2020-12-08 08:47:34 +00:00
|
|
|
.unwrap();
|
2020-12-07 20:32:02 +00:00
|
|
|
}
|