13 lines
378 B
Rust
13 lines
378 B
Rust
fn main() {
|
|
let mut config = prost_build::Config::new();
|
|
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();
|
|
}
|