mraow/common/build.rs

8 lines
244 B
Rust
Raw Normal View History

2023-05-08 20:14:24 +00:00
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();
}