-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid getting to gen src thru modules
- Loading branch information
Showing
12 changed files
with
23 additions
and
2,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
tonic_build::configure() | ||
.build_server(true) | ||
.out_dir("src/envoy_rls/protobufs") | ||
.compile( | ||
&["envoy/service/ratelimit/v3/rls.proto"], | ||
&[ | ||
"vendor/protobufs/data-plane-api", | ||
"vendor/protobufs/protoc-gen-validate", | ||
"vendor/protobufs/xds", | ||
], | ||
)?; | ||
tonic_build::configure().build_server(true).compile( | ||
&["envoy/service/ratelimit/v3/rls.proto"], | ||
&[ | ||
"vendor/protobufs/data-plane-api", | ||
"vendor/protobufs/protoc-gen-validate", | ||
"vendor/protobufs/xds", | ||
], | ||
)?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,48 @@ | ||
#[path = "protobufs"] | ||
pub mod envoy { | ||
#[path = "."] | ||
pub mod config { | ||
#[path = "."] | ||
pub mod core { | ||
#[path = "envoy.config.core.v3.rs"] | ||
// clippy will barf on protobuff generated code for enum variants in | ||
// v3::socket_option::SocketState, so allow this lint | ||
#[allow(clippy::enum_variant_names, clippy::derive_partial_eq_without_eq)] | ||
pub mod v3; | ||
pub mod v3 { | ||
tonic::include_proto!("envoy.config.core.v3"); | ||
} | ||
} | ||
} | ||
|
||
#[path = "."] | ||
pub mod extensions { | ||
#[path = "."] | ||
pub mod common { | ||
#[path = "."] | ||
pub mod ratelimit { | ||
#[path = "envoy.extensions.common.ratelimit.v3.rs"] | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
pub mod v3; | ||
pub mod v3 { | ||
tonic::include_proto!("envoy.extensions.common.ratelimit.v3"); | ||
} | ||
} | ||
} | ||
} | ||
|
||
#[path = "."] | ||
pub mod r#type { | ||
#[path = "envoy.r#type.v3.rs"] | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
pub mod v3; | ||
pub mod v3 { | ||
tonic::include_proto!("envoy.r#type.v3"); | ||
} | ||
} | ||
|
||
#[path = "."] | ||
pub mod service { | ||
#[path = "."] | ||
pub mod ratelimit { | ||
#[path = "envoy.service.ratelimit.v3.rs"] | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
pub mod v3; | ||
pub mod v3 { | ||
tonic::include_proto!("envoy.service.ratelimit.v3"); | ||
} | ||
} | ||
} | ||
} | ||
|
||
#[path = "protobufs"] | ||
pub mod xds { | ||
#[path = "."] | ||
pub mod core { | ||
#[path = "xds.core.v3.rs"] | ||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
pub mod v3; | ||
pub mod v3 { | ||
tonic::include_proto!("xds.core.v3"); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.