mirror of
https://git.alemi.dev/mumble-stats-api.git
synced 2024-11-22 16:04:49 +01:00
chore: removed tonic, using prost-build directly
This commit is contained in:
parent
e6b3f41540
commit
34ad2a8681
3 changed files with 6 additions and 10 deletions
|
@ -19,12 +19,11 @@ prost = "0.12.3"
|
|||
serde = { version = "1.0.196", features = ["derive"] }
|
||||
tokio = { version = "1.36", features = ["net", "macros", "rt-multi-thread", "io-util"] }
|
||||
tokio-native-tls = "0.3.1"
|
||||
tonic = "0.11.0"
|
||||
tracing = "0.1.40"
|
||||
tracing-subscriber = "0.3.18"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.11.0"
|
||||
prost-build = "0.12"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
11
build.rs
11
build.rs
|
@ -1,9 +1,6 @@
|
|||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::configure()
|
||||
.compile(
|
||||
&["src/tcp/mumble.proto"],
|
||||
&["src/tcp"],
|
||||
)
|
||||
.unwrap();
|
||||
Ok(())
|
||||
Ok(prost_build::compile_protos(
|
||||
&["src/tcp/mumble.proto"],
|
||||
&["src/tcp"],
|
||||
)?)
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ pub mod control;
|
|||
pub mod proto {
|
||||
use prost::Message;
|
||||
|
||||
tonic::include_proto!("mumble");
|
||||
include!(concat!(env!("OUT_DIR"), "/mumble.rs"));
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Packet {
|
||||
|
|
Loading…
Reference in a new issue