rust-grpc/build.rs
2024-02-25 02:22:39 -08:00

19 lines
565 B
Rust

fn main() {
tonic_build::configure()
.build_server(false)
//.out_dir("src/google") // you can change the generated code's location
.compile(
&[
"protobufs/bots.proto",
"protobufs/datastore.proto",
"protobufs/events.proto",
"protobufs/maps.proto",
"protobufs/ranks.proto",
"protobufs/servers.proto",
"protobufs/times.proto",
"protobufs/transactions.proto",
"protobufs/users.proto",
],
&["protobufs"]
).unwrap();
}