Skip to content

Commit

Permalink
Remove protobuf_src from example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Mar 1, 2024
1 parent 1711b49 commit cb29172
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 33 deletions.
4 changes: 0 additions & 4 deletions examples/quilkin-filter-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ serde_yaml = "0.9"
bytes = "1"
schemars = "0.8"
async-trait = "0.1"

[build-dependencies]
prost-build = "0.12"
protobuf-src = "1.1.0"
24 changes: 0 additions & 24 deletions examples/quilkin-filter-example/build.rs

This file was deleted.

2 changes: 2 additions & 0 deletions examples/quilkin-filter-example/src/generated.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#![allow(clippy::doc_markdown, clippy::use_self)]
pub mod greet;
6 changes: 6 additions & 0 deletions examples/quilkin-filter-example/src/generated/greet.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Greet {
#[prost(string, tag = "1")]
pub greeting: ::prost::alloc::string::String,
}
8 changes: 3 additions & 5 deletions examples/quilkin-filter-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
*/

#[allow(warnings, clippy::all)]
// ANCHOR: include_proto
mod proto {
tonic::include_proto!("greet");
}
// ANCHOR_END: include_proto
mod generated;
use generated::greet as proto;

use quilkin::filters::prelude::*;

use serde::{Deserialize, Serialize};
Expand Down

0 comments on commit cb29172

Please sign in to comment.