Converted to a tonic build

main
Joey Hines 2024-06-20 20:45:46 -06:00
parent 2957448aed
commit 96b5ff4b46
Signed by: joeyahines
GPG Key ID: 995E531F7A569DDB
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,10 @@ pub mod raas {
#[cfg(feature = "async")]
use tokio::io::{AsyncReadExt, AsyncWriteExt};
pub mod service {
include!(concat!(env!("OUT_DIR"), "/raas.service.rs"));
}
pub mod register {
include!(concat!(env!("OUT_DIR"), "/raas.register.rs"));
}
@ -124,6 +128,7 @@ mod test {
#[cfg(feature = "async")]
use tokio::io::BufReader;
use tonic::{Request, Response, Status};
#[test]
fn create_request() {

View File

@ -3,9 +3,9 @@ syntax = "proto3";
import "resp.proto";
import "cmd.proto";
package raas;
package raas.service;
service RaaS {
service RAAS {
rpc SendRequest(raas.cmd.Request) returns (raas.resp.Response) {}
}