mirror of
https://git.xeondev.com/reversedrooms/JadeSR.git
synced 2024-12-23 13:41:38 +00:00
13 lines
394 B
Rust
13 lines
394 B
Rust
|
pub fn main() {
|
||
|
let proto_file = "StarRail.proto";
|
||
|
if std::path::Path::new(proto_file).exists() {
|
||
|
println!("cargo:rerun-if-changed={proto_file}");
|
||
|
|
||
|
prost_build::Config::new()
|
||
|
.out_dir("out/")
|
||
|
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
|
||
|
.compile_protos(&[proto_file], &["."])
|
||
|
.unwrap();
|
||
|
}
|
||
|
}
|