First push
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "proto"
|
||||
edition = "2021"
|
||||
version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
prost.workspace = true
|
||||
prost-types.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
prost-build.workspace = true
|
||||
@@ -0,0 +1,11 @@
|
||||
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/")
|
||||
.compile_protos(&[proto_file], &["."])
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
+35124
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
mod cmd_types;
|
||||
pub use cmd_types::*;
|
||||
|
||||
include!("../out/_.rs");
|
||||
Reference in New Issue
Block a user