9 lines
333 B
Rust
9 lines
333 B
Rust
fn main() {
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.compile_well_known_types(true)
|
|
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
|
|
.compile_protos(&["../proto/database.proto"], &["../proto"])
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
}
|