Update: add protobuf defs
This commit is contained in:
parent
9b640a555a
commit
82d6eaa2a8
4 changed files with 12 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ reqwest = { version = "0.12", default-features = false, features = [
|
|||
] }
|
||||
rusqlite = { version = "0.31.0", features = ["blob"] }
|
||||
dotenv = "0.15.0"
|
||||
tonic = "0.12.0"
|
||||
tonic = "0.12.3"
|
||||
prost = "0.13.1"
|
||||
prost-types = "0.13.1"
|
||||
tokio-stream = "0.1"
|
||||
|
|
@ -96,4 +96,4 @@ bundled = ["rusqlite/bundled"]
|
|||
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.12.0"
|
||||
tonic-build = "0.12.3"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::compile_protos("../proto/burrow.proto")?;
|
||||
tonic_build::configure().compile_protos(
|
||||
&["../proto/burrow.proto", "../proto/burrowweb.proto"],
|
||||
&["../proto", "../proto"],
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
5
burrow/src/auth/server/grpc_defs.rs
Normal file
5
burrow/src/auth/server/grpc_defs.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub use burrowwebrpc::*;
|
||||
|
||||
mod burrowwebrpc {
|
||||
tonic::include_proto!("burrowweb");
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
pub mod db;
|
||||
mod grpc_defs;
|
||||
pub mod providers;
|
||||
|
||||
use anyhow::Result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue