First push

This commit is contained in:
xeon
2024-03-29 09:46:31 +03:00
parent 46a868ca85
commit c0cdf91849
32 changed files with 39006 additions and 0 deletions
+11
View File
@@ -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
+11
View File
@@ -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();
}
}
View File
+35124
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
mod cmd_types;
pub use cmd_types::*;
include!("../out/_.rs");