rust-grpc/build.rs

19 lines
565 B
Rust
Raw Normal View History

2024-02-25 10:22:39 +00:00
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();
}