File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2727 // Make all messages serde-serializable.
2828 . type_attribute ( "." , "#[derive(serde::Serialize,serde::Deserialize)]" )
2929 // Compiling protos using path on build time.
30- . compile_protos ( & [ "proto/core/proxy.proto" ] , & [ "proto/core" ] ) ?;
30+ . compile_protos ( & [ "proto/v2/ core/proxy.proto" ] , & [ "proto/v2 /core" ] ) ?;
3131
3232 println ! ( "cargo:rerun-if-changed=proto" ) ;
3333 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -15,8 +15,18 @@ pub mod http;
1515pub mod logging;
1616mod setup;
1717
18+ pub ( crate ) mod generated {
19+ pub ( crate ) mod defguard {
20+ pub ( crate ) mod proxy {
21+ pub ( crate ) mod v2 {
22+ tonic:: include_proto!( "defguard.proxy.v2" ) ;
23+ }
24+ }
25+ }
26+ }
27+
1828pub ( crate ) mod proto {
19- tonic :: include_proto! ( " defguard. proxy" ) ;
29+ pub ( crate ) use crate :: generated :: defguard:: proxy:: v2 :: * ;
2030}
2131
2232#[ macro_use]
You can’t perform that action at this time.
0 commit comments