Compare commits
1 Commits
master
...
include-pr
Author | SHA1 | Date | |
---|---|---|---|
0beae72d2a |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/target
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "protobufs"]
|
||||
path = protobufs
|
||||
url = https://git.itzana.me/StrafesNET/protobufs
|
1115
Cargo.lock
generated
Normal file
1115
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
Cargo.toml
Normal file
15
Cargo.toml
Normal file
@ -0,0 +1,15 @@
|
||||
[package]
|
||||
name = "rust-grpc"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
prost = "0.12.3"
|
||||
prost-types = "0.12.3"
|
||||
tokio = "1.36.0"
|
||||
tonic = "0.11.0"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.11.0"
|
19
build.rs
Normal file
19
build.rs
Normal file
@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
1
protobufs
Submodule
1
protobufs
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 65a9abe6d324c2bc25c0e2cfe7bd1fc40b76d2aa
|
27
src/lib.rs
Normal file
27
src/lib.rs
Normal file
@ -0,0 +1,27 @@
|
||||
pub mod bots{
|
||||
tonic::include_proto!("bots");
|
||||
}
|
||||
pub mod datastore{
|
||||
tonic::include_proto!("datastore");
|
||||
}
|
||||
pub mod events{
|
||||
tonic::include_proto!("events");
|
||||
}
|
||||
pub mod maps{
|
||||
tonic::include_proto!("maps");
|
||||
}
|
||||
pub mod ranks{
|
||||
tonic::include_proto!("ranks");
|
||||
}
|
||||
pub mod servers{
|
||||
tonic::include_proto!("servers");
|
||||
}
|
||||
pub mod times{
|
||||
tonic::include_proto!("times");
|
||||
}
|
||||
pub mod transactions{
|
||||
tonic::include_proto!("transactions");
|
||||
}
|
||||
pub mod users{
|
||||
tonic::include_proto!("users");
|
||||
}
|
Loading…
Reference in New Issue
Block a user