-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.rs
31 lines (31 loc) · 1.78 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
fn main() {
let mut prost_build = prost_build::Config::new();
prost_build
.type_attribute(
".types.MainMessage.body",
"use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize)]",
)
.type_attribute(".types.InvalidRequest", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Move", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.PlaceTile", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.GameState", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.GameStatus", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Player", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Ability", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Heister", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.WallType", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.SquareType", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Square", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.Tile", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.MapPosition", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.TilePosition", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.HeisterName", "#[derive(Serialize, Deserialize)]")
.type_attribute(".types.HeisterColor", "#[derive(Serialize, Deserialize)]")
.type_attribute(
".types.PossibleTeleportEntry",
"#[derive(Serialize, Deserialize)]",
)
.type_attribute(".types.StartGame", "#[derive(Serialize, Deserialize)]")
.compile_protos(&["src/types.proto"], &["src/"])
.unwrap();
}