WeChatFerry/clients/rust/wcferry/build.rs
2024-04-24 23:36:55 +08:00

10 lines
302 B
Rust
Vendored

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_client(true)
.build_server(false)
.out_dir("src/proto")
.compile(&["proto/wcf.proto", "proto/roomdata.proto"], &["."])
.expect("failed to compile protos");
Ok(())
}