mraow/common/build.rs

7 lines
244 B
Rust

fn main() {
tonic_build::configure()
.server_mod_attribute("attrs", "#[cfg(feature = \"server\")]")
.client_mod_attribute("attrs", "#[cfg(feature = \"client\")]")
.compile(&["../proto/chat.proto"], &["../proto"])
.unwrap();
}